Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old November 14th, 2009, 09: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:

<xsl:template match="Apply">

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

Can i do that?

Reply With Quote
  #2 (permalink)  
Old November 14th, 2009, 09:59 AM
Friend of Wrox
Points: 6,673, Level: 34
Points: 6,673, Level: 34 Points: 6,673, Level: 34 Points: 6,673, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2007
Location: Germany
Posts: 1,242
Thanks: 0
Thanked 244 Times in 243 Posts

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09:18 AM
Parameter object malfunction - out parameter dash dev C# 2005 6 December 4th, 2007 11:58 AM
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

All times are GMT -4. The time now is 12:41 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.