Re: [Moderator Action] XML Schema validator

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 Friday, 2 June 2000 03:24:18 UTC