Felix Saski wrote:
> 2009/7/8 <>
>> XHTML will always be necessary, because XSLTs that generate HTML need an
>> HTML formulated as XML.
>
> Not necessarily, see the FAQ from Henry
> http://hsivonen.iki.fi/xhtml2-html5-q-and-a/
> esp. :
> But XSLT and XPath dont work with HTML! Incorrect. ...
Wrong way round. You are talking about the input file, I am talking about
the XSLT template. I said "generate html" not "accept html".
As mentioned above,
> HTML5 parsers expose an infoset equivalent to an XML parser parsing
> XHTML5.
> The Validator.nu HTML Parser <http://about.validator.nu/htmlparser/> comes
> with a sample application for using the JDK XSLT engine with HTML5
> inputs.Of
> course this still does not solve the namespace problem, but this
> processing
> chain
> 1) HTML5 input
> 2) DOM as input to XSLT processing
> 3) HTML or XHTML output
> is feasible if there is "only" HTML.
These use XML (XSLT) templates.
Actually, I don't think I have ever come across a real case of someone
using XSLT with an XHTML input. I suppose it is possible, but generating
HTML is much more common.
Cheers
Rick Jelliffe