I take it you mean: return sitemapParams; not return sitemap; Regards, Upayavira
You are right, Upayavira, so :
with this param, i can select a stylesheet like this :
<map:act type="srvimp"> <map:generate type="xsp" src="content/xsp/GENERAL.xsp"/> <map:select type="parameter"> <map:parameter name="parameter-selector-test" value="{my-sitemap-param}"/> <map:when test="test"> <map:transform src="style/xsl/test.xsl"/> <map:serialize type="fo2pdf"/> </map:when> <map:otherwise> <map:transform src="style/xsl/otherwise.xsl"/> <map:serialize type="fo2pdf"/> </map:otherwise> </map:select> </map:act> </map:match>
but i don't succeed in selecting dynamically the stylesheet, (<map:transform src="style/xsl/{my-sitemap-param}.xsl"/>). An issue ?
wrapped in map:select you may need to use {../my-sitemap-param} but if your real pipeline is not more complicated, you don't need it. Just make your action return only the valid options for your stylesheets ("test" and "other" in the example) and use:
<map:act type="srvimp">
<map:generate type="xsp" src="content/xsp/GENERAL.xsp"/>
<map:transform src="style/xsl/{my-sitemap-param}.xsl"/>
<map:serialize type="fo2pdf"/>
</map:act>HTH, Geoff
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
