Unresolved id reference on bookmarks

2006-06-06 Thread Martin Zak

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!

Cheers
Martin


--
Martin Zak
Ginger Alliance, s.r.o.
www.gingerall.cz


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



Re: Unresolved id reference on bookmarks

2006-06-07 Thread Jeremias Maerki
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]



Re: Unresolved id reference on bookmarks

2006-06-07 Thread Martin Zak

...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


http://www.w3.org/1999/XSL/Format";>
  

  


  

  

  

  dest_001 block


  dest_002 block

  

  

  Block with id='dest_001'
  Block with id='dest_003'

  


bookmarks_bug_correct.pdf
Description: Adobe PDF document


bookmarks_bug_wrong.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Unresolved id reference on bookmarks

2006-06-07 Thread Jeremias Maerki
Thanks, Martin. I've just committed a fix to FOP Trunk for this. It may
not be the best way to fix it, but at least it works now.

On 07.06.2006 10:51:49 Martin Zak wrote:
> ...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]