[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SVG and MathML in HTML5

  • From: Jesper Tverskov <jesper.tverskov@gmail.com>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 1 Jun 2011 16:38:19 +0200

Re:  SVG and MathML in HTML5
rjelliffe  wrote:
> As soon as they are nested in some other format, they *cannot* be
> well-formed XML anyway. XML starts at the entity level: the physical
> structure: bits at the start of a representation.

This is probably true when you say so but not relevant. We are not
talking about SVG and MathML inside HTML5 being well-formed in some
final analysis. But it is sad that we can no longer copy and paste
such SVG and MathML from an HTML5 document and into let us say an SVG
or an MathML document and expect it to well-formed or valid for that
matter. All element and attribute names could be a mixture of
upper-case and lower-case, the attributes quoted and not quoted, etc.
That is a little sad but probably unavoidable.

> the intersection of them (trying to be XML and HTML at the same time, or having islands of
> XML) may be more trouble than it is worth.

I have not made up my mind yet about this polyglot XHTML5,
http://www.w3.org/TR/2011/WD-html-polyglot-20110525/
but I find it interesting for the following reasons:

1. Very many developers would like to restrict HTML5 to a subset that
is at least XML so we can use our XML tools, we have been used to use
when developing XHTML 1.0/1.1.

2. We would not only like our HTML5 to be well-formed, we would also
like it to use lower-case for HTML elements and attributes.

3. "HTML5 + 1 + 2" you can develop, reuse and maintain with XML tools
and still serve it to browsers with "text/html". And it will validate
as HTML5.

4. But somehow it is tempting to add a few more restrictions, so you
could also serve the document with "application/xhtml+xml" without
having to change anything except the mimetype.

5. Polyglot XHTML5 could be a nice option even if you decide always to
use "text/html" for browsers. Why? Because it is a sensible set of
restrictions. All other sets of HTML5 restrictions will have a
tendency to be much more arbitrary, to be a little bit of this and a
little bit of that in a much less clear cut way.

6. Somehow I liked the polyglot spec. It made me think about a lot of
markup and browser related DOM issues I have never been thinking about
before. Almost any other more or less arbitrary restriction of HTML5
doesn't teach most of us anything.

Cheers
Jesper Tverskov
http://www.xmlplease.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.