Re: Forcing a certain document element

"Henry S. Thompson" wrote:
> 
> You can't use the XML Schema language itself to enforce this, just as
> you can't say it in a DTD document.  The XML Schema WG has taken on
> board a request that it be a requirement on XML Schema _processors_
> that they can be invoked in a way which specifies the element
> declaration to be used to validate the document element.

Can't you design your schema to have only one global element definition
?

I reckon that it's a severe constraint, but it could be a workaround if
you really wanted/needed to achieve this...

Eric

> ht
> --
>   Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
>           W3C Fellow 1999--2001, part-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/

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------

Received on Friday, 12 January 2001 12:40:38 UTC