This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: variable problem
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] variable problem
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Fri, 2 Feb 2001 14:31:01 GMT
- References: <a05010408b6a06b3fcc35@[10.0.1.51]>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> it doesn't work (the document won't parse anymore). Is there
> something I have misunderstood about where you can and cannot call a
> variable?
Yes, you can't use variables in match expressions.
It isn't clear what you are trying to do.
If
table_name=<xsl:value-of select="$table_name" />
produces
table_name=abc
Did you intend
<xsl:template match="$table_name">
to act like
<xsl:template match="abc">
or
<xsl:template match="/page/@table_name">
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list