[XSL-LIST Mailing List Archive Home]
Re: [xsl] Reading value of passed variable
Subject: Re: [xsl] Reading value of passed variable|
From: Mayo <mayo@xxxxxxx>
Date: Thu, 17 Jun 2004 14:21:02 -0700
Wow, thanks for all the tips and comments.
I've got several new ideas to try out from all the comments, and
another few that made me want to reconsider the lifetime of the
document. What I was planning on doing is as follows:
Give a user set of variables (dynamic set, dynamic values) that they
can work with. They create a document with these variables (possibly
defining their own variables), and than the document will be processed
with xslt. All of the variables and their values would be passed to the
xslt processor (sablot in php in this case) at run time. The xsl would
than do what it needs to with the document and process output.
That's also my reason behind letting users deal with xsl variables. I
know it's generally not the best idea, but at the time, this looked
like an ideal solution. Maybe some more thinking needs to be done.
On Jun 16, 2004, at 16:32, Mayo wrote:
I'm trying to read value of a variable who's name is passed to the
xslt processor as argument.
My source file has something like:
The variable $xsltvar will be defined at the processor's runtime, so
it has some value ("test" just for the sake of example - as if
<xsl:variable name="somevar" select="'test'"/> was used). Now what I'm
trying to do is to have xslt output the value of this variable.
I've tried using <value-of select=""> with selecting the name
attribute from the var node, but to no avail.
This, naturally, prints out the name of the variable ("$somevar"), but
I can't get the actual value of the variable.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>