[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl templates match does not work

Subject: xsl templates match does not work
From: josh higgins <doopsterus@xxxxxxxxx>
Date: Wed, 6 Apr 2005 09:04:21 -0700 (PDT)
xsl templates
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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.