DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3619>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3619

           Summary: using xsl:with-param with xsl:call-template, default
                    template parameters aren't overridden
           Product: XalanJ2
           Version: 2.2.x
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Xalan-Xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


------------------------ Example ------------------------

<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
                version="1.0">

<xsl:template name="column_header">
    <xsl:param name="column-title">A</xsl:param>
    <xsl:param name="column-sort-by">B</xsl:param>

    <column_title><xsl:value-of select="string($column-title)" /></column_title>
    <column_sort_by><xsl:value-of select="string($column-sort-
by)" /></column_sort_by>
</xsl:template>

<xsl:template match="/">
    <xsl:call-template name="column_header">
        <xsl:with-param name="column-sort-by">One</xsl:with-param>
        <xsl:with-param name="column-title">Two</xsl:with-param>
    </xsl:call-template>
</xsl:template>
</xsl:stylesheet>
-------------------------------------------------

This should evaluate (I think) to 
<column_title>Two</column_title><column_sort_by>One</column_sort_by>

but I get 
<column_title>A</column_title><column_sort_by>B</column_sort_by>

this is with D10

Reply via email to