[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Bookmarks in xsl


Subject: [xsl] Bookmarks in xsl
From: a kusa <akusa8@xxxxxxxxx>
Date: Tue, 4 Sep 2012 19:37:12 -0500

Hello

I have an XSLFO question that I am hoping can be answered here.

I have an xml file with this structure:

<tasks>

<task chap="8" key"a123" seq="1" pg = "1">
<!-- some more content here-->
</task>

<task chap="8" key"y837458" seq="2" pg = "2">
<!-- some more content here-->
</task>
<task chap="9" key"3jkhkj" seq="1" pg = "1">
<!-- some more content here-->
</task>
<task chap="9" key"t8798" seq="2" pg = "2">
<!-- some more content here-->
</task>
</tasks>

The element task can repeat any number of times. Every task has the
four attributes chap, key, seq and pg.

My requirement is to create a PDF using XSLFO and bookmarks with it.
The PDF bookmarks must be such that for each task[1] for each chap,
there will be a bookmark. Each task[2] or [3].. for each chap (in our
example pg 2, pg 3) will be a child bookmark under the first bookmark.

So, in the flow content, task[1] for chap 8 seq 1, pg 1 must display
content and must be linkable to the first PDF bookmark.
task[2] for chap 8, seq 2, pg 2 must display content and must be
linkable to the first child PDF bookmark of the first bookmark.
And so on....

Any suggestions on how to approach this? I am using apache FOP as the
processor.

Thanks in advance for your help.


Current Thread
Keywords
xml