XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Thomas DaggettSubject: 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):


xmlns:po="http://www.example.com/PO1"
targetNamespace="http://www.example.com/PO1"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">









(!-- etc. -->

(!-- etc. -->






(!-- etc. -->



(!-- etc. -->



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.

Postnext
Thomas DaggettSubject: Support for Schemas with Namespace definitions
Author: Thomas Daggett
Date: 07 Jun 2002 03:20 PM
Note you will have to View Source on my posting to see the schema! It is taken directly from the Schema Primer.

Postnext
(Deleted User) 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?

Alberto

Posttop
Thomas DaggettSubject: Re: Support for Schemas with Namespace definitions
Author: Thomas Daggett
Date: 11 Jun 2002 03:17 PM
I tried using the 4.0 version and it appears to work fine with our schemas. Thanks.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.