Mohamed/Rick
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.
Martin
----- Original Message -----
From: Rick Jelliffe
To: dsdl-discuss@dsdl.org
Sent: Thursday, April 12, 2007 11:36 AM
Subject: [dsdl-discuss] Re: Validation process (was: Re: Some thougts on Part10
Innovimax SARL wrote:
>
> Yes, indeed :
> 1) There is a doctype declaration in the XML file
> 2) There is an xsi:schemaLocation or xsi:noNamespaceSchemaLocation
> defined in the document
> 3) There is a PI <?oxygen RNGSchema="example.rnc" type="compact"?> in
> the document
>
By the way. A couple of years back the Oxygen people told me they would
be happy to adopt James Clark's conventions from his editor for
selecting a schema. I think it is a good place to start, because it is
implemented and has appeal to more than one implementer.
Cheers
Rick Jelliffe
--
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)
-- 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 20:13:57 2007
This archive was generated by hypermail 2.1.8 : Thu Apr 12 2007 - 20:03:02 UTC