This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: variables and substring
- To: xsl-list at mulberrytech dot com
- Subject: Re: variables and substring
- From: lachance at chass dot utoronto dot ca (Francois Lachance)
- Date: Sun, 20 Feb 2000 11:47:47 -0500 (EST)
- Reply-To: xsl-list at mulberrytech dot com
Thanks to David Carlisle for the why:>
>
>
> '$N' is the string $N. You want $N which is the value of the variable N
>
Thanks to Nikolai Grigoriev for the how:
> Remove the quotation marks
It works fine!
... and opens a vista of transformation glory
<xsl:template name="many_many_thanks"/>
<xsl:variable name="N" select="string(Thanks again)"/>
<xsl:value-of select="substring-before($N,'again')"/>
<xsl:value-of select="substring-after($N,'Thanks ')"/>
<xsl:call-template name="many_many_thanks"/>
</xsl:template>
--
Francois Lachance
Post-doctoral Fellow
projet HYPERLISTES project
http://www.humanities.mcmaster.ca/~hyplist/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list