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

Re: html 5, svg and internal subset?

  • From: Martin Honnen <Martin.Honnen@gmx.de>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Thu, 09 Sep 2010 20:17:29 +0200

Re:  html 5
Dave Pawson wrote:
> On Thu, 09 Sep 2010 17:28:15 +0200
> Martin Honnen <Martin.Honnen@gmx.de> wrote:
> 
>> It depends on how you serve your document, you can serve as
>> text/html, then it is neither SGML nor XML rules but rather the rules
>> in http://www.w3.org/TR/html5/parsing.html#parsing that drive the
>> parsing and the rules in
>> http://www.w3.org/TR/html5/syntax.html#the-doctype that define the
>> syntax for DOCTYPE. As far as I understand them, they don't allow an
>> internal subset at all. If you serve with an XML MIME type like
>> application/xml then XML rules apply but I don't think Mozilla's XML
>> parser supports external entities.
> 
> 
> Any idea if it should? Perhaps not if it ignores a DTD.
> I'm serving it by opening a file on my disk with FF.

If you load a file from the file system then the file suffix is used I 
think to determine the MIME type and that way the parser that is used. A 
".html" file is parsed as text/html (meaning so far with the browser's 
tag soup parser, with Firefox 4 with the new html5 parser), a ".xhtml" 
or ".xml" file is parsed as XML with the XML parser.


> So html5 is neither fish nor foul? SGML nor XML?
> As MK asks, why? Simply because its the first chance
> I've seen to include mathml + SVG into a common delivery format.

I am sure with Firefox or Mozilla you can use an .xml file with elements 
from XHTML, SVG and MathML just fine as long as you use namespaces. And 
Opera I think has no MathML support but can certainly render mixed 
namespace XHTML and SVG documents.



-- 

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/


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