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

Re: SVG and MathML in HTML5

  • From: rjelliffe <rjelliffe@allette.com.au>
  • To: <xml-dev@lists.xml.org>
  • Date: Wed, 01 Jun 2011 22:28:27 +1000

Re:  SVG and MathML in HTML5
 On Sat, 28 May 2011 11:58:02 +0100, David Carlisle <davidc@nag.co.uk> 
 wrote:
> On 28/05/2011 09:58, Jesper Tverskov wrote:
>> As we can read in the HTML5 spec, we can nest SVG and MathML inside
>> not well-formed HTML5 served with mimetype "text/html". We can also
>> read that SVG and MathML don't need to be well-formed:

 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.

 That you have to alter the notation seems to me to be no more sinister 
 than that in Java you might have to encode an XML document as
    "<p a=\"fred\">" + "hello</p>"

 XML inside HTML is HTML not XML.

 I have long held the view that it would be more suitable for there to 
 have been an XML-slack which would allow HTML idioms of error-recovery, 
 for use for XML vocabularies encoded as foreign HTML elements in HTML. 
 So, depending on whether the HTML5 people have taken any liberties, it 
 sounds pretty useful.  (Although XML insude HTML is HTML, but it would 
 be good if it were XML-ish and XML-able and XML-leaning and XML-friendly 
 HTML.)

 The public is best served by moderate plurality emerging from real 
 usage patterns: sloppy people can use MathML vocabulary in sloppy HTML 
 syntax in pure HTML documents, gung ho people can use draconian XML 
 syntax in well-formed XML documents, the JSON people can make up a JSON 
 binding, etc, and the tools to translate in between them will crop up. 
 The idea that there should only be one notation for anything is, of 
 course, not Stalinist, but just not the way the world works: standards 
 always have to fit in with that.

 Indeed, I think it is mixing of notations higgedly piggedly (ie islands 
 of XML) not to mention willy nilly that is more dangerous and burdensome 
 on developers than keeping the notations clear and distinct. An XML 
 parser will not parse all HTML; an HTML parser will not parse all XML; 
 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.

 Cheers
 Rick


[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.