You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marco Pauck <pa...@wmd.de> on 2000/10/17 21:42:12 UTC
Bug in response.xsl
Just noticed that response.xsl contains *two* template rules to
match "response:add-header" and also *two* for "response:set-header".
The second one should probably be called "response:add-int-header"
resp. "response:set-int-header" as it calls response.addIntHeader()
resp response.setIntHeader(), right?
Attached is a patch to fix this.
Marco
*** response.xsl Tue Oct 17 21:33:00 2000
--- response.xsl.org Sun Sep 17 18:14:12 2000
***************
*** 226,232 ****
</xsp:logic>
</xsl:template>
! <xsl:template match="response:add-int-header">
<xsl:variable name="name">
<xsl:call-template name="value-for-name"/>
</xsl:variable>
--- 226,232 ----
</xsp:logic>
</xsl:template>
! <xsl:template match="response:add-header">
<xsl:variable name="name">
<xsl:call-template name="value-for-name"/>
</xsl:variable>
***************
*** 457,463 ****
</xsp:logic>
</xsl:template>
! <xsl:template match="response:set-int-header">
<xsl:variable name="name">
<xsl:call-template name="value-for-name"/>
</xsl:variable>
--- 457,463 ----
</xsp:logic>
</xsl:template>
! <xsl:template match="response:set-header">
<xsl:variable name="name">
<xsl:call-template name="value-for-name"/>
</xsl:variable>