Search code examples
templatesparam

Saxon HE | Call template with param functgion


why it doesnt work?

trying to get code template working with param, so far unsuccessfully

<xsl:call-template name="template_name" with-param
            name="name"
            select="expression/">

Solution

  • Just like this

        <xsl:call-template name="template_name">
    
            <xsl:with-param
                name="name"
                select="expression">
    
                <!-- Content:template -->
    
            </xsl:with-param> 
    
        </xsl:call-template>