[xsl] Value Mapping

Subject: [xsl] Value Mapping
From: "oknam park" <ponda7777@xxxxxxxxxxx>
Date: Tue, 20 Jun 2006 00:08:24 +0000
Hi All,

I need another help.

I need value mapping when a value in the subelement is matched with some value string.

xml instance:
<audience>
<toolfor scheme="GEM">
  Students
</toolfor>

My xslt:
<xsl:template match="audience">
<xsl:for-each select="audience/beneficiary[@scheme='GEM']">
<xsl:choose>
<xsl:when test=". = 'Students'"><gemq:beneficiary rdf:resource="http://purl.oclc.org/gem/instance/GEM-BEN/#Students"/></xsl:when>
</xsl:choose>
</xsl:for-each> </xsl:template>


Could you give me some help?

I would be appreciated.

Thanks a lot,

Best regards,
Oknam Park

Current Thread