[xml] IDC bug?
- From: Frans Englich <frans englich telia com>
- To: xml gnome org
- Subject: [xml] IDC bug?
- Date: Wed, 5 Apr 2006 15:23:56 +0000
Either I'm not using IDCs correctly(which may very well be the case), or
there's a bug in xmllint. Consider this schema:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="test-group">
<xs:complexType>
<xs:sequence>
<xs:element name="test-case" minOccurs="0"
maxOccurs="unbounded">
<xs:unique name="idc1">
<xs:selector xpath="."/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
<xs:element ref="test-group" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required" />
</xs:complexType>
<xs:unique name="idc2">
<xs:selector xpath="."/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
</xs:schema>
The following two documents validates.
<test-group name="group1">
<test-group name="group1"/>
</test-group>
<test-group name="group1">
<test-case name="test-case1"/>
<test-case name="test-case1"/>
</test-group>
But as I see it, they shouldn't. Or should they?
This was produced with libxml2 version 20623.
Cheers,
Frans
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]