W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2007

[whatwg] XSLT: HTML 5 --> HTML

From: Karl Dubost <karl@w3.org>
Date: Tue, 6 Feb 2007 08:55:56 +0100
Message-ID: <E3318DB7-E3B5-417D-9CB0-CC13181535AE@w3.org>

Le 5 f?vr. 2007 ? 22:40, Elliotte Harold a ?crit :
> Has anyone written an XSLT stylesheet that downgrades HTML 5 to  
> classic HTML+ appropriate <div class=''> and <span class=''>  
> elements? With the right CSS, this might make a lot of it  
> deployable today. If not, I may take a whack at it.

unlikely. "div" and "span" elements didn't exist in HTML+.
It might be possible to write an XSLT to convert HTML 5 to HTML 4.01  
and/or XHTML 1.0 but loosing some elements.
That would be cool indeed if you could write it. Tag soup parser to  
normalize to XHTML 1.0 or XHTML 1.1 is indeed a great idea. I don't  
think XSLT is the best tool to do that, but I would be happy to hear  
your thoughts about it.



-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***
Received on Monday, 5 February 2007 23:55:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:32 UTC