473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

W3C meta-schema - useless?

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 i.*******@comcast.net
================================================== ======================
Aug 31 '05 #1
5 1483

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/
Aug 31 '05 #2
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: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Sep 1 '05 #3
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: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Sep 1 '05 #4
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 i.*******@comcast.net
================================================== ======================
Sep 1 '05 #5
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: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Sep 2 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Cezary | last post by:
Hello. I was read PHP manual, but i'm not sure yet. Here is my meta tags in html: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2"> <META HTTP-EQUIV="Expires"...
4
by: Brian | last post by:
Hi, I'm trying to use standard meta tags in an xsl doc and using cocoon as my processor. The problem is that cocoon changes for example: <meta name="keywords" content="test, test, test" /> ...
1
by: Darren Blackley | last post by:
Hi there I have documents that I want to automatically add additional meta tags to. The documents already have some meta tags and I want to keep them all together, so I want to add my new meta tags...
19
by: Christian Hvid | last post by:
Hello groups. I have a series of applet computer games on my homepage: http://vredungmand.dk/games/erik-spillet/index.html http://vredungmand.dk/games/nohats/index.html...
24
by: Day Bird Loft | last post by:
Web Authoring | Meta-Tags The first thing to understand in regard to Meta Tags is the three most important tags placed in the head of your html documents. They are the title, description, and...
3
by: J1C | last post by:
How can I programatically add meta tags with javascript?
5
by: RodneyDunes | last post by:
My site did validate and now it doesn't. The error I get is the following: document type does not allow element "META" here ....nt-type" content="text/html;charset=iso-8859-1"> Can someone...
1
by: Maziar Aflatoun | last post by:
Hi everyone, My goal is to modify the contents of my meta tag (html refresh). However, my code adds a new instance of the meta tag at the bottom of the page. Is there a way to modify it instead...
4
by: clintonG | last post by:
Anybody know how to dynamically write the meta tags using code so they are formatted on a separate line in the HTML source? Preferred or optimal framework classes that may be used in this regard? ...
16
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.