Hello List

I'm just experimenting with fop-0.90alpha1 and the new Bookmark functionality

FOP render these Code without errors :

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <xsl:output indent="yes"/>
        <xsl:template match="/">
                <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
                        <!--<xsl:call-template name="Index"/>-->
                        <!-- Beschreibt, wie eine Seite auszusehen hat -->
                        <fo:layout-master-set>
                                <fo:simple-page-master master-name="mainLayout" page-width="297mm" page-height="210mm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm">
                                        <fo:region-body margin-top="0.5cm" margin-bottom="0.5cm"/>
                                        <fo:region-before extent="0.5cm"/>
                                        <fo:region-after extent="0.5cm"/>
                                </fo:simple-page-master>
                                <!-- ## -->
                                <fo:page-sequence-master master-name="contents">
                                        <fo:repeatable-page-master-reference master-reference="mainLayout"/>
                                </fo:page-sequence-master>
                        </fo:layout-master-set>
                        <fo:bookmark-tree>
                                <fo:bookmark internal-destination="headDest3">
                                        <fo:bookmark-title>Bookmarks Example</fo:bookmark-title>
                                        <fo:bookmark internal-destination="headDest3">
                                                <fo:bookmark-title>Hello World</fo:bookmark-title>
                                        </fo:bookmark>
                                        <fo:bookmark internal-destination="chapter2">
                                                <fo:bookmark-title>Paragraphs</fo:bookmark-title>
                                        </fo:bookmark>
                                </fo:bookmark>
                        </fo:bookmark-tree>
                        <!--  Inhalt von mainLayout -->
                        <fo:page-sequence master-reference="mainLayout" initial-page-number="1">
                                <!-- Kopfzeile -->
                                <fo:static-content flow-name="xsl-region-before">
                                        <fo:block font-size="22" text-align="center" background-color="grey">KAMPF - Fehlteilliste V2</fo:block>
                                </fo:static-content>
                                <!--  Hauptbereich -->
                                <fo:flow flow-name="xsl-region-body">
                                        <xsl:apply-templates select="//STUECKLISTE"/>
                                        <fo:block id="last-page"/>
                                </fo:flow>
                        </fo:page-sequence>
                </fo:root>
        </xsl:template>

...

But in the resulting PDF are no Bookmarks.

Can somebody give me a example or tell whats wrong.


Thanks : Joern Karthaus


Reply via email to