I am trying to get the <xsl:apply-templates
match="something"/> to work and it will not work.
What am I doing wrong? Here is a copy of my xsl that
I am working with along with a snip-it of the xml. I
am probably overlooking something very small but I
cannot find the problem. Please help!
<xsl:template name="summaryTable">
<fo:table>
<fo:table-column column-width="1in"/>
<fo:table-column column-width="1in"/>
<fo:table-column column-width="1in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell background-color="lightgrey">
<fo:block font-weight="bold" text-align="center"
font-size="8pt">
Payment Due
</fo:block>
</fo:table-cell>
<fo:table-cell background-color="lightgrey">>
<fo:block font-weight="bold" text-align="center"
font-size="8pt">
Invoice Date
</fo:block>
</fo:table-cell>
<fo:table-cell background-color="lightgrey">>
<fo:block font-weight="bold" text-align="center"
font-size="8pt">
Amount Due
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>
<xsl:apply-templates select="due_date"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:apply-templates
select="close_date"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:apply-templates
select="total_due"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>
<xsl:template match="total_due">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="due_date">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="close_date">
<xsl:value-of select="."/>
</xsl:template>
==========xml===========
<invoice>
<header>
<row>
<product_sale_id>155</product_sale_id>
<invoice_turn>31</invoice_turn>
<account_no>PSC-1000-17147</account_no>
<invoice_no>1000-17147.31</invoice_no>
<zip_code>67337</zip_code>
<contact>JAY PIERSON </contact>
<addr1>1200 STARK AV</addr1>
<city>COFFEYVILLE</city>
<state>KS</state>
<close_date>20050316</close_date>
<due_date>20050403</due_date>
<balance_forward>59.45</balance_forward>
<total_due>57.64</total_due>
<reserved>57.64</reserved>
<over_30>0</over_30>
<over_60>0</over_60>
<over_90>0</over_90>
<switch>N</switch>
<total_tax_and_fee>12.74</total_tax_and_fee>
</row>
</header>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--