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.

the toc entries:
<fo:table-cell>
        <fo:block text-align="begin">
                        <fo:page-number-citation font-style="normal" 
ref-id="{generate-id()}" />
        </fo:block>
</fo:table-cell>

the pages:
<xsl:template match="page">
        <fo:block break-before='page' id="{generate-id()}">
                <xsl:apply-templates />
        </fo:block>
</xsl:template>

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. 

For external links I used this:
<xsl:template match="a">
        <fo:basic-link external-destination="[EMAIL PROTECTED]"
                text-decoration="underline" color="blue">
                <xsl:value-of select="." />
        </fo:basic-link>
</xsl:template>

Internal links, should link to a page, template see above, this template uses 
a generated ID.

<xsl:template match="A">
        <fo:basic-link internal-destination="????what to specify here????"
                text-decoration="underline" color="blue">
                <xsl:value-of select="." />
        </fo:basic-link>
</xsl:template>

Shall I avoid generated IDs? I need both a table of content, and internal 
links to pages.

Thanx for any hints.

Steffen

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

Reply via email to