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]

select attribute value based on attribute value


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


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