Changeset 6908 for metadata


Ignore:
Timestamp:
01/14/16 13:05:14 (8 years ago)
Author:
Menzo Windhouwer
Message:

M toolkit/src/main/resources/toolkit/xsd/cmd-component.xsd
M toolkit/src/main/resources/toolkit/sch/cmd-component-best-practices.sch

  • moved a_nest Schematron rule to best practices

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

  • added TODO
Location:
metadata/trunk/toolkit/src/main/resources/toolkit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/src/main/resources/toolkit/sch/cmd-component-best-practices.sch

    r6907 r6908  
    1111    </sch:pattern>
    1212   
     13    <sch:pattern id="a_nest">
     14        <sch:title>Check attribute nesting</sch:title>
     15        <sch:rule context="Attribute" role="warning">
     16            <sch:assert test="empty((ancestor::Component|ancestor::Element)[1][@name=current()/@ame])">An attribute has the same name ('<sch:value-of select="@name"/>') as its element or component! Please, consider to rename one of them.</sch:assert>
     17        </sch:rule>
     18    </sch:pattern>
     19   
    1320</sch:schema>
  • metadata/trunk/toolkit/src/main/resources/toolkit/upgrade/cmd-record-1_1-to-1_2.xsl

    r6907 r6908  
    5959    <!-- the profile specific uris -->
    6060    <xsl:variable name="cmd-profile-uri" select="concat($cmd-profiles,'/',$profile)"/>
     61    <!-- TODO: determine if we need the 1.2' version of the profile -->
    6162    <xsl:variable name="cr-profile-xsd" select="concat($cr-profiles,'/',$profile,$cr-extension-xsd)"/>
    6263    <xsl:variable name="cr-profile-xml" select="concat($cr-profiles,'/',$profile,$cr-extension-xml)"/>
  • metadata/trunk/toolkit/src/main/resources/toolkit/xsd/cmd-component.xsd

    r6907 r6908  
    211211                            </sch:rule>
    212212                        </sch:pattern>
    213                         <sch:pattern id="a_nest">
    214                             <sch:title>Check attribute nesting</sch:title>
    215                             <sch:rule context="Attribute" role="warning">
    216                                 <sch:assert test="empty((ancestor::Component|ancestor::Element)[1][@name=current()/@ame])">An attribute has the same name ('<sch:value-of select="@name"/>') as its element or component! Please, consider to rename one of them.</sch:assert>
    217                             </sch:rule>
    218                         </sch:pattern>
    219213                    </xs:appinfo>
    220214                </xs:annotation>
Note: See TracChangeset for help on using the changeset viewer.