- From: Martin J. Duerst <duerst@w3.org>
- Date: Sat, 03 Jun 2000 10:40:49 +0900
- To: ht@cogsci.ed.ac.uk (Henry S. Thompson), Vijay Gummadi <vgummadi@erim.org>
- Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
I would like to add that the fact that dangling references are not an error is actually a feature (or at least I consider it to be one). It simplifies modularization considerably. In 'Modularization of XHTML', for example, I guess about half or maybe even more of the conditional sections could actually be left out if the authors wouldn't have had the goal of not only avoiding errors, but also avoiding warnings. Regards, Martin. At 00/06/02 08:24 +0100, Henry S. Thompson wrote: >Vijay Gummadi <vgummadi@erim.org> writes: > > > I ran a couple of schemas through the XML Schema validator and observed > that > > as of now, there is no support for name spaces. Is this true? The schemas I > > passed through the validator had element declarations, the types of which > > were not contained in that schema. > > For e.g.: > > <xsd:element name="BillingAddress" type="Address"/> > > My schema contained the above element declaration but not the definition of > > Address. > > The "Address" type is specified in another schema > > I had expected that the validator would generate a validation error on not > > finding the "Address" type within the scope of the schema. However, it > > passed with no errors. Is there any documentation available on the list of > > features supported by the validation tool? > >The short answer is, see the summary of support at > > http://www.ltg.ed.ac.uk/~ht/xsv.html > >Namespaces are supported, in detail. > >Your schema _is_ valid, just like the following DTD is valid > ><!DOCTYPE foo [ ><!ELEMENT foo (bar,baz?)> ><!ELEMENT bar (#PCDATA)> >]> > >There's only an error if you use your schema to validate an instance >which has a BillingAddress in it, so the validator needs the missing >type, _and_ no other schema document is available at runtime to supply >it. > >XSV should probably have a 'warn about dangling references' switch, >but that's not required by the spec. > >ht >-- > Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh > W3C Fellow 1999--2001, 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/
Received on Saturday, 3 June 2000 22:22:40 UTC