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

From
Rob Lugt <>
To
, Lyndon J B Nixon <>
Date
2001-11-22T13:05:41
ID
<030401c17356$637c8090$0400a8c0@scott>
Thread
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 &#10;

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

Regards
~Rob

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