Re: XML Data Islands

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 UTC