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

Re: namespace axis

Subject: Re: namespace axis
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 Jun 2000 19:31:24 +0100 (BST)
Re: namespace axis
>>
>> Would the local-name(),name() or namespace() methods give the results you
>> need, perhaps working up through the ancestor axis ?
>
>Actually, name() should give the prefix, while the node value is the
>namespace name. At least this is what Saxon does...
>

Yes but I think the point is that for almost all conceivable uses
you can get all the namespace information you need by applying
namespace-uri() to the element and attribute nodes that you are
interested in, rather than accessing the namespace nodes.

The only time (normally) that you need the namespace node is to get
access to namespace declarations for namespaces that are not used
directly in the document. Perhaps they just appear for the use of xpath
expressions in attribute values, for example. That is the only time I've
used the namespace axis: when the input document is itself an xsl
stylesheet.

David


 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.