This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
select attribute value based on attribute value
- To: xsl-list <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] select attribute value based on attribute value
- From: Chris Davidson <cdavidson at valinf dot com> (by way of MulberryTechnologies List Owner)
- Date: Fri, 16 Mar 2001 15:03:30 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Behalf Of Alex Reuter
This runs through them all and displays @att1
<xsl:for-each select="listOfelements/animal">
<xsl:if test=".[@att2='frogKEY']">
<xsl:value-of select="@att1"/>
</xsl:if>
<xsl:if test=".[@att2='dogKEY']">
<xsl:value-of select="@att1"/>
</xsl:if>
<xsl:if test=".[@att2='mouseKEY']">
<xsl:value-of select="@att1"/>
</xsl:if>
</xsl:for-each>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list