W3C home > Mailing lists > Public > public-html-xml@w3.org > December 2010

Re: XML Data Islands

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 20 Dec 2010 15:58:08 +0000
Message-ID: <4D0F7D10.9030402@nag.co.uk>
To: Michael Kay <mike@saxonica.com>
Cc: public-html-xml@w3.org
On 20/12/2010 15:34, Michael Kay wrote:
> Can I ask: what's the status of "XML data islands" in HTML5?

I don't think <xml> has any defined behaviour in html5.

You can get the same effect (bar namespace considerations) as

<math>
<semantics>
<mi/>
<annotation-xml>
... xml goes here ...
</annotation-xml>
</semantics>
</math>


as annotaion-xml has an open content model in mathml. (the html 5 parser 
will put everything in the mathml namespace, and will abort the math 
element if any element with the local name of an html element is used, 
but otherwise any well formed XMl fragment should be OK there.)

If you don't care about validity you can use shorter forms, or svg for 
example

<svg style="display:none">
... xml goes here ...
</svg>

But really I'd like to be able to get to foreign content parsing without 
abusing svg or mathml.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
Received on Monday, 20 December 2010 15:58:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 December 2010 15:58:40 GMT