Hello Matthias,

at http://xml.apache.org/cocoon/userdocs/transformers/xslt-transformer.html you can read, that your code is correct. i only don't know what happens when sending a boolean value. I think it's interpreted as normal text.

Furthermore in the stylesheet you need a global <xsl:param name="noImgTags" select="'defaultvalue'"/>. To see whether it works or not, you can add a <xsl:value-of select="$noImgTags"/> into one template.

The use-request-parameters is more bad because of caching instead of request parameters from the user, because a <xsl:param/> is always needed. But you're correct, of course it should be avoided where possible.

Regards,

Joerg

Matthias Brunner wrote:
Hello,

how do I set XSL parameters in the sitemap?
This does not seem to be possible:

<map:transform src="my.xsl" type="xslt">
        <map:parameter name="noImgTags" value="true()"/>
</map:transform>

I do not want to activate "use-request-parameters" since the user should not be able to set parameters himself.


Best regards, Matthias Brunner


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to