XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] html 5, svg and internal subset?

Dave Pawson wrote:
> I'm writing html5, with 3 (fairly large) included SVG files.
> running FF 3.6
> 
> I tried
> <!DOCTYPE html [
> <!ENTITY ps SYSTEM "ps.svg" >
> <!ENTITY n SYSTEM "n.svg" >
> <!ENTITY p1 SYSTEM "p1.svg" > ]>
> <html >
> and when I call them up they are displayed exactly as written?
> &amp; n ; 
> 
> about:config has html5.enable set to true?
> 
> Can I use xInclude? any other include?
> Am I dealing with SGML.. XML.. neither?

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.



-- 

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


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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS