Changeset 2326
- Timestamp:
- 10/23/12 12:01:03 (12 years ago)
- Location:
- cats/ISOcat/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cats/ISOcat/trunk/mod-ISOcat-access-data/dbms/ISOcat-schema-init.sql
r2159 r2326 311 311 INSERT INTO core_rule_type (rule_type, xml) VALUES('Object Constraint Language',false); 312 312 INSERT INTO core_rule_type (rule_type, xml) VALUES('Semantic Web Rule Language',true); 313 INSERT INTO core_rule_type (rule_type, xml) VALUES('SCHEMAcat reference',true); 313 314 314 315 -- the default registration authority -
cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/settings/builder.xml
r2288 r2326 110 110 </record> 111 111 <record jsxid="apihelp" type="map"> 112 <record jsxid="class" type="string">jsx3. gui.Matrix</record>112 <record jsxid="class" type="string">jsx3.xml.CDF.Document</record> 113 113 <record jsxid="member" type="string">_summary</record> 114 114 <record jsxid="aswindow" type="boolean">false</record> -
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> -
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.