You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Roberto Tiella <ti...@sodalia.it> on 2000/12/13 15:39:05 UTC
XSLT Question
Hi everybody !
I have a question concerning XSLT.
I have a XML like the following:
<expr>
<value>4</value>
<operator>*</operator>
<value>7</value>
</expr>
applying a template, I'm able to assign the string "4*7" to a variable
(say 'n'). Now the question is
how can I evaluate the expression in 'n' ?
the XSLT fragment:
<xsl:value-of select="$n"/>
just returns the '4*7' string.
Is there any other way the expressior or just to get the '28' from the
XML document ?
best regards, roberto.
--
Roberto Tiella
Process Reuse And Technologies Area
SODALIA s.p.a.
v. Valentina Zambra,1 38100 TRENTO ITALY
phone: +39 0461 316430 fax: +39 0461 316401