You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Martin Zak <ma...@gingerall.cz> on 2006/06/06 14:09:44 UTC
Unresolved id reference on bookmarks
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unresolved id reference on bookmarks
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unresolved id reference on bookmarks
Posted by Martin Zak <ma...@gingerall.com>.
...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: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
--
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 : martin.zak@gingerall.com
http://www.gingerall.com
http://www.ga-mme.com
Re: Unresolved id reference on bookmarks
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org