Re: newbie XPATH newsgroup ?
Markus Siebeneicher <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
rvj wrote: > correction : something like > > >> <ns1:author ns1:author="www.foo1" xpath="author[@id='x']> >> <ns2:author ns2:author=www.foo2 xpath="author[@id='y']/> >> <ns1:author> >> > > > "rvj" <[email protected]> wrote in message > news:[email protected]... > >>I think the correct term is serialized but really what I am trying to >>understand is XPath with multiple namespaces >> >>For example if you search for an attribute called 'author' but with >>multiple namespaces. Given >> >> xpath= "/ns1:author[@id='x']/ns2:author[@id='y'] >> >>is it possible to declare the namespace references in the xpath? >> >>It seems that a serialized xpath format would make this a lot easier to >>read >> >> <ns1:author ns1:author="www.foo1" xpath="@id='x'> >> <ns2:author ns2:author=www.foo2 xpath="@id='y'/> >> <ns1:author> >> >>Any recommended reading for XPath+multiple namespaces? >> >> >>"rvj" <[email protected]> wrote in message >>news:[email protected]... >> >>>a) is there a XPath newsgroup >>> >>>b) very simply all I want to know is there is a mechanism >> >>(exists/proposed) >> >>>for switching between a compact XPath representation and a more verbose >> >>XML >> >>>structured representation ? >>> >>>where >>> >>> /provider[@id=123]/library[@id=234]/detail[@id=345]/* >>> >>>can be alternatively represented something like >>> >>> <provider xpath="[@id=123]" > >>> <library xpath="[@id=234]" > >>> <detail xpath="[id=345]/*" /> >>> </library> >>> </provider> >>> >>> >> > > I'm not sure about your question, but maybe this is a usefull suggestion to your research -> /*[name()='ns1:author'][@id='123']/*[name()='ns2:author'][@id='234']