Hello, another XPath/XSL question :)
If i have a node tree like:
A
-- B (anymal-types=pets)
---- C (type=bird)
---- C (type=cat)
---- C (type=dog)
-- B (working-animals)
---- C (type=cow)
---- C (type=elephant)
-A
...
and another xml file ($xmlFile) that lists types that one needs for the given anymal-type
-pet
---- cat
---- dog
-working-animal
----elephant
how do i select only these animals that the $xmlFile oders me to?:
what in this case current() refers to: - is it node that template matches on ("A") - or is it current C node being evaluated.
What would be the right way to get to the current C node being evaluated and step one node up (to B, that defines animal-type).
Thanks.