Stimulated by Brett Zamir's postings, I set myself the challenge this week of adding
an HTML5+microdata output channel to my TEI stylesheets. I thought some
folks might like to wade in even at a very preliminary stage. If you want
to come back when its all finished, you can stop reading now :-}
It would be very interesting to hear of other peoples work in this
There are two parts to the problem
1. following the HTML5 rules instead of XHTML
2. adding the microdata "goodness"
Part 1 is turned on in my family by setting
a parameter $outputTarget to 'html5' (see profiles/default/htm5/to.xsl), and part 2 is implemented
by including some extra stylesheets in an html5 directory. At various points
in the main stylesheets I do a <xsl:call-template name="microdata"/> which
is where one does the additions.
my test file is http://tei.svn.sourceforge.net/viewvc/tei/trunk/Stylesheets/Test2/test5.xml?revision=8984&view=markup,
transformed version at http://tei.oucs.ox.ac.uk/test5.html
This is all visible at http://tei.svn.sourceforge.net/viewvc/tei/trunk/Stylesheets/
and points south for those interested.
My next priority is seeing if I can implement epub3
PS For the record, I personally think both html5 and microdata are
inventions of the devil, maliciously throwing away lots of
good things from the last decade, but hey ho, that's what
we have to live with.
Head of Information and Support Group, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
Sólo le pido a Dios
que el futuro no me sea indiferente