xsl-list
[Top] [All Lists]

[xsl] Value Mapping

2006-06-19 17:08:48

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[(_at_)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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>