Subject: [xsl] XML transformation to RDF with XSLT help From: "oknam park" <ponda7777@xxxxxxxxxxx> Date: Wed, 03 May 2006 02:40:26 +0000 |
Hello. I'm working on a xml transformation to RDF with XSLT help.
With xsi:type="gemq:GEM-TM" <rdf:Description> <gemq:teachingMethods> <gemq:GEM-TM> <rdf:value>Thematic approach</rdf:value> <rdfs:label>Thematic approach</rdfs:label> </gemq:GEM-TM> </gemq:teachingMethods> </rdf:Description>
And with just free-text <rdf:Description> <gemq:teachingMethods>MultimediaInstruction</dc:identifier> </rdf:Description>
I did xslt with <xsl:template match="gemq:teachingMethods"> <xsl:choose> <xsl:when test="contains(@xsi:type, 'dcterms:URI')"> <xsl:attribute name="rdf:resource"> <xsl:value-of select="normalize-space(.)"/> </xsl:attribute> </xsl:when> <xsl:when test="not[@xsi:type]"> <xsl:attribute name="rdf:resource"> <xsl:value-of select="normalize-space(.)"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <gemq:teachingMethods> <xsl:value-of select="normalize-space(.)"/> </gemq:teachingMethods> </xsl:otherwise> </xsl:choose> </xsl:template>
Best regards, Oknam
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] capitalization problem in, seanwhalen | Thread | Re: [xsl] XML transformation to RDF, Eric Bréchemier |
[xsl] capitalization problem in Moz, Sean Whalen | Date | Re: [xsl] XML transformation to RDF, Eric Bréchemier |
Month |