You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by ax...@db.com on 2000/06/09 09:18:12 UTC
Beginner's problems with XPath or may a bugreport
Hi,
I'm a beginner with XALAN. I installed XALAN-J as recommended (hope so) and I've got a problem with the sample ApplyXPath.
If I try it out using the following command line
java ApplyXPath foo.xml /doc/name[@first="David"]
I allways get the result
<output>
</output>
but there are two "name" tags with a "first" attribute value "David":
<?xml version="1.0"?>
<doc>
<name first="David" last="Marston"/>
<name first="David" last="Bertoni"/>
<name first="Donald" last="Leslie"/>
<name first="Emily" last="Farmer"/>
<name first="Jack" last="Donohue"/>
<name first="Myriam" last="Midy"/>
<name first="Paul" last="Dick"/>
<name first="Robert" last="Weir"/>
<name first="Scott" last="Boag"/>
<name first="Shane" last="Curcuru"/>
</doc>
Other queries I tried work fine. It only seems to be a problem with selecting elements by attribute values. Is it a known bug or have I done something wrong?
Any suggestion is welcome!
Thanks
Axel