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

Re: XSL 2.0 - value-of - xml:space="preserve"

Subject: Re: XSL 2.0 - value-of - xml:space="preserve"
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Thu, 03 Apr 2008 22:23:26 -0500
Re:  XSL 2.0 - value-of - xml:space="preserve"
Robert Koberg wrote:
On Fri, 2008-04-04 at 10:50 +0800, Michael Kay wrote:
Yes, this is expected. With xml:space="preserve", whitespace
text nodes appearing in a sequence constructor are significant
and are copied to the output, as if they were enclosed in
xsl:text.
There is no whitespace between the '=<xsl:value-of/>;' (and I
specified separator="")
Yes, but there is whitespace between the start tag <script> and the
start tag <xsl:variable>. I'm not certain, but I suspect that's
your problem.

OK. I see what you are getting at, but it seems like a bug.


Why would whitespace affect something that has no whitespace around
it? (especially when specifying separator="" ?) I am guessing, but it
seems like some ContentHandler type-thing is automatically inserting
the first set of whitespace for ever XSL element ??

Try generating the preserve-space with an attribute instruction:


<xsl:attribute name="xml:preserve-space" select="'preserve'"/>

That will prevent the XSLT engine from seeing the attribute as an instruction to it.

Cheers,

Eliot



--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com

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.