[XML4Lib] XSLT call name of variable dynamically?

Wick, Ryan Ryan.Wick at oregonstate.edu
Thu Feb 5 16:07:55 EST 2009


Not sure exactly what you're trying to do. Something like this?
http://www.dpawson.co.uk/xsl/sect2/N8090.html#d12079e1456

Also, you can pass in things to the stylesheet when the transformation
is started, using params, if you just need to include some dynamic
external info. Implementation depends on your stylesheet processor. Some
more information is at http://www.dpawson.co.uk/xsl/sect2/N5982.html

Ryan Wick
Information Technology Consultant
Special Collections
Oregon State University Libraries
http://osulibrary.oregonstate.edu/specialcollections


-----Original Message-----
From: xml4lib-bounces at webjunction.org
[mailto:xml4lib-bounces at webjunction.org] On Behalf Of Walker, David
Sent: Thursday, February 05, 2009 12:00 PM
To: xml4lib at webjunction.org
Subject: [XML4Lib] XSLT call name of variable dynamically?

Hi all,

Is it possible in XSLT 1.0 to call an <xsl:variable> dynamically at
run-time without using an <xsl:choose> block?  That is, something like
this:

   <xsl:value-of select="${$foo}" />

That doesn't work.  But is there some other way to accomplish the same?
If need be, I can write some background on this question, but hoping
someone might be able to tell me straight-up.

--Dave

==================
David Walker
Library Web Services Manager
California State University
http://xerxes.calstate.edu

_______________________________________________
XML4Lib mailing list
XML4Lib at webjunction.org
http://lists.webjunction.org/mailman/listinfo/xml4lib





More information about the XML4Lib mailing list