- Timestamp:
- 10/23/12 12:01:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/dcs2/rng.xsl
r2029 r2326 94 94 <xsl:template match="dcif:dataCategory[@type='simple']"/> 95 95 96 <xsl:template match="*" mode="nonscopy">97 <xsl:element name="{local-name(.)}" namespace="{namespace-uri()}">98 <xsl:copy-of select="@*"/>99 <xsl:apply-templates mode="nonscopy"/>100 </xsl:element>101 </xsl:template>102 103 96 <xsl:template name="conceptualDomainTemplate"> 104 97 <xsl:choose> … … 107 100 <rng:value> 108 101 <rng:data type="{$datatype}"> 109 <xsl: apply-templates select="(dcif:conceptualDomain[dcif:ruleType='Relax NG datatype parameter']/dcif:rule/*)[1]" mode="nonscopy"/>102 <xsl:copy-of select="(dcif:conceptualDomain[dcif:ruleType='Relax NG datatype parameter']/dcif:rule/*)[1]"/> 110 103 </rng:data> 111 104 </rng:value> … … 124 117 <xsl:variable name="datatype" select="(dcif:conceptualDomain/dcif:dataType)[1]"/> 125 118 <xsl:attribute name="type" select="concat('xs:',$datatype)"/> 126 <xsl:apply-templates select="(dcif:conceptualDomain[dcif:ruleType='Schematron rule']/dcif:rule/*)[1]" mode="nonscopy"/> 119 <xsl:copy-of select="(dcif:conceptualDomain[dcif:ruleType='Schematron rule']/dcif:rule/*)[1]"/> 120 </xsl:when> 121 <xsl:when test="dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']"> 122 <xsl:variable name="datatype" select="(dcif:conceptualDomain/dcif:dataType)[1]"/> 123 <rng:value> 124 <rng:data type="{$datatype}"/> 125 <xsl:copy-of select="(dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']/dcif:rule/*)[1]"/> 126 </rng:value> 127 127 </xsl:when> 128 128 <xsl:otherwise>
Note: See TracChangeset
for help on using the changeset viewer.