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

Re: define a global variable and change it

Subject: Re: define a global variable and change it
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Tue, 12 Aug 2008 11:12:43 -0700
Re:  define a global variable and change it
Changing a variable is like pouring rubbish onto it -- not a nice thing.

Either define a new variable for the new value, or delay the
definition of the variable, until it is clear what value it should
have.


-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play




On Tue, Aug 12, 2008 at 8:30 AM, henry human <henry_human@xxxxxxxx> wrote:
> Hi
> is it possible to define a global variable with xsl?
> I am going to define such varable to be able changing
> its value some where inside the stylesheet.
> Hier is asample which does not work!:
> **********************************
>    <html>
>      <body>
> <xsl:variable name="x" select="'abcd'"/>
>   <p> Value of x: <xsl:value-of select="$x"/>  </p>
> <xsl:variable name="x"> succeded</xsl:variable>
>   <p> Value of x: <xsl:value-of select="$x"/>  </p>
> ************************
> Thank you for your help

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.