OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: XML validation

[ Lists Home | Date Index | Thread Index ]
  • From: "Michael J. Fitzgerald" <mike@wyeast.net>
  • To: yimin zhu <yiminz@timberline.com>
  • Date: Fri, 22 Sep 2000 12:57:21 -0700

Yimin Zhu,

Actually, the namespace declaration does not point to a validating schema,
though it appears to. In section 2 of the "Namespaces in XML"
recommendation, in regards to the namespace name ("x-schema:bookschema.xml"
in your example) it states "It is not a goal that it be directly usable for
retrieval of a schema (if any exists)." See
http://www.w3.org/tr/rec-xml-names. That stated, I won't be surprised if
this behavior changes.

Some sources show runtime validation happening in a DOCTYPE declaration, but
it remains to be seen, as XML Schema is still in working draft and
shrink-wrapped validators are out a ways. E.g., <!DOCTYPE bookschema SYSTEM
"bookschema.xsd">. Check out http://www.w3.org/XML/Schema for some links to
current work on schema validators.

Mike

-----Original Message-----
From: yimin zhu [mailto:yiminz@timberline.com]
Sent: Friday, September 22, 2000 11:29 AM
To: 'xml-dev@lists.xml.org'
Subject: XML validation


It seems that in order to validate an XML file against a schema the location
of a schema file has to be included in the XML file, i.e. <book
xmlns="x-schema:bookschema.xml">...</book>. Are there any other ways to do
XML validation at runtime?

Yimin Zhu
Timberline Software Corp.









 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS