[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"
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. 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
|
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
|