cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Pauck <pa...@wmd.de>
Subject Bug in response.xsl
Date Tue, 17 Oct 2000 19:42:12 GMT
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>

Mime
View raw message