Subject:Support for Schemas with Namespace definitions Author:Thomas Daggett Date:07 Jun 2002 03:16 PM
I am evaluating the schema generator that is bundled with the Stylus Studio. I have tested it with a very simple schema with confusing results. Every time I try to create a Schema element attribute that defines a namespace the generator complains that the schema is no longer valid. Here is an example taken directly from the W3C Schema Primer Part 0 (Section 4 Advanced Concepts):
According to the Schema Generator tool the above schema is consider invalid because of the presence of the definition of xmlns:po="http://www.example.com/PO1" on the Schema element. Clearly this is inconsistent with the specification for schemas. Please let me know if my interpretation is wrong or if some other setting must be made so that I can correctly create schemas that include namespace definitions.
Subject:Re: Support for Schemas with Namespace definitions Author:(Deleted User) Date:07 Jun 2002 03:24 PM
Thomas,
I guess you are using Stylus 3.1; in that version we were validating the
schema using the DTD found in the XML Schema specs, and the DTD validation
flags as an error any attribute or element that is not specified in the DTD
itself (i.e. the xmlns:po attribute).
With Stylus 4.0, we have changed the way validation is performed, and you
shouldn't get these errors anymore. Can you try using the trial version of 4.0?