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

Re: Differing behavior of Xalan and Saxon with namespa

Subject: Re: Differing behavior of Xalan and Saxon with namespaces. Who's right?
From: Niko Matsakis <niko@xxxxxxxxxxxxx>
Date: Thu, 13 Mar 2003 17:25:56 -0500
Re:  Differing behavior of Xalan and Saxon with namespa
In either case, though, the two documents are equivalent since the
FitnessCenter element is in no namespace either way.

As I said, not true. Namespace bindings are, unfortunately, a significant part of the document[1] --- if someone was trying to express a qname in an attribute value, for example, they might care that the binding was omittied.


Furthermore, in section 7.1.1 (Literal Result Elements), the XSLT spec says "The created element node will also have a copy of the namespace nodes that were present on the element node in the stylesheet tree with the exception of any namespace node whose string-value is the XSLT namespace URI (|http://www.w3.org/1999/XSL/Transform|), a namespace URI declared as an extension namespace (see [*14.1 Extension Elements*] <http://www.w3.org/TR/xslt#extension-element>), or a namespace URI designated as an excluded namespace."

Therefore, Xalan is correct and Saxon is wrong for this particular stylesheet and input. However, as I said earlier, when I run this in my local copy of Saxon, it works fine.


[1] --- don't blame me, I didn't write the specs!


Niko Matsakis

--
DataPower technology
http://www.datapower.com




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.