- From: Yoshida, Ken <kryoshida@sweetheart.com>
- Date: Wed, 9 Apr 2003 15:16:57 -0400
- To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
- Message-ID: <CC7A48091A69D311BF760001FA7E61C20AC85164@exchange.sweetheart.com>
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 UTC