Archive - Jun 10, 2009
pondj
DITA-OT1.5 M15 (Feature Request ID: 2698921)
Blog entry: Submitted by pondj on Wed, 2009-06-10 17:12.
Thanks to Robert Anderson (Feature Request ID: 2698921) you can now add attributes to the body tag in HTML output.
I wanted to use the http://code.google.com/p/google-code-prettify/ code highlighter and was able to get the script calls in using args.hdf/hdr, and use outputclass=prettyprint into the codeblock tag. The last thing was to modify the body tag to run the script when the page loaded. I modified the XSL to make it conditional, so it didn't modify the tag on pages that didn't actually need the script: