[Home] [By Thread] [By Date] [Recent Entries]

  • From: rjelliffe@a...
  • To: "XML Developers List" <xml-dev@l...>
  • Date: Wed, 8 Jul 2009 18:21:39 +1000 (EST)

Felix Saski wrote:

> 2009/7/8 <rjelliffe@a...>

>> 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 don’t 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


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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member