Re: [xsl] is there an equivilent to eval() ?

Subject: Re: [xsl] is there an equivilent to eval() ?
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 11 Feb 2003 18:14:08 -0700 (MST)
Terence Kearns wrote:
> On Wed, 12 Feb 2003 11:45:40 +1100, "Terence Kearns"
> <tk.lists@xxxxxxxxxxx> said:
> > Maybe it's not quite the same thing as eval(), but I got around the
> > problem with *[name()=$main]
> > 
> > 
> > <input class="formItem" 
> >     type="text" name="{$main}" 
> >     value="{normalize-space(*[name()=$main])}" />
> 
> would be nice if nested braces worked :)
> 
> so I could have
> {normalize-space({$main})}

You don't need to nest anything.

value="normalize-space(*[name()=$main])"

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/xml/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread