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

Re: XSLT variable eval

Subject: Re: XSLT variable eval
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 1 Dec 2004 13:18:00 GMT
t variable
please don't take things off list.

>  <xsl:value-of select="variable with name in attribute @name".

You can't do that in XSLT any more than you can in C or fortran or most
other languages. Variable names need to be known at compile time.

If you ask on list and give a description of what you are trying to do
(not how you are trying to do it)  someone will be able to help.

probably rather than lots of variables you just want one variable that
contains some xml data so that instead of

<xsl:value-of select="variable with name in attribute @name"..

you can do

<xsl:value-of select="$x/*[@name()=current()/@name]"/>

But you'd need to give a clearer description (on list)  of what you are
trying to do.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.