Ignore:
Timestamp:
10/23/12 12:01:03 (12 years ago)
Author:
mwindhouwer
Message:

M mod-ISOcat-access-data/dbms/ISOcat-schema-init.sql

  • add SCHEMAcat reference as a new rule type

M mod-ISOcat-interface-rest/representations/dcs2/xsd.xsl

  • add a SCHEMAcat reference as an appinfo

M mod-ISOcat-interface-rest/representations/dcs2/rng.xsl

  • add a SCHEMAcat reference as an annotation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/dcs2/rng.xsl

    r2029 r2326  
    9494    <xsl:template match="dcif:dataCategory[@type='simple']"/>
    9595       
    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 
    10396    <xsl:template name="conceptualDomainTemplate">
    10497        <xsl:choose>
     
    107100                <rng:value>
    108101                    <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]"/>
    110103                    </rng:data>
    111104                </rng:value>
     
    124117                <xsl:variable name="datatype" select="(dcif:conceptualDomain/dcif:dataType)[1]"/>
    125118                <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>
    127127            </xsl:when>
    128128            <xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.