jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Singer <jackrab...@it-specialist.at>
Subject xpath
Date Thu, 02 Feb 2006 14:25:56 GMT
Hi,

I want to build an xpath query which returns all nodes of a particular
(well known) type where the property "value" of child node "name" has
the value "test".

e.g.:

node-a (of type level1)
    node name (of type language)
        property id="de"
        property value="deutsch"
    node name[2] (of type language)
        property id="en"
        property value="english"
node-b (of type level1)
    node name (of type language)
        property id="de"
        property value="deutsch"
    node name[2] (of type language)
        property id="en"
        property value="english"
node-c (of type level1)
    node name (of type language)
        property id="de"
        property value="anderes"
    node name[2] (of type language)
        property id="en"
        property value="other"

I want to have all nodes of type "level1" where the property "value" of
all child nodes "name" (or all child nodes of type "language") equals
"english". So the expected result with the above structure is:

node-a
node-b

Can somebody suggest an xpath query for that?

-- 
kind regards

Michael

Mime
View raw message