OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-dev] XSLT Preserve Space in Attributes



Lyndon J B Nixon wrote:
>
> Is there any means to override this in the XML parser? I also figure that
> after the conversion process there is no means to 'recover' the newlines
> that were stripped.

As a workaround, you may be able to make use of the feature that XML parsers
will not remove newlines that occur as character references.  So if you are
able to pre-process your document, replace the newlines with character
references 


e.g.
<script type="JavaScript" code="
  line1..... &#10;
  line2..... &#10;
  line3..... &#10;
">

Regards
~Rob

--
Rob Lugt
ElCel Technology
http://www.elcel.com