xsl-list
[Top] [All Lists]

RE: XPATH question

2003-08-07 13:52:37
Now, I can do this if I select the sumStat matching my 
criteria and then its 
parent, something like 
select="fullPathToSumStat/sumStat[(_at_)type='vald'][. 
> 4]/parent::*" (untested)

but is there some way to do this avoiding using an axis?

You can't do anything in XPath without using an axis, but you can avoid
going down and then back up:

fullPathToSumStat[sumStat[(_at_)type='vald'][. > 4]]

This expression uses the child axis twice, the attribute axis once, and
the self axis once.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>