cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skoech...@n-soft.com (Sebastien Koechlin I-VISION)
Subject Re: Different Stylesheets depending on requestParameter
Date Tue, 02 May 2000 10:27:48 GMT
Ulrich Mayring wrote:
> 
> Stefano Mazzocchi wrote:
> >
> > BTW, the requests parameters are automatically sent to the XSLT
> > processor in Cocoon so it's just a matter of doing
> >
> >  <xsl:choose>
> >   <xsl:when test="$book=1">  </xsl:when>
> >   <xsl:when text="$book=2">  </xsl:when>
> >  </xsl:choose>
> 
> Cocoon 1.7.2
> 
> Error found handling the request.
> 
> org.apache.xalan.xslt.XSLProcessorException: pattern = '$book'
> VariableReference given for variable out of context or without
> definition!  Name = book

Did you add a line like

	<xsl:param name="book"/>

in your XSL file ?


> Is there any documentation or sample for this feature?

You can look at Stefano Mazzocchi's slides for ApacheCon

-- 
S├ębastien Koechlin

Mime
View raw message