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

XML transformation to RDF with XSLT help

Subject: XML transformation to RDF with XSLT help
From: "oknam park" <ponda7777@xxxxxxxxxxx>
Date: Wed, 03 May 2006 02:40:26 +0000
rdf xslt transformation
I'm working on a xml transformation to RDF with XSLT help.

I'm totally very new to XSLT. And It's hard and I'm stuck now. I need your help.

Here are xml element representation with three ways.
<gemq:teachingMethods xsi:type='dcterms:URI'>http://purl.org/gem/instance/GEM-TM/#PeerTutoring</gemq:teachingMethods>
<gemq:teachingMethods xsi:type='gemq:GEM-TM'>Thematic approach</gemq:teachingMethods>

I need to transform this to rdf like this
With xsi:type="dcterms:URI"
<gemq:teachingMethods rdf:resource="http://purl.org/gem/instance/GEM-TM/#PeerTutoring"/>

With xsi:type="gemq:GEM-TM"
    <rdf:value>Thematic approach</rdf:value>
    <rdfs:label>Thematic approach</rdfs:label>

And with just free-text

I did xslt with
<xsl:template match="gemq:teachingMethods">
			<xsl:when test="contains(@xsi:type, 'dcterms:URI')">
			  <xsl:attribute name="rdf:resource">
				  <xsl:value-of select="normalize-space(.)"/>
			<xsl:when test="not[@xsi:type]">
			  <xsl:attribute name="rdf:resource">
				  <xsl:value-of select="normalize-space(.)"/>
					<xsl:value-of select="normalize-space(.)"/>

Could you give me some tips or advice?

I appreciate it.

Thanks a lot,

Best regards,

Current Thread


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.
First Name
Last Name
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.