Changeset 6909
- Timestamp:
- 01/14/16 13:06:02 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
metadata/branches/cmdi-1.1/toolkit/general-component-schema.xsd
r6906 r6909 121 121 <sch:rule context="Attribute"> 122 122 <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>129 123 </sch:rule> 130 124 </sch:pattern>
Note: See TracChangeset
for help on using the changeset viewer.