[dsdl-discuss] Re: Validation process (was: Re: Some thougts on Part10

From: Jirka Kosek <jirka@kosek.cz>
Date: Thu Apr 12 2007 - 19:54:01 UTC

Martin Bryan wrote:

> Not sure what James' rules are, but to me there is a clear priority between the three cases stated in the unlikely event that more than one of them occurred in a single document:
>
> 1) An explicit doctype declaration must take precedence over anything that is specified on the root element that follows it.
> 2) Presuming that the PI precedes the root element then it must take precedence over anything specified in the root (but anywhere else it must be ignored because the root has already been parsed)
> 3) Attributes on the root only take precedence if there is no previously identified schema definition.

Why do you think it should work this way? Schema picked depends on
validator you are using -- DTD validator will use !DOCTYPE, XSD
validator will use xsi:schemaLocation and oXygen will use PI when asked
for RELAX NG validation because there is no standardized way for
associating schema with instance.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
------------------------------------------------------------------
 Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html

--
DSDL members discussion list
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-discuss-request@dsdl.org
(mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
Received on Thu Apr 12 21:53:52 2007

This archive was generated by hypermail 2.1.8 : Fri Apr 13 2007 - 20:33:03 UTC