Reverse-generating from a TOC (Table of Contents)?
Posted: Tue Jul 21, 2009 8:48 pm
There are plenty of existing tools to scan an XML document and generate a Table of Contents according to the document's structure. (Specifically, I'm talking about DocBook 5—but it could be something else too.)
I'm wondering if anybody knows of an XSL stylesheet that will do the reverse: use a TOC to generate a document skeleton.
I'm wondering if anybody knows of an XSL stylesheet that will do the reverse: use a TOC to generate a document skeleton.
- Does something like this already exist?
- If not, does anyone know how to do this? (DocBook is desired most of all, but if this can be done in an abstract way that can be reused for any XML dialect, even better.)