[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: the Canonical path of a node
* Michael Kay wrote: >Another candidate that meets this requirement is to use XQuery syntax > >declare namespace p1="http://p1.uri"; >declare namespace p2="http://p2.uri"; >declare namespace p="http://p.uri"; >declare default element namespace"xxx"; >/p1:a[1]/p2:b[1]/p:c[1] > >but that seems rather verbose in the contexts where XPath is commonly used. Well, if you go there, you could just use /*[local-name() = 'a' and namespace-uri() = 'http://p1.uri'][1]/ *[local-name() = 'b' and namespace-uri() = 'http://p2.uri'][1]/ *[local-name() = 'c' and namespace-uri() = 'http://p.uri'][1] -- Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
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
|