W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

Re: Extending with mixed content

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 06 Sep 2002 10:38:12 +0100
To: "Eric Jain" <Eric.Jain@isb-sib.ch>
Cc: "xmlschema-dev" <xmlschema-dev@w3.org>
Message-ID: <f5bn0qvjw57.fsf@cogsci.ed.ac.uk>

"Eric Jain" <Eric.Jain@isb-sib.ch> writes:

> This message was previously posted to the xml-schema-comments list, without
> getting any feedback. Second attempt:
> 
> I am having some problems designing an extensible schema for a specific
> application. Let's say I have an element:
> 
> <name>P12345</name>
> 
> The content must conform to a pattern like [OPQ]\d{5}, which is easily
> expressible in XML Schema. Now, we need to allow people to extend any
> element in the following manner:
> 
> <name>
>      P12345
>      <note>...</note>
> </name>
> 
> This can only be allowed by setting content="mixed"; unfortunately the
> original content can now no longer be controlled in any way. Our current
> workaround is not to use *any* content, but to put *everything* into
> attributes:
> 
> <name value="P12345"/>
> 
> <name value="P12345">
>      <note>...</note>
> </name>
> 
> Ugly. Let me know if this issue (if it is one in fact) is being addressed in
> XML Schema 1.1, and excuse me if this has already been discussed.

Extensive debate in the WG, no conclusions yet.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, 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/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Friday, 6 September 2002 05:38:15 GMT

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