Another snapshot of the continuing improvements to the XSLT 2.0 stylesheets for DocBook.
Yesterday, I quietly published the 2.0.3 release of the DocBook XSLT 2.0 stylesheets.
The big change in this release is the move towards HTML5. The
stylesheets now produce
<article> elements for major units,
<section> elements for sections,
etc. In order to retain compatibility with older browsers, I've
Modernizr for backwards
I've updated the stylesheets used for this weblog to the latest release and flushed all the cached HTML, so those changes appear here now as well. If you see any weirdness, please report it.
Other changes worth noting: table columns now have a class attribute for
better CSS access and tables of contents are always (and only) produced with
<ul>’s. The alternative presentation with
<dl> produced invalid
markup because there were never any
The other changes are summarized in the release notes:
Converted a number of div elements into more semantic HTML5 elements (
default.table.column.widthsparameter to allow a user to suppress default column widths when none are specified in the DocBook (CALS) table. In an effort to make it easier to control table style with CSS, added a “
tcol” class to each table column.
Added support for plugins (and other mechanisms) to load localization data in MarkLogic server.
Fiddled with nesting of divs in chunks to better support CSS styling of the footer.
Greatly improved chunking performance.
Fixed bug where sections would sometimes be labelled even if they didn't appear in
i18ndata.xslfiles; dynamically load individual locales when needed.
about:legacy-compatdoctype as it borks XML parsers.
Rearranged the way chunks are handled so that the whole document is available for cross references even when only the selected chunk (
rootid) is processed
Changed condition for title foil slides to accomodate new content model in slides:
<ul>for tables of contents,
<dl>s without any
<dd>are not valid in HTML5
Treat HTML table caption as title for the purposes of cross references.
Share and enjoy!