W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2003

Bookmark problem...

From: Yoshida, Ken <kryoshida@sweetheart.com>
Date: Wed, 9 Apr 2003 15:16:57 -0400
Message-ID: <CC7A48091A69D311BF760001FA7E61C20AC85164@exchange.sweetheart.com>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
I have a table that is being generated as such:
                     <fo:table-body>
                          <fo:table-row border-width="0.5pt"
break-after="page">
                               <fo:table-cell padding-top="1pt">
                                           <xsl:for-each select="Customer">
                                                <fo:block
font-family="Helvetica" font-size="9pt" id="{$bookmark}">
                                                            <xsl:value-of
select="CustomerNumber"/>
                                                 </fo:block>
                                           </xsl:for-each>
                               </fo:table-cell>
                                           
                               <fo:table-cell padding-top="1pt">
                                           <xsl:for-each select="Customer">
                                                <fo:block
font-family="Helvetica" font-size="9pt">
                                                            <xsl:value-of
select="CustomerName"/>
                                                   </fo:block>
                                                  </xsl:for-each>
                               </fo:table-cell>
                          </fo:table-row>
                     </fo:table-body>
 
There are multiple records per customer so I need to create one bookmark for
each customer: (This code is from Norm)
  <xsl:variable name="uniqCustomers"
 
select="$customers[count(.|key('customer',CustomerNumber)[1]) = 1]"/>
  <xsl:for-each select="$uniqCustomers">
    <xsl:variable name="bookmark" select="CustomerNumber[1]"/>
    <fox:outline internal-destination="{$bookmark}">
      <fox:label><xsl:value-of select="$bookmark"/></fox:label>
    </fox:outline>
  </xsl:for-each>
 
The bookmarks are created fine but they won't target the CustomerNumber.  I
tried giving the cell for CustomerNumber an "id={CustomerNUmber}" but, fop
tells me that the CustomerNumber already exists.
 
Any help is greatly appreciated.
 
Thanks
Ken
Received on Wednesday, 9 April 2003 15:22:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT