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

RE: value of the value of a variable

Subject: RE: value of the value of a variable
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Tue, 23 Nov 2004 08:59:16 -0600
RE:  value of the value of a variable
Hi Hardy,

You're using

<xsl:with-param name="mytag" select="'full_name'"/>

but I guess you want to use

<xsl:with-param name="mytag" select="full_name"/> 

HTH,
<prs/>

-----Original Message-----
From: Hardy Merrill [mailto:HMerrill@xxxxxxxxxxxxxxxx] 
Sent: Tuesday, November 23, 2004 8:31 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  value of the value of a variable

Here is a snippet of my call and template:

-----------------------------------------------------------------

<xsl:call-template name="get_inactive">
	<xsl:with-param name="distno" select="district_no"/>
	<xsl:with-param name="disttype" select="district_type"/>
	<xsl:with-param name="mytag" select="'full_name'"/>
	<xsl:with-param name="legislators"
select="msxsl:node-set($sorted_legislators)"/>
</xsl:call-template>

<xsl:template name="get_inactive">
	<xsl:param name="distno"/>
	<xsl:param name="disttype"/>
	<xsl:param name="mytag"/>
	<xsl:param name="legislators"/>

               <xsl:for-each
select="msxsl:node-set($legislators)/*[legislator_active = 0 and district_no
= $distno and district_type = $disttype]">

                             <xsl:value-of select="$mytag" /> <<<===== this
one ======

               </xsl:for-each>

</xsl:template>
--------------------------------------------------------------

In "this one" in the template, $mytag contains the literal "full_name"
- what I want is the *text value* of the full_name tag, but this isn't doing
it for me.  How do I get that?

TIA.

Hardy Merrill

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.