Re: Forcing a certain document element

Ian Stokes-Rees wrote:
> 
.../...
> And I would like this XML document to validate:
> 
> <documentElement>
>   <someRefElement foo="1" bar="2"/>
> </documentElement>
> 
> But not have this validate:
> 
> <someRefElement foo="1" bar="2" />
> 
> (where "someRefElement" is the document element).
> 
> How can I use XSDL to enforce this?

You can specify the doctype in the document prolog (using a good old
doctype definition) or make sure that the definition of "someRefElement"
isn't global.

Eric



> Ian.
> --
> ian.stokes-rees@decisionsoft.com          tel: +1865 203 192
> DecisionSoft Ltd.                         fax: +1865 203 194
> www.decisionsoft.com                      Oxford, UK, OX2 OEA

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

Received on Friday, 12 January 2001 12:21:04 UTC