Hi,
In Synapse XSLT mediator I understand that we can pass parameters. But how
to pass Map as a parameter?

1. How to create an map object (via Spring or something else) in Synapse
which could be injected as a map to XSLT?

My requirement is that I've a Location code mapping properties file say
locationMap.properties,
so I've to pass this Map (read from properties file) to XSLT, and then the
XSL file should be able to make use of this Map.

To be specific, this is how I need:


                   
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
                    ...
                            version="2.0">
                           
  <xsl:output method="xml" omit-xml-declaration="yes"/>
  <xsl:param name="map"/>   
 
  <xsl:template match="Identity">
    <xsl:value-of select="map:get($map, 'locCode')"/>
    <xsl:copy>
      <xsl:apply-templates select="@* | node()" />
    </xsl:copy>

  </xsl:template>
         
</xsl:stylesheet>             

-- 
View this message in context: 
http://old.nabble.com/Synapse-XSLT-Transformation%2C-passing-Map-parameter-where-Map-has-to-be-created-using-properties-file-tp27131956p27131956.html
Sent from the Synapse - User mailing list archive at Nabble.com.

Reply via email to