Ignore:
Timestamp:
01/14/16 13:06:02 (9 years ago)
Author:
Menzo Windhouwer
Message:

M toolkit/general-component-schema.xsd

  • removed the a_nest Schematron rule, which was checking a best practice.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/branches/cmdi-1.1/toolkit/general-component-schema.xsd

    r6906 r6909  
    121121                            <sch:rule context="Attribute">
    122122                                <sch:assert test="empty(preceding-sibling::Attribute[Name=current()/Name])">All attributes in an attribute list should have a different name. Found multiple attributes named '<sch:value-of select="Name"/>'!</sch:assert>
    123                             </sch:rule>
    124                         </sch:pattern>
    125                         <sch:pattern id="a_nest">
    126                             <sch:title>Check attribute nesting</sch:title>
    127                             <sch:rule context="Attribute" role="warning">
    128                                 <sch:assert test="empty((ancestor::CMD_Component|ancestor::CMD_Element)[1][@name=current()/Name])">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>
    129123                            </sch:rule>
    130124                        </sch:pattern>
Note: See TracChangeset for help on using the changeset viewer.