This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: "Or" in XPATH expression at last step


> I am having trouble producing what I think should be a simple Xpath
> expression.
> I want something like:
> 
> <xsl:for-each select="/TOP/A[@type=2]/(C|D)">
> 
<xsl:variable name="t" select="/TOP/A[@type=2]"/>
<xsl:for-each select="$t/C | $t/D">

or

<xsl:for-each select="/TOP/A[@type=2]/*[self::C|self::D]">

Mike Kay

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]