- Timestamp:
- 10/18/13 11:39:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMDI-Interoperability/CMD2RDF/trunk/xsl/CMDRecord2RDF.xsl
r3799 r3801 170 170 <!-- find the matching instances --> 171 171 <xsl:for-each select="$instance/@*[local-name()=$name]"> 172 <xsl:element name="{$has}Value" namespace="{$ns}"> 173 <!-- map the CMD XSD datatype to a datatype supported by RDF --> 174 <xsl:attribute name="rdf:datatype" select="concat('&xsd;',cmd:datatype($profile/Type))"/> 175 <!-- copy the literal --> 176 <xsl:value-of select="."/> 177 </xsl:element> 178 <xsl:if test="exists($profile/ValueScheme/enumeration)"> 179 <xsl:element name="{$has}Entity" namespace="{$ns}"> 180 <xsl:attribute name="rdf:resource" select="concat($ns,$id,'ValueScheme',$STEP,replace(.,'\s',''))"/> 172 <cmdm:contains> 173 <xsl:element name="{$id}" namespace="{$ns}"> 174 <xsl:attribute name="rdf:about" select="concat('#',generate-id(.))"/> 175 <xsl:element name="{$has}Value" namespace="{$ns}"> 176 <!-- map the CMD XSD datatype to a datatype supported by RDF --> 177 <xsl:attribute name="rdf:datatype" select="concat('&xsd;',cmd:datatype($profile/Type))"/> 178 <!-- copy the literal --> 179 <xsl:value-of select="."/> 180 </xsl:element> 181 <xsl:if test="exists($profile/ValueScheme/enumeration)"> 182 <xsl:element name="{$has}Entity" namespace="{$ns}"> 183 <xsl:attribute name="rdf:resource" select="concat($ns,$id,'ValueScheme',$STEP,replace(.,'\s',''))"/> 184 </xsl:element> 185 </xsl:if> 181 186 </xsl:element> 182 </ xsl:if>187 </cmdm:contains> 183 188 </xsl:for-each> 184 189 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.