Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
| 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 Search this Thread Display Modes
  #1 (permalink)  
Old December 5th, 2006, 07:09 AM
Registered User
Join Date: Dec 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default xsl:variable holding name of an xsl:param

Hello all,

I have the following situation:

I am developing a set of XSLs that take an XML doc as input and generate an HTML+Javascript editor for this particular XML doc.
These XSLs are invoked by a native Windows app, using the IE ActiveX control in hosted mode (so, only the latest version of MSXML is available!); something like the AJAX concept, but all on the desktop.

The only way that the native app has to pass context information to the XSLs is via runtime xsl:params.

Among others, the native app passes the following xsl:params
- idList: a comma-separated list of object ids that need special processing
- <id1>, <id2>...: A number of xsl:params, each named after each value in the list and containing some information.

Is there a way to use the value of an xsl:variable as a QName to get the value of one xsl:param?

For example, in the following fragment what should be added (if anything) in the placeholder?

<xsl:template name="processInfo">
    <xsl:param name="objectId"/>

    <xsl:variable name="isDirty" select="contains($idList, $objectId)"/>

    <xsl:if test="$isDirty = 'true'">
        <xsl:variable name="objectValue" select="[-->Missing part<--]"/>


I have been googling all day about this but nothing has come up!
Could it be that I am asking the impossible?

Thank you for any help or hint that you may provide.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
xsl:param and xsl:apply-templates' "select" newbieboobers XSLT 1 March 25th, 2008 07:23 PM
Pass xsl:param to xsl:if bonekrusher XSLT 5 September 6th, 2007 04:37 PM
The difference between xsl:variable and xsl:param NEO1976 XML 2 July 24th, 2006 06:05 AM
xsl variable in xsl tag? di98svpa XSLT 1 February 10th, 2006 01:41 PM
XSL Parameter xsl:param Harinath Chikoti XSLT 1 May 6th, 2005 03:15 AM

All times are GMT -4. The time now is 02:46 AM.

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