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

[no subject]

From: "Tim Bachta" <tbachta@xxxxxxxxxx>
Date: Mon, 16 Jun 2003 15:07:44 -0500
div nowrap
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

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.