Hi All,
I need your help.
I need to XSLT Path mapping.
So, If it contains the value from the scheme in GEM,
it matches with the value for toolfor matches with the rdf value in this URL
(http://purl.org/gem/instance/GEM-MED/),
it needs to extract the URI under rdf:about such as <rdf:Description
rdf:about="http://purl.oclc.org/gem/instance/GEM-MED/#Students">
Here is my xml instance file:
<audience>
<toolfor scheme="GEM">
Students</toolfor>
<beneficiary scheme="GEM">
Students
</beneficiary>
</audience>
Here is my rdf expection:
<dcq:mediator
rdf:resource="http://purl.oclc.org/gem/instance/GEM-MED/#Students"/>
Here is my current xslt:
<xsl:template match="audience">
?<dcq:mediator>
<xsl:choose>
?<xsl:when test="contains (toolfor/@scheme,'GEM')">
<xsl:value-of select="normalize-space(toolfor)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="normalize-space(toolfor)"/>
?</xsl:otherwise>
?</xsl:choose>
</dcq:mediator>
<gemq:beneficiary>
<xsl:value-of select="normalize-space(beneficiary)"/>
</gemq:beneficiary>
</xsl:template>
Could you help me?
I'm deperated for your help.
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>
--~--