[no subject]

From: "Tim Bachta" <tbachta@xxxxxxxxxx>
Date: Mon, 16 Jun 2003 15:07:44 -0500
I am trying to pass a xsl:param into an template how would I get the
parameter value out to use.  I have attached my xsl for reference.

 

<xsl:template match="parameters">

       <div id="panel_sw{normalize-space(report-name)}" class="dlgPanel"
>

             <div class="panelName"><xsl:value-of
select="normalize-space(report-name)"/></div>

             <table cellspacing="4" width="100%">

                    <xsl:apply-templates><xsl:with-param
name="report_name"
select="normalize-space(report-name)"></xsl:with-param></xsl:apply-templ
ates>   <----------Setting the parameter with the variable report-name

 

                    <tr align="center">

                           <td colspan="4">

                                 <div class="titleSmall"
nowrap="nowrap">Select output type:</div>

                           </td>

                    </tr>

                    <tr align="center">

                           <td align="right" colspan="2">

                                 <div class="titleSmall"
nowrap="nowrap"><input type="radio"
name="RadioGroup{normalize-space(report-name)}"
value="excel"/>Excel</div>

                           </td>

                           

                           <td align="left" colspan="2">

                                 <div class="titleSmall"
nowrap="nowrap"><input type="radio"
name="RadioGroup{normalize-space(report-name)}" value="pdf"
checked="checked"/>PDF</div>

                           </td>

                    

                    </tr>      

                    

             </table>       

       </div>

</xsl:template>

 

 

<xsl:template match="BeginEndDate">

<xsl:param name="report_name"></xsl:param>

       <tr>

             <td width="50%" nowrap="nowrap">

                    <div class="titleSmall" nowrap="nowrap">Start
date:</div>

             <input class="inputLine date" title="Enter task start date
in form MM-DD-YYYY" id="startDate{normalize-space(report_name)}"
size="20" value="06-01-2003"
name="startDate{normalize-space(report_name)}"/><----Here is where I
want to use variable

             </td>

             <td valign="bottom">

                    <br/>

                    <span class="butBlue" id="taskStartDate"
returnId="startDate{normalize-space(report_name)}"
onclick="tdDateCalendar()"><----Here is where I want to use variable

 

                           <span class="butSmallMiddle Center">Show<br
/>Calendar</span>

                    </span>

             </td>

             <td width="50%" nowrap="nowrap">

                    <div class="titleSmall" nowrap="nowrap">Finish
date:</div>

             <input class="inputLine date" title="Enter task finish date
in form MM-DD-YYYY" id="endDate{normalize-space(report_name)}" size="20"
value="06-01-2003" name="endDate{normalize-space(report_name)}"/>
<----Here is where I want to use variable

 

             </td>

             <td valign="bottom">

                    <br/>

                           <span class="butBlue" id="taskFinishDate"
returnId="endDate{normalize-space(report-name)}"
onclick="tdDateCalendar()"><----Here is where I want to use variable

 

                    <span class="butSmallMiddle Center">Show<br
/>Calendar</span>

                    </span>

             </td>

       </tr>

</xsl:template>

 

Thank you for the help

 

 

Tim Bachta

 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread