[Home] [By Thread] [By Date] [Recent Entries]
Sorry not for being clear.
Here is my expectation. xml instance:
<audience>
<toolfor scheme="GEM">
Students
</toolfor>
<beneficiary scheme=GEM">Student Teachers </beneficiary>
</audience>My RDF transformation expectation is that beneficiary has a value from the scheme in GEM and it is "Student Teachers", xslt transformation to rdf is <dcterms:beneficiary rdf:resource="http://purl.oclc.org/gem/instance/GEM-BEN/#StudentTeachers"/> and if toolfor has a value from the scheme in GEM and it is "Teachers", xslt transformation to rdf is <dcterms:beneficiary rdf:resource="http://purl.oclc.org/gem/instance/GEM-MED/#Teachers" /> Here is My xslt: <xsl:template match="audience"> <xsl:for-each select="audience/beneficiary[@scheme='GEM']"> <xsl:choose> <xsl:when test=". = 'Students'"> <dcterms: beneficiary rdf:resource="http://purl.oclc.org/gem/instance/GEM-BEN/#StudentTeachers"/> </xsl:when> </xsl:choose> </xsl:for-each> <xsl:for-each select="audience/toolfor[@scheme='GEM']"> <xsl:choose> <xsl:when test=". = 'Teachers'"> <dcterms: beneficiary rdf:resource="http://purl.oclc.org/gem/instance/GEM-MED/#Teachers"/> </xsl:when> </xsl:choose> </xsl:for-each> </xsl:template> Could you give me some help? Thanks a lot, Best regards, Oknam Park <beneficiary scheme=GEM">Students </beneficiary></audience>From: "Michael Kay" <mike@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: Value Mapping Date: Tue, 20 Jun 2006 08:18:27 +0100 > > 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/#Stude > nts"/></xsl:when> > </xsl:choose> > </xsl:for-each> </xsl:template> > > Could you give me some help?
|

Cart



