On Jun 19, 2007, at 10:19, Baeckham wrote:

Hi,

I trying to create a PDF using FOP. This PDF is built of several HTML pages. At the beginning I created a table of content. All entries in this toc are linked to their targets. This works perfectly. I used the generate- id()
function for creating the ids.
<snip />

Now my problem is, that a page may contain a link to another page. Now for this kind of linking I think I can not use these generated ids, isn't it.

I don't immediately see a problem in that. The thing to remember is that the generate-id() function in XSLT always returns the same value for the same node. No matter where in the stylesheet you use it, if you make sure you pass it the right node as an argument, it will do exactly what you need, I think.

In other words, it would have to become something like:

<basic-link internal-destination="{generate-id (xpath_to_page_node)}" ...>

where the page-node refers to the node in your source document that the generate-id() function is called for in the matching template for "page".

As for getting the reference to that particular node, that of course may still require some creativity...


HTH!

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to