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

RE: default namespace in xsl and xpath expressions

Subject: RE: default namespace in xsl and xpath expressions
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 15 Jul 2004 17:34:11 +0100
xpath and default namespaces
> But why doesn't it work when I set the default namespace to the
> document's namespace and try to use Xpath expressions in XSL without
> namespace qualifiers? 

It doesn't work because that's the way the language was defined.

If you're asking, why was it defined that way, then we can only guess at the
history. I think the likely reason is that it makes life very difficult when
you have different default namespaces for the source and the result
document. However, this is the way XQuery has chosen to do it, and only time
will tell whether it makes life easier or harder.

Michael Kay

Current Thread


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.
First Name
Last Name
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.