[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: RE: RE: RE: get variable value in another template
So to clarify in terms of my example stylesheet, This works: <xsl:template name="T1"> <xsl:variable name="V1">rocket</xsl:variable> <r><xsl:value-of select="$V1" /></r> </xsl:template> While this throws up an error: <xsl:template name="T1"> <r><xsl:value-of select="$V1" /></r> <xsl:variable name="V1">rocket</xsl:variable> </xsl:template> Yes, that's perfectly reasonable. Unfortunately, "clarifying" a remark with ambiguous (if technically correct) language doesn't aid the original poster (OP) in understanding the problem. I think OP has a problem understanding the scope concept in XSLT. I was hoping to get OP to post a more direct and concise explanation of the problem so that we could aid in resolving it. -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Florent Georges <darkman_spam@xxxxxxxx> Sent: Wed, 28 Dec 2005 18:13:58 +0100 (CET) To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: RE: RE: get variable value in another template cknell@xxxxxxxxxx wrote: Is the xsl:template element with the name attribute value of "T2" on the following-sibling axis of the xsl:template element with the name attribute of "T1"?
--drkm ___________________________________________________________________________ Nouveau : tiliphonez moins cher avec Yahoo! Messenger ! Dicouvez les tarifs exceptionnels pour appeler la France et l'international. Tilichargez sur http://fr.messenger.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|