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

Re: determine root element in the xml from schema

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 09 Mar 2004 08:32:35 +0000
To: Mik Lernout <mik@futurestreet.org>
Cc: Michael Kay <mhk@mhk.me.uk>, "'Lingzhi Zhang'" <lzhang@cse.ogi.edu>, "'dev xmlschema'" <xmlschema-dev@w3.org>
Message-ID: <f5bptbm1kv0.fsf@erasmus.inf.ed.ac.uk>

Mik Lernout <mik@futurestreet.org> writes:

<snip/>

>  If this would be the case it would seem for example
> logically to be able to mark, when validating, the root-element you
> wish to validate against like in: validator.validate(po.xsd,
> 'purchaseOrder'). Why isn't this the case?

XSV does give you precisely this functionality, and I believe some
other validators do also.  The REC provides for this, by specifying
that validation may be started with an instance _and_ an element
declaration.

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@inf.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, 9 March 2004 03:33:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:23 UTC