Post new topic Reply to topic  [ 7 posts ] 
XML Schema 
Author Message

Joined: Tue Apr 06, 2004 3:24 pm
Posts: 3
Post XML Schema
Howdy,

The X3D XML Schema doesn't appear to be a valid schema. Are there any plans to update it. I'll be happy to assist with getting it to work.

Thanks,
Gregg


Tue Apr 06, 2004 3:28 pm
Profile

Joined: Wed Apr 07, 2004 5:10 pm
Posts: 4
Location: Monterey California USA
Post Re: XML Schema
hi Gregg. currently the X3D Schema passes both XML Spy and the online XML Schema Validator - url and info is presented at
http://www.web3d.org/specifications/x3d ... ngelog.txt

Please advise on what problems you are finding, and how did you get them. If there is an example .x3d scene provoking the error, that would help too.

Thanks for your efforts.

_________________
all the best, Don

Naval Postgraduate School, Code USW/Br, MOVES Institute, Monterey CA 93943-5000 USA


Wed Apr 07, 2004 5:16 pm
Profile WWW

Joined: Tue Apr 06, 2004 3:24 pm
Posts: 3
Post 
Hi,

I'm using Stylus Studio and it's complaining about some things in the schema when I use it to validate an X3D file.

I'm probably doing something wrong. Let me check it again, more closely. If I can't figure out why Stylus Studio is having problems with it I'll post some of the errors it's detecting and maybe that will give some clues about what my problem is.

Thanks,
Gregg


Wed Apr 07, 2004 7:10 pm
Profile

Joined: Tue Apr 06, 2004 3:24 pm
Posts: 3
Post 
Hi Don,

It appears that some parsers/validators like the schema and some don't.

Stylus Studio allows me to select different parsers to use for validation and they get mixed results. Everything from more than 50 errors to no errors. I found an online validator that comes back with the 'more than 50 errors' result. Here's the url to that one. http://tools.decisionsoft.com/schemaValidate.html.

Would it be possible for you to post the url to the on-line site you used?

This is very curious, I wonder if it could have something to do with the version of XML Schema that it's using to validate?

Here are a few lines from one of the the error reports I'm getting.

Running custom validation engine Xerces-J 2.5.1...
Xerces Java 2 Validation Starting.
file:///c:/downloads/box.x3d:2,145: (Error) cos-ct-extends.1.4.3.2.2.1: Error for type 'X3DInfoNode'. The content type of a derived type and that of its base must both be mixed or element-only.
file:///c:/downloads/x3d-3.0.xsd:1402,39: (Error) cos-applicable-facets: Facet 'maxInclusive' is not allowed by this type.
file:///c:/downloads/x3d-3.0.xsd:1411,39: (Error) cos-applicable-facets: Facet 'maxInclusive' is not allowed by this type.
file:///c:/downloads/x3d-3.0.xsd:1565,19: (Error) derivation-ok-restriction.5.3.1.2: Error for type 'X3DScriptNode'. The content type of this type is mixed, but the content type of the base is not.

I can post the whole thing if I need to.

I'll continue to investigate.

Thanks,
Gregg


Thu Apr 08, 2004 3:56 am
Profile

Joined: Wed Apr 07, 2004 5:10 pm
Posts: 4
Location: Monterey California USA
Post 
This is very helpful. Thanks for the details and references.

I think the problem might be that we changed some types to allow regular expression (regex) validation as string types, but still had min/max constraints which only pertain to numeric types. I believe Alan Hudson saw a problem like this too.

I should be able to work on it next week. Today we finish the Web3D Symposium, http://www.web3D.org/s2004

_________________
all the best, Don

Naval Postgraduate School, Code USW/Br, MOVES Institute, Monterey CA 93943-5000 USA


Thu Apr 08, 2004 7:18 am
Profile WWW

Joined: Wed Apr 07, 2004 5:10 pm
Posts: 4
Location: Monterey California USA
Post 
greggpatton wrote:
[...]
Would it be possible for you to post the url to the on-line site you used?


excerpt from the top of x3d-schema-changelog.txt follows:

X3D schema changelog: http://www.web3d.org/specifications/x3d ... ngelog.txt
http://www.web3d.org/TaskGroups/x3d/tra ... ngelog.txt

Revised: 26 December 2003

Author: Don Brutzman

Schema format in source file:
<X3D xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance">

References:
- This schema: http://www.web3d.org/specifications/x3d-3.0.xsd
- http://www.web3d.org/TaskGroups/x3d/tra ... 3d-3.0.xsd

- XML Schema validator: http://www.w3.org/2001/03/webdata/xsv

_________________
all the best, Don

Naval Postgraduate School, Code USW/Br, MOVES Institute, Monterey CA 93943-5000 USA


Thu Apr 08, 2004 7:23 am
Profile WWW

Joined: Fri Apr 16, 2004 9:27 am
Posts: 4
Post 
I too am having problems with the XML schema.

I have tried to validate the schema using the Xerces based IBM XML schema quality checker at http://www.alphaworks.ibm.com/tech/xmlsqc but it dies in an a stackoverflow.

I have also tried to use xmlbeans http://xml.apache.org/xmlbeans to generate java classes from the schema but it complains about the validity of the schema.

It seems the schema passes the wc3 schema checker correctly, so perhaps it is an issue with the java XML schema implementations


Fri Apr 16, 2004 10:10 am
Profile YIM
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: MSNbot Media and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron