Someone else just tripped over this yesterday (off the list, though...)
Work-around, I think, is to use 2 predicates, for the time being. Instead of: /entity/subentities/entity[type='contact' and position()=1]/subentities/entity[type='kommunikationsdaten']/entities/* Use this: /entity/subentities/entity[type='contact'][position()=1]/subentities/entity[type='kommunikationsdaten']/entities/* Predicates of the format [x][y] is equiv to [x and y]. Why it's not working? Dunno. Will investigate, unless someone else wants to take a looksee. -bob (not the only committer...) On Tue, 19 Mar 2002, MarkW wrote: > Hi, > this cost me some time to figure out: > > /entity/subentities/entity[type='contact' and > position()=1]/subentities/entity[type='kommunikationsdaten']/entities/* > > It appears that jaxen cannot handle the "and" expression with the > position() function. > It works when i replace "position()=1" with eg. "id='1'". > I got no error; the resulting list was just always empty. > What made things rather frustrating is that it worked fine using the > xpath evaluator in XmlSpy 4! > > Cheers, > Mark > > PS. Using jaxen10b7. Havenīt yet got round to trying 10b8. > > > _______________________________________________ > Jaxen-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jaxen-interest > _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest