- 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/xsd.xsl
r2029 r2326 96 96 <xsl:template match="dcif:dataCategory[@type='simple']"/> 97 97 98 <xsl:template match="*" mode="nonscopy">99 <xsl:element name="{local-name(.)}" namespace="{namespace-uri()}">100 <xsl:copy-of select="@*"/>101 <xsl:apply-templates mode="nonscopy"/>102 </xsl:element>103 </xsl:template>104 105 98 <xsl:template name="conceptualDomainTemplate"> 106 99 <xsl:choose> … … 109 102 <xs:simpleType> 110 103 <xs:restriction base="xs:{$datatype}"> 111 <xsl:apply-templates 112 select="(dcif:conceptualDomain[dcif:ruleType='XML Schema facet']/dcif:rule/*)[1]" 113 mode="nonscopy"/> 104 <xsl:copy-of 105 select="(dcif:conceptualDomain[dcif:ruleType='XML Schema facet']/dcif:rule/*)[1]"/> 114 106 </xs:restriction> 115 107 </xs:simpleType> … … 128 120 <xsl:variable name="datatype" select="(dcif:conceptualDomain/dcif:dataType)[1]"/> 129 121 <xsl:attribute name="type" select="concat('xs:',$datatype)"/> 130 <xsl:apply-templates 131 select="(dcif:conceptualDomain[dcif:ruleType='Schematron rule']/dcif:rule/*)[1]" 132 mode="nonscopy"/> 122 <xsl:copy-of 123 select="(dcif:conceptualDomain[dcif:ruleType='Schematron rule']/dcif:rule/*)[1]"/> 124 </xsl:when> 125 <xsl:when test="dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']"> 126 <xsl:variable name="datatype" select="(dcif:conceptualDomain/dcif:dataType)[1]"/> 127 <xsl:attribute name="type" select="concat('xs:',$datatype)"/> 128 <xs:annotation> 129 <xs:appinfo> 130 <xsl:copy-of 131 select="(dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']/dcif:rule/*)[1]"/> 132 </xs:appinfo> 133 </xs:annotation> 133 134 </xsl:when> 134 135 <xsl:otherwise>
Note: See TracChangeset
for help on using the changeset viewer.