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

Re: Embedding HTML

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 17 Mar 2003 08:39:07 +0000
To: Sam Carleton <sam@linux-info.net>
Cc: xmlschema-dev <xmlschema-dev@w3.org>
Message-ID: <f5bel569yl0.fsf@erasmus.inf.ed.ac.uk>

Sam Carleton <sam@linux-info.net> writes:

> I have a simply Q.  I have an XML document destine to be transformed
> into a XHTML page.  Within this XML document there is one element
> named <definition> which contains XHTML that will simply be copied
> from the XML to the XHTML page.  How do I go about defining the
> definition element so that it can contain XHTML but not any old
> element?

Use a wildcard with the XHTML namespace as its namespace constraint:

  <xs:any namespace="http://www.w3.org/1999/xhtml"/>

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@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 Monday, 17 March 2003 03:39:10 GMT

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