https://issues.apache.org/bugzilla/show_bug.cgi?id=44651

           Summary: fo:bookmark will not allow a bookmark with same
                    internal-destination
           Product: XMLGraphicsCommons
           Version: 1.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: PostScript
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Hello,

FOP Processor: 0.94 - fop.jar
Windows XP

If 2 or more bookmarks have the same internal-destination, the FOP will ignore
the previous bookmark and only display the last one. For Example:

<fo:bookmark-tree>
        <fo:bookmark internal-destination="toc-id">
                <fo:bookmark-title>COVER PAGE</fo:bookmark-title>
        </fo:bookmark>
        <fo:bookmark internal-destination="A2345">
                <fo:bookmark-title>WARNING PAGE</fo:bookmark-title>
        </fo:bookmark>
        <fo:bookmark internal-destination="toc-id">
                <fo:bookmark-title>TABLE OF CONTENTS</fo:bookmark-title>
        </fo:bookmark>
</fo:bookmark-tree>

FOP will send a warning:

Mar 21, 2008 7:50:37 AM org.apache.fop.render.pdf.PDFRenderer
renderBookmarkItem
WARNING: Bookmark with IDRef "toc-id" has a null PageViewport.

The PDF output will be:

WARNING PAGE
TABLE OF CONTENTS

Desires output:

COVER PAGE
WARNING PAGE
TABLE OF CONTENTS

Both "COVER PAGE" and "TABLE OF CONTENTS" should point to the same
internal-destination ("toc-id")

Its unclear to me if this is actually a bug. After reviewing the XSL-1.1 specs
I found for the fo:bookmark:

"No area may have more than one normal child area returned by the same
fo:bookmark formatting object."

Thank you,

Philip Vallone


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to