2008/12/10 Ramon Buckland <[EMAIL PROTECTED]>:
> A Header (and possibly) a property is available as a param.. so
>
> <setHeader headerName="myParam"><constant>42</constant></setHeader>
> <to uri="xslt:MyTransform.xsl"/>
>
> and the XSLT just needs to declare it at the top level for it to be
> available.
>
> <xsl: ...... >
>
>   <xsl:param name="myParam"/>
>
>    <xsl:template ...>
>
> cheers

Agreed!

After a quick peek at the XsltComponent class, it should be pretty
trivial to pass in any pending parameters into the stylesheet so that
you could configure the stylesheet on the URI as Ade mentioned - to
avoid having an extra setHeader step in the route. e.g. routing to

<to uri="xslt:MyTransform.xsl?myParam=42"/>

Ade - do you feel up to tinkering a little with XsltComponent to try
it out? e.g. see the configureXslt() method - if there are remaining
parameters in the Map you could try inject them into the actual XSLT
template?

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to