Ignore:
Timestamp:
10/17/15 07:46:49 (9 years ago)
Author:
Menzo Windhouwer
Message:

M toolkit/src/main/resources/toolkit/upgrade/cmd-record-1_1-to-1_2.xsl

  • fixed the heuristics

M toolkit/src/test/resources/toolkit/TEI/records/sundhed_dsn.teiHeader.ref.xml

  • enriched a bit to have a ref on a CMD component, and a ref on empty XML element
File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/src/main/resources/toolkit/upgrade/cmd-record-1_1-to-1_2.xsl

    r6683 r6684  
    154154                <xsl:copy/>
    155155            </xsl:when>
    156             <xsl:when test="exists(../parent::*/node()) or exists(../parent::*/@ComponentId)">
     156            <xsl:when test="exists(../node()) or exists(parent::*/@ComponentId)">
    157157                <!-- the parent is a component add the namespace to @ref -->
    158158                <xsl:attribute name="cmd:ref" select="."/>
     
    167167                    <xsl:when test="exists($attr/parent::AttributeList/parent::CMD_Component)">
    168168                        <!-- the parent is a component add the namespace to @ref -->
    169                         <xsl:message>!MENZO: the parent is a component add the namespace to @ref</xsl:message>
    170169                        <xsl:attribute name="cmd:ref" select="."/>
    171170                    </xsl:when>
    172171                    <xsl:otherwise>
    173172                        <!-- this is an element keep the @ref -->
    174                         <xsl:message>!MENZO: the parent is an element keep the @ref</xsl:message>
    175173                        <xsl:copy/>
    176174                    </xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.