[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Line feed in xalan, disappears
On Mon, 2012-11-19 at 15:36 -0500, Chris Wolf wrote: > $ od -Ax -c message.xml > 000000 < m e s s a g e > I l o v e \n > 000010 x s l t < / m e s s a g e > \n OK - I asked because (1) the newline didn't show up in the email here, and (2) there are often encoding surprises with special characters. (yes, I'm familiar with od) Next I'd try using the identity transform in XSLT, or dumping the parsed XML, then, to see if it's a parser issue - is it the XML parser that's removing the newline or is it the XSLT engine? If you're running this on a Mac or Windows, it's possibly a faulty line ending normalization, but in that case I'd expect it to happen everywhere, not only with xsl:value-of atomization. You could alo try xsl:apply-templates instead of value-of, or using Saxon instead of xalan, or asking on a xalan-specific list :-) Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|