- Timestamp:
- 10/23/12 12:09:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/dcs2/rng.xsl
r2326 r2327 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:dcr="http://www.isocat.org/ns/dcr" xmlns:isocat="http://www.isocat.org/" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" exclude-result-prefixes=" dcif isocat">2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:dcif="http://www.isocat.org/ns/dcif" xmlns:dcr="http://www.isocat.org/ns/dcr" xmlns:isocat="http://www.isocat.org/" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" exclude-result-prefixes="xsl dcif isocat"> 3 3 <xsl:output method="xml" encoding="utf-8" indent="yes"/> 4 4 <xsl:param name="props"/> … … 120 120 </xsl:when> 121 121 <xsl:when test="dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']"> 122 <xsl:copy-of select="(dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']/dcif:rule/*)[1]"/> 122 123 <xsl:variable name="datatype" select="(dcif:conceptualDomain/dcif:dataType)[1]"/> 123 124 <rng:value> 124 125 <rng:data type="{$datatype}"/> 125 <xsl:copy-of select="(dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']/dcif:rule/*)[1]"/>126 126 </rng:value> 127 127 </xsl:when>
Note: See TracChangeset
for help on using the changeset viewer.