Changeset 2327


Ignore:
Timestamp:
10/23/12 12:09:11 (12 years ago)
Author:
mwindhouwer
Message:

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

  • annotation can't be nested in <rng:value/>
File:
1 edited

Legend:

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

    r2326 r2327  
    11<?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">
    33    <xsl:output method="xml" encoding="utf-8" indent="yes"/>
    44    <xsl:param name="props"/>
     
    120120            </xsl:when>
    121121            <xsl:when test="dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']">
     122                <xsl:copy-of select="(dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']/dcif:rule/*)[1]"/>
    122123                <xsl:variable name="datatype" select="(dcif:conceptualDomain/dcif:dataType)[1]"/>
    123124                <rng:value>
    124125                    <rng:data type="{$datatype}"/>
    125                     <xsl:copy-of select="(dcif:conceptualDomain[dcif:ruleType='SCHEMAcat reference']/dcif:rule/*)[1]"/>
    126126                </rng:value>
    127127            </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.