[XML4Lib] XSLT call name of variable dynamically?
Alexander Johannesen
alexander.johannesen at gmail.com
Thu Feb 5 16:44:21 EST 2009
On Thu, Feb 5, 2009 at 22:27, Walker, David <dwalker at calstate.edu> wrote:
> You mean like an XML file that holds the name of the text? Yeah, I've considered this approach too.
I'm still unsure what you're trying to do. To me it *sounds* like
you're writing a small templating engine inside XSLT, which is a
templating engine. :)
What does your XML look like, and what are you trying to do with it?
For me, specific texts are held in custom templates, for dynamic text
use a lookup table, for split XML inputs use xsl:key, etc. XPath is in
itself dynamic in terms of paths, and there's little you can't do
through it, and depending on the depth and starting-points of your
texts you can create really smart stuff.
regards,
Alex
--
---------------------------------------------------------------------------
Project Wrangler, SOA, Information Alchemist, UX, RESTafarian, Topic Maps
------------------------------------------ http://shelter.nu/blog/ --------
More information about the XML4Lib
mailing list