Changeset 6684 for metadata


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
Location:
metadata/trunk/toolkit/src
Files:
2 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>
  • metadata/trunk/toolkit/src/test/resources/toolkit/TEI/records/sundhed_dsn.teiHeader.ref.xml

    r6255 r6684  
    99  </Header>
    1010  <Resources>
    11     <ResourceProxyList/>
     11    <ResourceProxyList>
     12      <ResourceProxy id="r0">
     13        <ResourceType>Resource</ResourceType>
     14        <ResourceRef>example.com</ResourceRef>
     15      </ResourceProxy>
     16    </ResourceProxyList>
    1217    <JournalFileProxyList/>
    1318    <ResourceRelationList/>
     
    1621    <teiHeader>
    1722      <type>text</type>
    18       <fileDesc>
     23      <fileDesc ref="r0">
    1924        <titleStmt>
    2025          <title lang="da">2. trimester abort eller dÞdfÞdsel</title>
     
    6166                <resp>Translated by</resp>
    6267                <name>
    63                   <name ref="#nil_person">empty</name>
     68                  <!--<name ref="#nil_person">empty</name>-->
     69                  <name ref="#nil_person"/>
    6470                </name>
    6571              </respStmt>
Note: See TracChangeset for help on using the changeset viewer.