Re: XSLT and HTML5 (was: Re: Prevalence of ill-formed XHTML)

On Sep 7, 2007, at 06:44, Karl Dubost wrote:

> Henri Sivonen (6 sept. 2007 - 21:36) :
>> Doing it this way addresses pretty much all the issues raised  
>> about using the text/html serialization of HTML5 together with  
>> XSLT. With the current crop of XSLT processors this entails taking  
>> out SAX as opposed to bytes from the XSLT processor and plugging  
>> in an HTML5 serializer. I suggest considering the "html" output  
>> method of XSLT obsolete as of HTML5.
>
> The HTML output method would not be obsolete, except if we were  
> rescinding HTML 4.01.

As I see it, one is better off even with HTML 4.01 by not using the  
built-in "html" output method of XSLT but instead taking out SAX  
events or a DOM tree from the off-the-shelf transformer and feeding  
the SAX events or the DOM tree to an HTML 4.01 serializer that uses  
namespaced elements as opposed to namespaced elements. This way the  
disruption to transformation sheets is minimized when switching  
between text/html and application/xhtml+xml targets.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Friday, 7 September 2007 08:41:41 UTC