[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Associative Arrays and XSLT ?


Subject: [xsl] Associative Arrays and XSLT ?
From: Stef <stef@xxxxxxxxx>
Date: Thu, 17 Mar 2005 11:09:35 -0500

Hello everyone,
	Sorry for the (stupid ?) question, however, is
there any provision for associative arrays in XSLT ?

	I have a few entities whose name I need to map
into column names for DB insertion. so, I was hoping
there was a quick/easy way to do something like;

	my %h={"name1"=>"MyName", "int4"=>"finalInteger}

	That way, I can then do a lookup by doing;

	<xsl:value-of select="$h{name()}">

	I realise that I will have to utilize xslt's
functions more than likely, however, I am wondering if
any has example hash functions already lingering around
their computer.

	Crazy/Stupid/Moronic question, i know :)
	Thanks
	Stef


Current Thread
Keywords