Hi Cocoon-users,
I have been wanting to use different xsl's based on the value in a get
parameter of a uri.
For e.g. ....test.xsp?xsl=first
My pipeline is as follows:
<map:match pattern = "*.xsp">
<map:generate type="serverpages" src = "{1}.xsp/>
<map:select type="request" name="xsl">
<map:when test="first">
<map:transform src ="first.xsl/>
</map:when>
<map:otherwise>
<map:transform src="default.xsl"/>
</map:otherwise>
</map:select>
<map:serialize/>
</map:match>
I find the xsl that the transformer picks up is always default.xsl. I have
specified the selector class for the request type in the component section
of the sitemap.
Thanks in advance,
Raju
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>