xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kensche <david.kens...@rwth-aachen.de>
Subject xpath select by attribute value
Date Thu, 13 Nov 2003 10:51:25 GMT
Hi,
I'm trying to select a node with a rather simple
xpath expression:

/document[@url='file://ID101rev1.htm']/revision[last()]

(where document is the root node of any document in the collection I query)

The document I want to retrieve is this:

<document url="file://ID101rev1.htm">
   <revision url="file://ID101rev1.htm"
             mime="text/html"
             source="Google"
             language="en">
   ....
   </revision>
</document>

The revision[last()] part works fine in other queries where the document
is retrieved by filename, but if I specify any attribute value like in
the @url part I get no results. Can anybody say what is my mistake?

     Many thanks beforehand,
         David






Mime
View raw message