[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Value mapping from different URI

Subject: Value mapping from different URI
From: "oknam park" <ponda7777@xxxxxxxxxxx>
Date: Sat, 03 Jun 2006 21:07:26 +0000
value mapping office
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.