View Single Post
Old 02-21-2013, 01:52 AM   #19
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by carlosbcg View Post


Quote:
Originally Posted by dgatwood View Post
HTML5 is a specific version of HTML. Like all HTMLs, it is an SGML, but HTML5 files are not (necessarily) proper XML.
Hmm...but...but...don't EPUB3 internal files holding the actual content of an ebook as HTML5 files (albeit with an extension of HTML) have to be what is termed "serialized XHTML" (not altogether sure what that means but I think it means pretty much XHTML)?

In other words don't EPUB3 content internals HAVE to be the XHTML variant of the HTML5?
Yes, AFAIK. But not all HTML5 content is in an EPUB. You can use HTML5 on the web, you know.



Quote:
Originally Posted by carlosbcg View Post
Hmm...interesting. I take it then that XSLT is completely uneccessary to creation of an EPUB?
Yes. It does make a convenient way to transform DocBook (or other XML dialects) into (X)HTML, but it is certainly not the only way (or even necessarily the best way).


Quote:
Originally Posted by carlosbcg View Post
But just out of curiosity...how exactly is an XSLT file with XML commands in it get executed to do it's conversion work? Does a browser execute the XSLT commands or something?
You use an XSLT processor. That's a tool that takes an XSLT file and applies it to an XML source file.


Quote:
Originally Posted by carlosbcg View Post
What is a polyglot document? Do you mean a document which has both XML and HTML5?
A polyglot is a file that is simultaneously interpretable according to the rules of two different formats or languages. In this case, I mean a file that is HTML5, but is fully compliant with XML. In other words an XML serialization of HTML.


Quote:
Originally Posted by carlosbcg View Post
So are XHTML5 and HTML5 the same thing? I mean if XHTML5 is defined as part of the HTML5 standard I mean and not separately like in the past?
No, and yes. If you are talking about something that must be XML-compatible, then it is a good idea to call it XHTML5, because HTML5 is not necessarily valid XML.
dgatwood is offline   Reply With Quote