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

[xsl] Passing a Map as parameter to XSLT.


Subject: [xsl] Passing a Map as parameter to XSLT.
From: "DEVAL SHAH" <devals9@xxxxxxxxxxx>
Date: Fri, 03 Mar 2006 22:23:25 +0000

Hello,

I want to pass a java.util.Map object to a XSLT as a parameter.
Currently the way I am doing is:
1. Creating an org.w3c.dom.Document object in the format
   <x:map>
   <entry key="..." value="..."/>
         ...
   </x:map>

2. I have defined a parameter in xslt
<xsl:param name="XSLTParameter" />


Now how do I access this map in the XSLT. I am not able to access it. I was trying to use the key function as follows:

<xsl:key name="xsltParameterMap" match="document('')/*/map/entry" use="@key"/>

But nothing is working. It cannot access the xml document that I am passing

Any help on this?

Thank you
Deval


Current Thread
Keywords