[xep-support] Problem with rx:bookmark

Kees de Grauw k.degrauw at axis.nl
Fri May 5 07:49:00 PDT 2006


Your <fo:block> parts of the XSL will notplace the id's in the fo-file, but
everywhere id="@id" instead of a different id for each checque (id="a",

   <fo:block id="@cle" text-align="left" space-after.minimum="3pt">
   <fo:block id="{@cle}" text-align="left" space-after.minimum="3pt">


-----Original Message-----
From: owner-xep-support at renderx.com
[mailto:owner-xep-support at renderx.com]On Behalf Of Sébastien CLERMONT
Sent: vrijdag 5 mei 2006 16:17
To: xep-support at renderx.com
Subject: [xep-support] Problem with rx:bookmark

Hi everyone.  My XSL file is almost done.  All that remain is bookmarks.  I
have an XML file and need to produce a PDF with Images and bookmarks to
these images.  The problem is that the content of the XML file is dynamic.
It can containt a reference from 1 to a 1000 images.  So I can't have
<fo:block> with static ids and use these ids as internal-destination.

In my XSL file, I have my rx:outline section in which I loop.  The bookmarks
appear in the PDF file but they all point to the same destination which is
the last destination I defined for each level of bookmark.

Here is a part of the XML data:
- - - - - - - - - -
   <type_compte type="EOP">

      <cheque type="dcn" recto="Images/recto1.jpg" cle="a"
              date="12 MAI 2005"
              noref="12345678910" />

      <cheque type="rto" date="15 MAI 2005" cle="b"
- - - - - - - - - -

Here is the <rx:outline> part of the XSL:
- - - - - - - - - -
         <xsl:for-each select="//type_compte">
            <rx:bookmark internal-destination="@type">
            <xsl:for-each select="cheque">
               <rx:bookmark internal-destination="@cle">
- - - - - - - - - -

Here are the <fo:block> parts of the XSL:
- - - - - - - - - -
<xsl:template match="type_compte">
   <fo:block id="@type" text-align="left" font-weight="bold"
font-size="11pt" space-before.minimum="12pt">
      <xsl:value-of select="@type"/>
      <xsl:apply-templates />
- - - - - - - - - -
<xsl:template match="cheque">
   <!-- Images recto et verso -->
   <fo:block id="@cle" text-align="left" space-after.minimum="3pt">
         <xsl:when test="@type = 'dcn'">
- - - - - - - - - -

In attachment, you can see a screenshot of the result.  If I click on "EOP"
or "MC1", it brings me to "MC1".  If I click on [a, b, c, d, e, f, g, h, i],
it brings me to i.

What do I do wrong?  Is that possible to have dynamic ids in fo:blocks and
use them in the rx:bookmark tag?

Your help would really be appreciated.  Thank you.

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html

More information about the Xep-support mailing list