[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.....
line2.....
line3.....
">
Regards
~Rob
--
Rob Lugt
ElCel Technology
http://www.elcel.com