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

RE: Schema awareness, normalizedString, token

Subject: RE: Schema awareness, normalizedString, token
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 21 Feb 2007 14:57:37 -0000
RE:  Schema awareness
xsl:copy copies nodes from the input tree, including text nodes. It never
attempts to find the typed value of a node. The processor has some
flexibility here because it is allowed to normalize the value while building
the tree, but it isn't required to (and in my view it's better not to).

xsl:value-of creates a text node typically by atomizing the value of an
input node, that is, taking its typed value. The typed value for types such
as xs:normalizedString will have been whitepace-normalized.

Michael Kay
http://www.saxonica.com/ 



> -----Original Message-----
> From: jesper.tverskov@xxxxxxxxx 
> [mailto:jesper.tverskov@xxxxxxxxx] On Behalf Of Jesper Tverskov
> Sent: 21 February 2007 14:38
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Schema awareness, normalizedString, token
> 
> Hi
> 
> I have been testing XSLT 2.0 schema awareness using XMLSpy 
> 2007 to see if whitespace is replaced/deleted, etc, as it 
> should be when datatypes like xs:nornmalizedString and 
> xs:token is declared in the schema.
> 
> The whitespace rules of those datatypes are honored when I 
> use <xsl:value of> but not when I use the identity template 
> and <xsl:copy>.
> 
> Is that how things should be, (why?), or how it also works in Saxon?
> 
> Cheers
> Jesper Tverskov

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.