[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

namespace declarations in an element

Ghislain Fourny gfourny at inf.ethz.ch
Thu May 26 04:01:56 PDT 2011


  namespace declarations in an element
Hi Leo,

The only XPath/XQuery standard I am aware of which provides namespace axes is XPath 1.0:

http://www.w3.org/TR/xpath/#axes

You can navigate to the corresponding nodes using path expressions.

If I am correct, they were then deprecated in subsequent versions of XPath, and XQuery does not support them either. However, I can imagine that an implementation may provide its own functions for querying the namespace bindings.

I hope this helps?

Kind regards,
Ghislain


On May 26, 2011, at 12:42 PM, Leo Studer wrote:

> Hello
> 
> can anyone help how I get the three namespaces out of <root> with xpath/xquery?
> 
> <?xml version="1.0"?>
> <root xmlns:a="http://a.ch" xmlns:b="http://b.ch" xmlns:c="http://c.ch">
>    <a:test/>
>    <b:test/>
>    <c:test/>
> </root>
> 
> Thanks in advance
> Leo
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk




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.