[xsl] XSLT Path

Subject: [xsl] XSLT Path
From: "oknam park" <ponda7777@xxxxxxxxxxx>
Date: Mon, 19 Jun 2006 23:57:02 +0000
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

Current Thread