Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > W3C meta-schema - useless?

Reply
Thread Tools

W3C meta-schema - useless?

 
 
Ian Pilcher
Guest
Posts: n/a
 
      08-31-2005
I was just wondering if anyone has ever been able to use the W3C meta-
schema (from http://www.w3.org/2001/XMLSchema) to actually validate a
schema, including the meta-schema itself.

The tools I've tried (xmllint from libxml2 and whatever parser Sun's
Java 1.5.0 uses) barf at various points. Is the meta-scehma flawed, or
does it just push the parsers too hard?

TIA

--
================================================== ======================
Ian Pilcher
================================================== ======================
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      08-31-2005

Ian Pilcher wrote:

> I was just wondering if anyone has ever been able to use the W3C meta-
> schema (from http://www.w3.org/2001/XMLSchema) to actually validate a
> schema, including the meta-schema itself.


It has been some time I have looked at that but my understanding is that
the schema serves some documentary purpose but validating against it
does not work as there is some bootstrapping necessary. However schema
parsers usually allow you to compile a schema and then give you errors
if the schema is not valid, there is no need to try to validate against
that meta schema if you want to check one of your own schemas.

--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
 
Henry S. Thompson
Guest
Posts: n/a
 
      09-01-2005
Ian Pilcher writes:

> I was just wondering if anyone has ever been able to use the W3C meta-
> schema (from http://www.w3.org/2001/XMLSchema) to actually validate a
> schema, including the meta-schema itself.


Yes -- XSV [1] uses it to validate every schema document that comes in
for use.

> The tools I've tried (xmllint from libxml2 and whatever parser Sun's
> Java 1.5.0 uses) barf at various points. Is the meta-scehma flawed, or
> does it just push the parsers too hard?


Surprised that Xerces doesn't accept the sForS -- error messages?

ht

[1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail:
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
 
Reply With Quote
 
Henry S. Thompson
Guest
Posts: n/a
 
      09-01-2005
Martin Honnen writes:

> It has been some time I have looked at that but my understanding is
> that the schema serves some documentary purpose but validating against
> it does not work as there is some bootstrapping necessary.


The W3C XML Schema REC makes clear that all schema documents must be
schema-valid with respect to the sForS. . .

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail:
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
 
Reply With Quote
 
Ian Pilcher
Guest
Posts: n/a
 
      09-01-2005
Henry S. Thompson wrote:
> Surprised that Xerces doesn't accept the sForS -- error messages?


UndeclaredPrefix: Cannot resolve 'xs:string' as a QName: the prefix 'xs'
is not declared.

I get this error whether I'm trying to validate my own schema or the
meta-schema itself.

--
================================================== ======================
Ian Pilcher
================================================== ======================
 
Reply With Quote
 
Henry S. Thompson
Guest
Posts: n/a
 
      09-02-2005
Ian Pilcher writes:

> Henry S. Thompson wrote:
>> Surprised that Xerces doesn't accept the sForS -- error messages?

>
> UndeclaredPrefix: Cannot resolve 'xs:string' as a QName: the prefix 'xs'
> is not declared.


That's downright weird -- needless to say there's a namespace
declaration for 'xs' at the top of
http://www.w3.org/2001/XMLSchema.xsd -- can anybody else replicate
this?

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail:
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
W3C validation Fredrik Elestedt ASP .Net 15 08-09-2005 08:38 AM
Whos wrong - Moz or W3C? user@domain.invalid Firefox 6 10-16-2004 11:13 PM
Problem with w3c validator in script definition of doPostBack Alfonso Alvarez ASP .Net 2 05-13-2004 07:47 AM
W3C Validator Icon and W3C Valdiator page Frank HTML 9 05-03-2004 09:32 AM
A curious behaviour with an URL on the W3C Griffure Firefox 0 08-11-2003 11:46 AM



Advertisments