This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Check if a field matches "any" of a set of other entries
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Check if a field matches "any" of a set of other entries
- From: Ben Robb <Ben at cscape dot com>
- Date: Wed, 3 May 2000 10:25:49 +0100
- Reply-To: xsl-list at mulberrytech dot com
This should do the job:
<xsl:for-each select="/document/data/entry">
<xsl:choose>
<xsl:when test=". = /document/references/ref">
<b><xsl:value-of select="text()"/></b>
</xsl:when>
<xsl:otherwise>
<i><xsl:value-of select="text()"/></i>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
Ben
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list