Can somebody point me to a good (and well explained) example of using XSL/FOP to auto-create a table of contents? I've spent the last couple hours looking for information on this but it's not making sense.
Here's a sample of my xml:
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<intellispec>
<pn>C0805C101J1GACTU</pn>
<aliases>
<alias>C0805C101J1GAC7800</alias>
</aliases>
<mfg>KEMET</mfg>
<svg-path>C:/svn/code/IntelliSpec/images/</svg-path>
<copyright-year>2006-2009</copyright-year>
. . .
</intellispec>
<intellispec>
<pn>T491B107K010AT</pn>
<mfg>KEMET</mfg>
<svg-path>C:/svn/code/IntelliSpec/images/</svg-path>
<copyright-year>2006-2009</copyright-year>
. . .
</intellispec>
. . .
I would like to generate a table of contents page using the text of the
catalog/intellispec/pn and mfg tags (the table of contents would render more
or less as follows:
C0805C101J1GACTU (KEMET) ..................... 1
T491B107K010AT (KEMET) ....................... 2
. . .
(Each item would also have an internal hyperlink to the page number in the
pdf where the associated datasheet is located)
I have attached the xsl file I'm working on; the table of contents is
intended to go in the first <fo: page-sequence> tag body.
Thanks in advance for the assistance,
-----------------------------
Brian Trezise
IntelliData, Inc.
Staff Software Engineer
[email protected]
t: 720.524.4864
m: 303.809.9782
intellispec-catalog.xsl
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
