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

URGENT : Substitue value of xsl:variable into output !!!

Subject: URGENT : Substitue value of xsl:variable into output !!!
From: "Mahesh Nanavate" <mahesh.nanavate@xxxxxxxxxxx>
Date: Tue, 9 May 2000 21:44:47 +0530
xsl value of xsl variable
Hi Everybody,

I have one problem :

	Consider the following XML snippet:
		---
		---
		<ItemList>
		<oneItem>
			<ItemID>1212</ItemID>
			<ItemName>XYZ</ItemName>
			<Qty>1</Qty>
		</oneItem>
		</ItemList>
		---
		---
	Consider the following XSL snippet:
		---
		---
	<xsl:template match="oneItem">
		<p><xsl:value-of select="ItemName" /><br/>
			<xsl:variable name="inVar" select="concat('q',ItemID)"/>
			<input name="$inVar" value="{Qty}" type="number"/>	<br/>
		  	 <anchor>Change
				<go
ref="http://10.10.10.94:7001/servlet?mySvc=myApp&amp;myP1={ItemID}&amp;myP2=
$inVar"></go>
	  	 	 </anchor>
		</p>
	</xsl:template>
		---
		---

	My Problem is that I am not able to substitute the value of the
xsl:variable with name inVar
	into 'name' attribute of the input element.
	Also I require that the myP2 be assigned a value of concat('$',value of
inVar).

	The depicted code is not substituting the value of inVar instead it's
giving the string as it is.

	Any help in this regard is most appreciated ,

	Thanks in advance,
	Mahesh.


 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.