SIMP Doc is a DTD and XSLT stylesheet for using XML to produce XHTML documents with automatically numbered sections and references, and an automatically generated table of contents.