W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2004

Re: Changing "substitutionGroup" to "choice" and maintaining the validation equality of the schema

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: Tue, 06 Jan 2004 14:28:07 +0000
To: "Marko Smiljanic" <m.smiljanic@utwente.nl>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5b65fpp2x4.fsf@erasmus.inf.ed.ac.uk>

Sorry to be _very_ slow to reply to this one.

Your translations:

"Marko Smiljanic" <m.smiljanic@utwente.nl> writes:

>  element A (abstract=true)
>  element B (substitutionGroup="A")
>  element C (substitutionGroup="A")
>  element D () - sequence - element (ref="A")
>
> Now I convert Schema 1 to a "validation equal" Schema 2, presented
> below:
>
>  element B ()
>  element C ()
>  element D () - sequence - choice -- element (ref="B")
>                                   \_ element (ref="C")

is correct, and can always be done for any schema (not _not_ schema
document).

The subsequent messages in this thread don't contradict the above
statement, as long as the fact that in the mixed-namespace example
offered the schema involved does indeed require both schema
_documents_ to be processed, so the correct 'choice' becomes:

> Both (ns2:F and ns1:D) - sequence - choice - ref="ns1:B" 
>                                            - ref="ns1:C" 
>                                            - ref="ns2:E" 
 
As you correctly state, no wildcard required.

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@cogsci.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]
Received on Tuesday, 6 January 2004 09:33:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:41 GMT