- From: Stefan Wachter <Stefan.Wachter@gmx.de>
- Date: Fri, 6 Sep 2002 21:37:39 +0200 (MEST)
- To: ht@cogsci.ed.ac.uk;xmlschema-dev@w3.org; (Henry S. Thompson);
Dear Mr. Thompson,
I am using a validator that I wrote myself. And it successfully validates
the schema for schemas now! I plan to release it next week as open source.
For the test I had to do the following adjustments on XMLSchema.xsd
1. I changed the targetNamespace of XMLSchema.xsd
<xs:schema
targetNamespace="http://www.w3.org/2001/XMLSchemaTest"
blockDefault="#all"
elementFormDefault="qualified"
version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsTest="http://www.w3.org/2001/XMLSchemaTest"
xml:lang="EN"
xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty">
2. I changed all references to symbols in the xs namespace to xsTest
(find-replace of ["xs:] with ["xsTest:]
3. I introduced a defintion of anySimpleType using the built-in simple type:
<xs:simpleType name="anySimpleType">
<xs:restriction base="xs:anySimpleType"/>
</xs:simpleType>
4. I had to adjust the definition of the decimal type. After the
replacements of step 2 the decimal type was derived from anySimpleType. Therefore none
of the "numeric" facets (digits, fractionDigits, totalDigits) was applicable.
I changed the definition to use the built-in decimal type as its base type.
After these for adjustments I could read in the schema for schema. In order
to validate it, I had to created a copy and change the xs namespace to the
xsTest namespace:
<xsTest:schema
targetNamespace="http://www.w3.org/2001/XMLSchemaTest"
blockDefault="#all"
elementFormDefault="qualified"
version="1.0"
xmlns:xsTest="http://www.w3.org/2001/XMLSchemaTest"
xml:lang="EN"
xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty">
<xsTest:annotation>
<xsTest:documentation>
Part 1 version: Id: XMLSchema.xsd,v 1.50 2002/05/22 09:24:24 ht Exp
Part 2 version: Id: datatypes.xsd,v 1.54 2002/05/27 22:22:50 ht Exp
</xsTest:documentation>
</xsTest:annotation>
...
2400 more lines...
...
</xsTest:schema>
--Stefan
>
> Stefan Wachter <Stefan.Wachter@gmx.de> writes:
>
> > I am try to validate the current version of XMLSchema.xsd (available at
> > http://www.w3.org/2001/XMLSchema.xsd) against itself. I observed that in
> the
> > current verion the include element for datatypes.xsd was removed, i.e.
> the
> > element <xs:include schemaLocation="datatypes.xsd"/>.
> >
> > Can anyone tell me a reason for this? Now it does not validate.
>
> That inclusion was replace by textual incorporation about a year ago --
> what
> validator are you using and what error(s) is it reporting?
>
> ht
> --
> Henry S. Thompson, HCRC Language Technology Group, University of
> Edinburgh
> W3C Fellow 1999--2002, part-time member of W3C Team
> 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
> Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
> URL: http://www.ltg.ed.ac.uk/~ht/
> [mail really from me _always_ has this .sig -- mail without it is forged
> spam]
>
Received on Friday, 6 September 2002 15:38:11 UTC