Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2009, 10:55 AM
Registered User
 
Join Date: Oct 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Using parameter value

Hi All,

How to use parameter value as ID of HTML's table in XSLT.

Like below:

Code:
<xsl:template match="Apply">

<xsl:param name="tblID" select="@Id"></xsl:param>
 <html>
          <body>
                 <table id="$tblID">
                   <tr>
                      <td><xsl:value-of select="./title/text()"/></td>
                   </tr>

                 </table>
           </body>
 </html> 
</xsl:template>
Can i do that?

Thanks
UTYK
 
Old November 14th, 2009, 10:59 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

You can use an attribute value template:
Code:
<table id="{$tblID}">
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
The Following User Says Thank You to Martin Honnen For This Useful Post:
utyk (November 14th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass a control parameter and process a return parameter in sqldatasource jayshankar ASP.NET 2.0 Basics 1 January 1st, 2009 10:18 AM
Parameter object malfunction - out parameter dash dev C# 2005 6 December 4th, 2007 12:58 PM
parameter umeshtheone Beginning VB 6 0 May 23rd, 2007 01:13 AM
another parameter drachx Crystal Reports 0 October 3rd, 2005 07:52 PM
Parameter Bhavin Crystal Reports 4 September 9th, 2004 10:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.