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/
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format