You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by John Ky <ne...@yahoo.com> on 2000/03/30 09:29:19 UTC
Text of current node
How do I use XSL to access the text of the
current node?
My XML book says I can do this:
<xsl:value-of />
But it doesn't seem to work. Eg:
<xsl:for-each select="menu-item">
<td>
<a>
<xsl:attribute name="href">
javascipt:
fireEvent(
'<xsl:value-of select="@widgetID"/>',
'onclick'
);
</xsl:attribute>
<xsl:value-of />
</a>
</td>
</xsl:for-each>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Re: Text of current node
Posted by Phil Lanch <ph...@aldigital.co.uk>.
John Ky wrote:
>
> My XML book says I can do this:
>
> <xsl:value-of />
i guess that must have worked in earlier working drafts of the XSLT
spec; now you need-
<xsl:value-of select="."/>
--
cheers
phil
"The cab company the card in Alkan's bathroom referred to
was easily found. It was a cubbyhole tenanted by an Italian
speaker in a flat tweed cap. He made no sign of remembering
a tall, thin man, somewhat like Le Corbusier. Indeed, it could
have been a resistance to the Modernist movement as a whole that
made him so abusive towards me when I pressed him for information."
Re: Text of current node
Posted by John Ky <ne...@yahoo.com>.
Stefano:
> <xsl:value-of select="."/>
That notation makes perfect sense.
Thanks
John
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Re: Text of current node
Posted by Stefano Mazzocchi <st...@apache.org>.
John Ky wrote:
>
> How do I use XSL to access the text of the
> current node?
>
> My XML book says I can do this:
>
> <xsl:value-of />
>
> But it doesn't seem to work. Eg:
>
> <xsl:for-each select="menu-item">
> <td>
> <a>
> <xsl:attribute name="href">
> javascipt:
> fireEvent(
> '<xsl:value-of select="@widgetID"/>',
> 'onclick'
> );
> </xsl:attribute>
> <xsl:value-of />
> </a>
> </td>
> </xsl:for-each>
<xsl:value-of select="."/>
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------