Changeset 6910
- Timestamp:
- 01/15/16 16:09:21 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
metadata/trunk/toolkit/src/main/resources/toolkit/xsd/cmd-component.xsd
r6908 r6910 5 5 --> 6 6 7 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://purl.oclc.org/dsdl/schematron" 7 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 8 8 xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" vc:minVersion="1.0" vc:maxVersion="1.1"> 9 9 10 10 <xs:import namespace="http://www.w3.org/XML/1998/namespace" 11 11 schemaLocation="http://www.w3.org/2005/08/xml.xsd"/> 12 13 <xs:annotation> 14 <xs:appinfo> 15 <xsl:key name="enums" match="item" use="."/> 16 </xs:appinfo> 17 </xs:annotation> 12 18 13 19 <!-- root element --> … … 440 446 <sch:title>CMD enumeration item</sch:title> 441 447 <sch:rule context="item"> 442 <sch:assert test=" empty(preceding-sibling::item[.=current()])">All items in an enumeration should be different. Found multiple items with value '<sch:value-of select="."/>'!</sch:assert>448 <sch:assert test="count(key('enums',current(),current()/parent::enumeration)) eq 1">All items in an enumeration should be different. Found multiple items with value '<sch:value-of select="."/>'!</sch:assert> 443 449 </sch:rule> 444 450 </sch:pattern>
Note: See TracChangeset
for help on using the changeset viewer.