caraya / xml-workflow

XML + XSLT = HTML + CSS = PDF
MIT License
1 stars 0 forks source link

Build table of contents in PDF output #11

Closed caraya closed 9 years ago

caraya commented 9 years ago

Figuring out how to build the table of contents for PDF output

caraya commented 9 years ago

Table of content is now working.

Issue was that we were creating IDs in the wrong element during XSLT transformation. Title elements are also transformed to h1. I was creating the IDs in h1, not title elements :-)

Remaining issue is to place the table of content as the first child after the title page. RIght now it's either at the top of the document or at the end.

caraya commented 9 years ago

The table works and links to the right content but now displays either as the first page of the document or as the last, not in the place where apply template with toc mode

caraya commented 9 years ago

Added an empty toc element to the Document Model to indicate where the TOC is to be generated. It seems to be working