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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
(Deleted User) Subject: Re: Validation error in my schema when trying to modify the schema for schemas
Author: (Deleted User)
Date: 15 Sep 2004 04:50 PM
Hi Jerry,

At 13.48 15/09/2004 -0400, stylus-studio-tech Listmanager wrote:
>[...]
>The attached schema is failing validation with 50 errors.
>
>Can you help out with this? I want to have the definitions and
>declarations that are defined and declared in the Schema for Schama
>available in my own schema, so I tried to import it:
>[...]
>As you can see I am tring to import the schema for schemas to re-use the
>objects in my own application.

The problem is that Xerces doesn't support loading the XMLSchema.xsd
schema; that schema is not really "valid", especially in the part that
defines the built-in types like xs:string or xs:decimal (not by chance that
part of the schema has this comment "First the built-in primitive
datatypes. These definitions are for information only, the real built-in
definitions are magic.")
As Xerces only allows one schema document per namespace URI, and the
http://www.w3.org/2001/XMLSchema URI is always already loaded inside
Xerces, when you try to import XMLSchema.xsd you are not really loading
anything; so your schema cannot reuse the simple type xs:topLevelSimpleType
because it will not be placed in the grammar repository.

The only suggestion I can give you is to extract that definition (and the
ones it refers to) and place them into your schema.

Hope this helps,
Alberto


Posttop
(Deleted User) Subject: Re: Validation error in my schema when trying to modify the schema for schemas
Author: (Deleted User)
Date: 18 Sep 2004 01:09 PM
Hi Jerry,

At 09.43 17/09/2004 -0400, stylus-studio-tech Listmanager wrote:
>From: "Jerry Sheehan"
>
>So is the schema for schemas is actually broken and not valid?

The schema for XMLSchema has been written only as a guide for the
developers of schema validators; its purpose is not to be a validator (also
because it doesn't capture all the rules of XMLSchema).

>Any parser that validates it is broken right?

That parser could be broken (i.e. not making some checks that are in the
specs) or very smart (i.e. not making those checks because it detects it's
a special schema); some vendors even decide to ship with a custom version
of that schema, one that they can parse.

Alberto


   
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.