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

RE: Namespace problem

Subject: RE: Namespace problem
From: Marc Schneider <mschneider@xxxxxxxxx>
Date: Tue, 14 Sep 2004 12:13:50 -0400
schneider 14
So, if I walk up the DOM tree from my current node to the root and take the union of the namespace nodes at each DOM Node will I have the set of all namespace node?

Marc

At 06:41 PM 9/13/2004, you wrote:
> My reading of Dave's response was that in Xalan-C the namespace axis
does
> return all in-scope namespaces, but that you cannot reliably obtain the
> parent element of a namespace node. So rather than accessing the parent
of
> the namespace node using the parent axis, you need to save it (the
parent
> element) in a variable. Is that correct?

Yes, that's correct.  You get all of the in-scope namespace nodes, but
they are not necessarily parented as you would expect.

It's really a DOM-style implementation, and the namespace axis just goes
up the tree and gathers up the nodes.  So, this breaks when you really on
generate-id() as a hack to implement node identity, and also in the case,
where you use the parent axis.  In the first case, there's no work-around,
while in the second case, there is.

Dave

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.