You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by jh...@virbus.de on 2001/04/24 18:03:26 UTC

Re: is there something like

Elmar Christen wrote:
> 
> Hi there, it's me -again- with the same question.
> We are having this problem, working on it for several days now,
> consulted some mailing-lists archives and still haven't found the
> solution.
> We need something like:
> <xsl:value-of select="$var"/>
> The variable "var" holds as value a string which happens to be a XPath
> (!) to a node within the same document, like, for example
> $var="/root/here/there"
> and the XML doc has amoung other this
> <root>
>   <here>
>       <there>ELMAR</there>
>    </here>
>      ...
> </root>
> The result of which we hope to get in this case <xsl:value-of
> select="$var"/> should be "ELMAR". But, of course, with <xsl:value-of
> select="$var"/> we get just the path-string "/root...".
> Maybe, this is simply not possible with just XSL ? Maybe this has to be
> done with some tricky XSPs? If so, how?
> 
> (Greeting from Barcelona - it's sunny and warm outside)

I don't know exactly, but maybe a <xsl:value-of select="{$var}"/> helps?

(Greetings from Leipzig - it's sunny too, but still relative cool)

Joerg

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>