Hello,

I am trying to pass a parameter from one XSL template to another using the
code snippet below. The value of the parameter should be obtained from a
database. Unfortunately, the code does not work and I do not have any idea
why. Is it possible to do that with XSLT or do I misunderstand something
completely? I tried different ways (e.g. assign the database result to a
variable and then use it in the with-param tag), but the resulting Java code
simply seems to be empty. 

<xsl:call-template name="category">
<xsl:with-param name="categoryid"><esql:get-int
column="categoryid"/></xsl:with-param>
</xsl:call-template>

If I hardcode the parameter (e.g. replace '<esql:get-int
column="categoryid"/>' with '4') everything works fine. 

Thanks,

Andreas

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to