And here's an example, for other dummies (like me) who like to copy things. The
result is a Bookmark-Tree in the pdf-document like this

Data
  Element_nr1
  Element_nr2
  Element_nr3
  etc.

******************************************************

(...)
</fo:layout-master-set>

<!-- bookmark section -->
<fo:bookmark-tree>
   <fo:bookmark internal-destination="Data">
       <fo:bookmark-title>Data</fo:bookmark-title>
       <xsl:for-each select="//Element">
            <fo:bookmark internal-destination="{generate-id(.)}">
                <fo:bookmark-title>
                        <xsl:value-of select="./@element_name"/>
                </fo:bookmark-title>
            </fo:bookmark>
       </xsl:for-each>
       </fo:bookmark>
</fo:bookmark-tree>

<fo:page-sequence master-reference="page-content">
(...)

<xsl:template match="Data">
        <fo:block id="Data">
                <xsl:apply-templates/>
        </fo:block>
</xsl:template>

<xsl:template match="Element">
        <fo:block id="{generate-id(.)}"
                <xsl:apply-templates/>
        </fo:block>
</xsl:template>
(...)
**********************************************************





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

Reply via email to