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

Re: Dynamically the behavior of a template

From: Colin Savage <sav912@hotmail.com>
Date: Fri, 12 Sep 2003 09:32:38 +0200
To: <www-xsl-fo@w3.org>
Message-ID: <BAY7-DAV4Uj6hdz2Obo00047429@hotmail.com>

<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 GMT

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