Re: Dynamically the behavior of a template

<fo:table-row height="{$Height_CellActivities}"
border="0.2pt" >

Colin

----- Original Message ----- 
From: "Jim Donnelly" <jdonnelly@saleslogix.com>
To: <www-xsl-fo@w3.org>
Sent: Thursday, September 11, 2003 1:00 AM
Subject: Dynamically the behavior of a template


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 Friday, 12 September 2003 03:33:48 UTC