xsl-list
[Top] [All Lists]

Passing a Map as parameter to XSLT.

2006-03-03 15:23:25
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



--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>