W
wardellcastles
I need to transform from an xml specification to a document with a
"book-style" table of contents; one with page numbers, not html
hyperlinks (The output of the XSLT is NOT html).
For example, here's an example of the desired output.
Title Page
.......
End of Page 1
Table Of Contents
I. Chapter 1...... Page 3
II. Chapter 2..... Page 5
III. Chapter 3.... Page 10
End of Page 2
Chapter 1
...2 pages..
Chapter 2
... 5 pages..
Chapter 3
...1 to many pages ..
I think I might be able to calculate the page numbers for the different
chapters using <msmxl:script language ...>
My challenge is that I want to calculate the pages so that I can print
the Table of Contents BEFORE I actually output Chapter 1, 2, 3.
One way I thought I could do this is via a 2 step transformation. The
first would have the output file with the TOC at the end after the
chapter page numbers are calculated, then transform again to put the
TOC at the desired location within the final document. However I
really want to do it in one transformation.
Does anyone have any suggestions?
"book-style" table of contents; one with page numbers, not html
hyperlinks (The output of the XSLT is NOT html).
For example, here's an example of the desired output.
Title Page
.......
End of Page 1
Table Of Contents
I. Chapter 1...... Page 3
II. Chapter 2..... Page 5
III. Chapter 3.... Page 10
End of Page 2
Chapter 1
...2 pages..
Chapter 2
... 5 pages..
Chapter 3
...1 to many pages ..
I think I might be able to calculate the page numbers for the different
chapters using <msmxl:script language ...>
My challenge is that I want to calculate the pages so that I can print
the Table of Contents BEFORE I actually output Chapter 1, 2, 3.
One way I thought I could do this is via a 2 step transformation. The
first would have the output file with the TOC at the end after the
chapter page numbers are calculated, then transform again to put the
TOC at the desired location within the final document. However I
really want to do it in one transformation.
Does anyone have any suggestions?