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

RE: Why no namespace node KindTest?

Subject: RE: Why no namespace node KindTest?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 26 Aug 2006 21:29:21 +0100
RE:  Why no namespace node KindTest?
>   I wonder why there is no KindTest for namepace nodes.  In 
> particular, we can't write something like:
> 
>     if ( $arg instance of namespace() ) ...
> 

Quite a few people on the WGs don't like namespace nodes, because they have
difficulty implementing them efficiently. This is why the namespace axis has
been deprecated in XPath 2.0, and isn't available at all in XQuery. In fact,
in XQuery there is no expression that returns a namespace node. More
seriously, there is no way of dynamically constructing a namespace node,
which means it is impossible to create an element with namespaces that are
decided dynamically (except for the namespace used in the element name and
attribute names, of course).

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

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.