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

RE: XPath attribute namespace

Subject: RE: XPath attribute namespace
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 8 Aug 2001 09:10:09 +0100
xpath attribute
> I don't understand why the XPath spec says:
>
> "the namespace axis contains the namespace nodes of the
> context node; the axis will be empty unless the context node
> is an element"

The set of namespace nodes gives you all the namespaces that are in scope
for an element. It's not necessary to provide the namespaces that are in
scope for an attribute or for any other kind of node, because these are
exactly the same as the namespaces in scope for its containing element.
>
> How do you get to the namespace for an attribute node?

The same way as you get the namespace URI for the name of an element node,
by calling the namespace-uri() function. This will always be *one* of the
in-scope namespaces for the containing element; you only need the namespace
axis if you want *all* of the in-scope namespaces.

Mike Kay
Software AG


 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.