OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] 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";
>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@hoehrmann.de · 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]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS