- From: Girish Kanmas <girishrk@india.ti.com>
- Date: Tue, 28 Oct 2003 15:27:54 +0530
- To: <www-xsl-fo@w3.org>
Hi Dave,
I got the required result. Anyways, thank you for your efforts. Below is the
solution-code section.
------------XML
FILE------------------------------------------------------------------------
----
<tableregisters byteaddress="0180 0000h" name="EMIF global control" />
<tableregisters byteaddress="0180 0004h" name="EMIF CE1 space control" />
<tableregisters byteaddress="0180 0008h" name="EMIF CE0 space control" />
<tableregisters byteaddress="0180 000Ch" name="EMIF reserved" />
----------------------------------------------------------------------------
-------------------
------------XSL
FILE------------------------------------------------------------------------
----
<xsl:template match="tableregisters">
<fo:table-row>
<xsl:if test="position() mod 2 = 0">
<xsl:attribute name="background-color">gainsboro</xsl:attribute>
</xsl:if>
<fo:table-cell background-color="white"/>
<fo:table-cell border-color="red" border-top-style="solid"
border-bottom-style="solid">
<fo:block text-align="start" font-size="8pt" line-height="12pt"
color="green">
<xsl:value-of select="@byteaddress"/>
</fo:block>
</fo:table-cell>
<fo:table-cell border-color="red" border-top-style="solid"
border-bottom-style="solid">
<fo:block text-align="start" font-size="8pt" line-height="12pt"
color="green">
<xsl:value-of select="@name"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
----------------------------------------------------------------------------
-------------------
Have a nice time.
With best regards,
Girish Kanmas
-----Original Message-----
From: Dave Pawson [mailto:dpawson@nildram.co.uk]
Sent: Tuesday, October 28, 2003 3:19 PM
To: Girish Kanmas
Subject: RE: Formatting ODD
At 14:02 28/10/2003 +0530, you wrote:
>No Friend!
>
>I am trying to format the ODD & EVEN Rows of table in XSL-FO.
>I want to convert this documnet to .pdf format.
You 'll only do it in the xslt stage.
If you can't swap out html, and insert fo,
then ....
see http://www.dpawson.co.uk/xsl/sect2/N7450.html#d8136e82
Received on Tuesday, 28 October 2003 04:58:31 UTC