On Wed, Sep 8, 2010 at 9:49 PM, Raj <www.raj....
> I wish to experiment with the HTML5 microdata. Genshi is not allowing
> microdata attributes since it is not well formed when using the
> default document type.
> Does anyone have a solution to use html5 in TG2.1
I have not worked with HTML 5 yet, but your problem could be that you're
trying to use HTML in your template, but you should be using XHTML. Genshi
requires XML, and HTML 5 is not based upon XML. If you want to use HTML 5
features, try using XHTML 5 ( http://www.w3.org/TR/html5/the-xhtml-syntax.html
) in your template.
According to the Genshi tutorial (
http://genshi.edgewall.org/wiki/GenshiTutorial ), just because you're using
XHTML in your template does not mean that your template has to generate
XHTML. I would assume the same applies for 5.
You could also use Mako, which is fully supported as an alternate template
engine and is not XML based at all. It's faster too.