...sorry, fingers ahead of my head...
it's 0.92beta and example is attached:

Example contains single page with two block with 'id' attribute.
When the bookmark id reference doesn't match any block with such id, no bookmarks are produced at all. When you change the id of second block or bookmark ref id to match each other, everything works ok.
Cheers
Martin
===
sample files:
bookmarks_bug_wrong.fo - generates pdf with no bookmarks (wrong bookmark ref id)
bookmarks_bug_wrong.pdf - corresponding pdf
bookmarks_bug_correct.pdf - pdf with matching bookmark ref ids and block ids
===


Jeremias Maerki wrote:
FOP version? Example? Thanks.

On 06.06.2006 14:09:44 Martin Zak wrote:
Hi all,
I'm generating bookmarks bind to different elements in text while using the xsl "generate-id()" function to get unique id. When it comes to the situation one bookmark can't resolve the reference id (as such element with corresponding id
doesn't exists - may occur in very complex document),
FOP displays the warning:
WARNING: Bookmarks: Unresolved id reference "N10001" found.

and _no_ bookmarks are produced to output PDF.
IMHO when the doc contains hundreds of bookmarks and one is not valid,
it may be skipped (or left with no reference?), but other bookmarks should be produced to output...

I'm not sure whether it's just a sort of bug or desired behavior.
If you know about some workaround, it would be welcomed!



Jeremias Maerki


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

--
Martin Zak
project manager, developer

Ginger Alliance, s.r.o.
Otakarova 15
140 00 Prague
Czech Republic

Office: tel +420  241 741 406
     : fax +420  241 740 398
YM ID : zakmart
Email : [EMAIL PROTECTED]

http://www.gingerall.com
http://www.ga-mme.com

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
  <fo:layout-master-set>
    <fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in" margin-top="1in" page-width="8.5in" page-height="11in" master-name="single-page">
      <fo:region-body margin-right="0in" margin-left="0in" margin-bottom="0in" margin-top="0in"/>
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="single-sequence">
      <fo:single-page-master-reference master-reference="single-page"/>
    </fo:page-sequence-master>
  </fo:layout-master-set>

  <fo:bookmark-tree>
    <fo:bookmark internal-destination="dest_001">
      <fo:bookmark-title>dest_001 block</fo:bookmark-title>
    </fo:bookmark>
    <fo:bookmark internal-destination="dest_002">
      <fo:bookmark-title>dest_002 block</fo:bookmark-title>
    </fo:bookmark>
  </fo:bookmark-tree>

  <fo:page-sequence master-reference="single-sequence">
    <fo:flow flow-name="xsl-region-body">
      <fo:block id="dest_001">Block with id='dest_001'</fo:block>
      <fo:block id="dest_003">Block with id='dest_003'</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Attachment: bookmarks_bug_correct.pdf
Description: Adobe PDF document

Attachment: bookmarks_bug_wrong.pdf
Description: Adobe PDF document

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

Reply via email to