Hi,
I'm new to creating schemas, and I would like to make an attribute unique. What I currently have looks like this:
<xs:element name="Tick" type="TickType" maxOccurs="unbo unded" minOccurs="0">
<xs:unique name="Tick">
<xs:selector xpath="Tick"/>
<xs:field xpath="@count"/>
</xs:unique>
</xs:element>
<xs:complexTy pe name="TickType" >
<xs:attribute name="count" type="xs:int"/>
</xs:complexType>
The problem is that files with multiple Ticks with the same count are not failing like they should.
Example:
<Tick count="1">
</Tick>
<Tick count="1">
</Tick>
FYI I'm using xsv.exe to do the validation
I'm new to creating schemas, and I would like to make an attribute unique. What I currently have looks like this:
<xs:element name="Tick" type="TickType" maxOccurs="unbo unded" minOccurs="0">
<xs:unique name="Tick">
<xs:selector xpath="Tick"/>
<xs:field xpath="@count"/>
</xs:unique>
</xs:element>
<xs:complexTy pe name="TickType" >
<xs:attribute name="count" type="xs:int"/>
</xs:complexType>
The problem is that files with multiple Ticks with the same count are not failing like they should.
Example:
<Tick count="1">
</Tick>
<Tick count="1">
</Tick>
FYI I'm using xsv.exe to do the validation
Comment