[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Value mapping from different URI
Hi All,
I have one question. I need to match the value from URI with the value in xml instance and import URI to transform to rdf in XSLT. For example, if <dcterms:educationLevel xsi:type='gemq:GEM-LEVEL'>Community Level</dcterms:educationLevel> in xml instance file, it goes to the URI to http://purl.org/gem/instance/level/ and check if there is a value "Community Level", it imports the URI in http://purl.org/gem/instance/level/ for that value "Community Level" like http://purl.oclc.org/gem/instance/level/#Communitylevel in output rdf file as <dcterms:educationLevel rdf:resource="http://purl.org/gem/instance/level/#Communitylevel"/> I spend a lot of time on these. but couldn't figure out. Could you help me from this trouble? It would be much much appreciated. Thanks a lot, As below, my current XSLT file, URI, XML instance, and expected RDF file. XSLT: <xsl:template match="dcterms:educationLevel[@xsi:type='gemq:GEM-LEVEL']"> <dcterms:educationLevel> <gemq:GEM-LEVEL> <rdf:value><xsl:value-of select="normalize-space(.)"/></rdf:value> <rdfs:label><xsl:value-of select="normalize-space(.)"/></rdfs:label> </gemq:GEM-LEVEL> </dcterms:educationLevel> </xsl:template> URI: URI: http://purl.org/gem/instance/level/] - <rdf:Description rdf:about="http://purl.oclc.org/gem/instance/level/#Communitylevel"> <rdf:type rdf:resource="http://purl.org/gem/qualifiers/GEM-LEVEL" /> <rdf:value>Community Level</rdf:value> <rdfs:label>Community Level</rdfs:label> </rdf:Description> XML File: <dcterms:educationLevel xsi:type='gemq:GEM-LEVEL'>Community Level</dcterms:educationLevel> Expected Output <dcterms:educationLevel rdf:resource="http://purl.org/gem/instance/level/#Communitylevel"/> Thanks a lot, Best regards, Oknam Park
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|