[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] XPATH question
Subject: RE: [xsl] XPATH question From: "Michael Kay" <mhk@xxxxxxxxx> Date: Thu, 7 Aug 2003 21:52:37 +0100 |
> Now, I can do this if I select the sumStat matching my > criteria and then its > parent, something like > select="fullPathToSumStat/sumStat[@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[@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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XPATH question, Lars Huttar | Thread | RE: [xsl] XPATH question, Andrew Welch |
[xsl] sort order="descending" quest, Jessica P. Hekman | Date | RE: [xsl] <xsl:if>, Michael Kay |
Month |
Keywords