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

RE: 'nother xslt2 engine

Subject: RE: 'nother xslt2 engine
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 17 Nov 2004 04:30:41 -0000
RE:  'nother xslt2 engine
> > By default, the Altova XSLT 2.0 Engine strips all whitespace in
> > whitespace-only nodes from the source XML document. Note 
> that the presence
> > and absence of whitespace-only nodes affects the value the 
> position()
> > function returns. 
> 
> They must be joking? Or is this thing different than in XSLT 1.0?

XSLT 2.0 is a little more explicit than XSLT 1.0 in defining exactly what
the rules are.

With both versions, XSLT is defined to take a source tree as input and there
are no constraints on how the source tree is constructed: in effect,
construction of source trees is something that happens outside the XSLT
processor rather than within it. If someone wants to provide a utility that
constructs a tree by deleting every second element, and they think there is
a market for such a utility, they are welcome to do it.

The Data Model specification for 2.0 defines a default way of constructing
the data model from an Infoset or PSVI. This states that whitespace-only
text nodes should be discarded if they appear in "element content" - that
is, if they are children of an element whose DTD or XML Schema content model
does not allow mixed content. However, the conformance rules for XSLT 2.0 do
not require a processor to support this mapping. (Conformance rules,
however, often change in the final stages of completing a spec.)

Michael Kay

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.