W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2003

Re: Top-level any

From: Paul Warren <pdw@decisionsoft.com>
Date: 06 Feb 2003 14:36:53 +0000
To: robin.berjon@expway.fr
Cc: xmlschema-dev@w3.org
Message-Id: <1044542213.25972.179.camel@tobol.dsl.local>

On Thu, 2003-02-06 at 13:46, Robin Berjon wrote:
> I don't think this is possible, but I might have missed something. Is it 
> possible to have a global <any> in order to produce a schema for a vocabulary 
> that will occur solely embedded within random XML? I'd like to validate subtrees 
> containing my language without knowing anything about the enclosing tree, 
> especially nothing about the root element. It'd be jolly useful.

It is not possible to have a global <any>, but even if it were I don't
understand what it would achieve.  Whether your language can appear
within the enclosing tree is determined by the schema for the enclosing
tree?  There's nothing you can do in your schema to alter where your
elements are allowed to be included inside other XML.

Paul
-- 
Paul Warren, Client Services           DecisionSoft Limited
+44-1865-203192                        http://www.decisionsoft.com
Received on Thursday, 6 February 2003 09:36:57 GMT

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