[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Michael J. Fitzgerald" <mike@w...>
  • To: yimin zhu <yiminz@t...>
  • 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@t...]
Sent: Friday, September 22, 2000 11:29 AM
To: 'xml-dev@l...'
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.






Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member