Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML Schema Test Collection

From: Mik Lernout <mik@------------.--->
To: xmlschema-dev@--.---
Date: 9/16/2004 5:08:00 PM
Hey all,

I am in the progress of writing a Java XML Schema validator (an 
anouncement will follow in the near future), and had a question about a 
test in the XML Schema Test Collection.

The instance /msxstest/attribute/attP009.xml should be valid. But how 
can this be when "att" is required? (According to the test master file 
there is not one validator that declares it valid)

Instance:
<?xml version="1.0"?>
<x:doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:x="http://xsdtesting" xsi:schemaLocation="http://xsdtesting 
attP009.xsd">
    <x:elem/>
</x:doc>

Schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
targetNamespace="http://xsdtesting" xmlns:x="http://xsdtesting" 
elementFormDefault="qualified" attributeFormDefault="qualified">
    <xsd:complexType name="attRef">
        <xsd:attribute name="att" use="required"/>
    </xsd:complexType>
    <xsd:element name="doc">
        <xsd:complexType>
            <xsd:choice>
                <xsd:element name="elem" type="x:attRef">
                </xsd:element>
            </xsd:choice>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>

It would be great if someone could explain this....

Mik



From ht@i... Thu Sep 16 13:37:44 2004
Received: from bart.w3.or


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent