[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: variable problem

Subject: Re: variable problem
From: Jo Bourne <venus@xxxxxxxxx>
Date: Sat, 3 Feb 2001 09:59:58 +1100
Re:  variable problem
I need match="$table_name" to result in match="abc" not match="/page/@table_name" is there some other way I can do this than with a variable?

thanks
Jo

At 2:31 PM +0000 2/2/01, David Carlisle wrote:
> 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

-- Jo Bourne Manager Web Systems Development Virtual Artists Pty Ltd

email: venus (at) va.com.au            ph: +61 2 9590 8749
web: http://www.va.com.au          mobile: +61 414 498 646

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.