W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2003

Dynamically the behavior of a template

From: Jim Donnelly <jdonnelly@saleslogix.com>
Date: Wed, 10 Sep 2003 16:00:06 -0700
Message-ID: <D87AAFD855AD0A4DA3EF32A061836175016956EC@mail.interactcommerce.com>
To: <www-xsl-fo@w3.org>
Hi;

I've created a template that I include and the call as follows:

	
<fo:block>
	
<xsl:call-template name="Show_CellActivities">
	
<xsl:with-param name="Height_CellActivities" select='"7.0cm"'/>
	
</xsl:call-template>
					</fo:block>


The called template takes 1 paramater. The intent of the parameter is to
change the height of a cell.  The parameter is being passed and I can see the
value in xmlspy, but the value isn't be referenced. Instead the param name
is. 

<xsl:template name="Show_CellActivities">
	<xsl:param name="Height_CellActivities" />
		<fo:table >
			<fo:table-column column-width="9.0cm"/>
			<fo:table-body font-size="6pt">
				<fo:table-row height="0.4cm" border="0.2pt"
background-color="#C0C0C0" white-space-collapse="false">
					<fo:table-cell>
						<fo:block  font="Helvetica
8pt">
							<xsl:value-of
select="@DayOfWeek"/>
							<xsl:text>,
</xsl:text>
							<xsl:value-of
select="@Month"/>
							<xsl:text>
</xsl:text>
							<xsl:value-of
select="@Day"/>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row height="Height_CellActivities"
border="0.2pt" >
					<fo:table-cell >
	     <fo:block> 

Is there a way to do this. I've tried a number of approaches.

Thanks Jim   


This e-mail message and all attachments transmitted with it may be confidential 
and are intended solely for the addressee(s). If you are not the intended recipient
or the person responsible for delivering it to the intended recipient, you are
hereby notified that any reading, dissemination, distribution, copying, or other 
use of this message or its attachment(s) is strictly prohibited.  If you receive 
this email in error, please immediately notify the sender of the message or 
Best Software, Inc. by e-mailing postmaster@bestsoftware.com and destroy all copies 
of this message.  Best Software, for the protection of our internal systems and 
those of our customers, does block most email attachments.



This e-mail message and all attachments transmitted with it may be confidential 
and are intended solely for the addressee(s). If you are not the intended recipient
or the person responsible for delivering it to the intended recipient, you are
hereby notified that any reading, dissemination, distribution, copying, or other 
use of this message or its attachment(s) is strictly prohibited.  If you receive 
this email in error, please immediately notify the sender of the message or 
Best Software, Inc. by e-mailing postmaster@bestsoftware.com and destroy all copies 
of this message.  Best Software, for the protection of our internal systems and 
those of our customers, does block most email attachments.
Received on Wednesday, 10 September 2003 19:00:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT