Some XSLT hacks for xmlspec documents


I thought it might be time to share some XSLT hacks that I've been
using with xmlspec.


  Sort the blist alphabetically, by key.


  * Some additional style information, to make anchor names visible
    upon hover; stolen from Mark Nottingham's Web site.
  * Adding navigation links (inpsired by Norm Walsh's blog post
    about the XProc drafts; I didn't see him link to any code)
  * Mark broken specprod references (which end up as an <a
    href="#">...) in nasty red.
  * Turn headings into links to themselves, to make copy & paste of
    anchors easier.
  * Different mark-up and formatting for "<note>" elements.
  * <phrase role="sqbrackets"> in xmlspec now causes optically
    highlighted square brackets in the spec text; useful for
    contentious material

Hope these are useful.

Thomas Roessler, W3C  <>

Received on Wednesday, 24 October 2007 18:00:45 UTC