RE: Feature Request: OtherNodeExpr: SelfExpr

Subject: RE: Feature Request: OtherNodeExpr: SelfExpr
From: "Lawton, Scott" <slawton@xxxxxxxxxxxx>
Date: Thu, 14 Jan 1999 12:28:34 -0500
>    <xsl:for-each select="thing1|thing2">
>      <xsl:choose>
>        <xsl:when test="{what goes here to test for thing1?}">
>          ...processing for a thing1 element...
>        </xsl:when>
>        <xsl:otherwise>
>          ...processing for a thing2 element...
>        </xsl:otherwise>
>      </xsl:choose>
>    </xsl:for-each>

Jumping in: although I've noticed there are workarounds, I would still echo
the feature request.

The context I would use it in is probably:

<xsl:template match="thing1|thing2">
  ...
</xsl:template>

Where ... is mostly -- but not completely -- the same for the two.  Yes, I
could extract the common parts into a macro but I think the above is much
simpler.

Scott


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


Current Thread