Changeset 3799 for CMDI-Interoperability


Ignore:
Timestamp:
10/18/13 11:32:45 (11 years ago)
Author:
mwindhouwer
Message:

M xsl/CMDRecord2RDF.xsl
M xsl/Component2RDF.xsl

TODO: an Attribute intermediate node to keep has...AttributeValue? and has...AttributeEntity? together

Location:
CMDI-Interoperability/CMD2RDF/trunk/xsl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMDI-Interoperability/CMD2RDF/trunk/xsl/CMDRecord2RDF.xsl

    r3798 r3799  
    170170        <!-- find the matching instances -->
    171171        <xsl:for-each select="$instance/@*[local-name()=$name]">
    172             <xsl:element name="{$has}" namespace="{$ns}">
     172            <xsl:element name="{$has}Value" namespace="{$ns}">
    173173                <!-- map the CMD XSD datatype to a datatype supported by RDF -->
    174174                <xsl:attribute name="rdf:datatype" select="concat('&xsd;',cmd:datatype($profile/Type))"/>
  • CMDI-Interoperability/CMD2RDF/trunk/xsl/Component2RDF.xsl

    r3798 r3799  
    147147        <xsl:variable name="has" select="concat(cmd:path($context,concat('has',Name)),'Attribute')"/>
    148148        <!-- an attribute becomes a property -->
    149         <rdf:Property rdf:about="{$has}">
     149        <rdf:Property rdf:about="{$has}Value">
    150150            <rdfs:subPropertyOf rdf:resource="&cmdm;hasAttributeValue"/>
    151151            <xsl:call-template name="generic"/>
Note: See TracChangeset for help on using the changeset viewer.