Changeset 6905


Ignore:
Timestamp:
01/13/16 12:45:34 (8 years ago)
Author:
Menzo Windhouwer
Message:

M toolkit/general-component-schema.xsd

  • the a_res Schematron rule should only check for @ref and @ComponentId? being declared for a component
File:
1 edited

Legend:

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

    r5198 r6905  
    120120                            <sch:title>Check reserved attribute names</sch:title>
    121121                            <sch:rule context="Attribute">
    122                                 <sch:assert test="not(Name=('ref','ComponentId'))">Attribute name shouldn't be 'ref' or 'ComponentId', as these are used internally by CMD!</sch:assert>
     122                                <sch:assert test="not(exists(parent::AttributeList/parent::Component) and Name=('ref','ComponentId'))">Component attribute name shouldn't be 'ref' or 'ComponentId', as these are used internally by CMD!</sch:assert>
    123123                            </sch:rule>
    124124                        </sch:pattern>
Note: See TracChangeset for help on using the changeset viewer.