Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 8th, 2006, 02:51 PM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML, XSL:FO- saving position()

I am writing business forms using XML and XSLT. The idea is to give the form a "green-bar" style.

I have a <xsl:for-each> within a <xsl:for-each> which is a <fo:table> within a <fo:table>

so snippet of the code:


(a bunch of table setup).....
<xsl:for-each select="dc:Detail_line">
<fo:table-row>
      <xsl:if test="position() mod 2 != 0">
         <xsl:attribute name="background-color">#DDDDDD</xsl:attribute>
        </xsl:if>
        <xsl:if test="position() mod 2 = 0">
         <xsl:attribute name="background-color">#FFFFFF</xsl:attribute>
        </xsl:if>
<fo:table-cell>
<fo:block>
....... (a bunch of table setup) ......
<xsl:for-each select "dc:Quote_Information>
  <fo:table-row>


is there a way at this point to remember what the background color of the original row was? It cannot be inherited due to some other stuff I have going on (dealing with borders of the cells - If I inherit the background color, I get a double line between the <fo:table-header> row and the first record in the <fo:table-body>.

Any help would be appreciated.

Thanks.

-mike





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL-FO NEO1976 XML 2 July 19th, 2006 10:10 AM
xsl:fo with Select Birger XSLT 4 July 18th, 2006 11:38 AM
Translating a XML with XSL and saving results DevOne XML 1 April 9th, 2005 07:32 AM
xml + xsl:fo --> PDF Kabe Classic ASP XML 0 August 26th, 2004 06:17 AM
hello, some problems with XSL-FO LuisMM XSLT 4 December 19th, 2003 02:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.