xsl-list
[Top] [All Lists]

Re: [xsl] Line feed in xalan, disappears

2012-11-19 18:53:10
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--