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

Re: XSLT2.0 compatibility

Subject: Re: XSLT2.0 compatibility
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 5 Sep 2006 17:45:04 +0100
Re:  XSLT2.0 compatibility
> I do follow the pattern of creating parent node and attributes first and
> creating child nodes next.

No. Before copying the attribute nodes you generate a child text node
with (a couple of newlines and a couple of tab characters)

  <xsl:template match="boot_object" xml:space="preserve">SSSSSS<advanced_boot_object>SS<!-- The error line is below-->SS<xsl:copy-of select="@*"/>

Normally the indentation in the stylesheet is ignored but you have asked
for it to be preserved (and copied to the output) by using xml:space and
so all those "S" (really whitespace characters) make text nodes.

You almost never want to use  xml:space="preserve" on an xsl namespace
element.

David

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-2011 All Rights Reserved.