[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Line feed in xalan, disappears

Subject: Re: Line feed in xalan, disappears
From: Liam R E Quin <liam@xxxxxx>
Date: Mon, 19 Nov 2012 19:51:45 -0500
Re:  Line feed in xalan
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.