Hello,

I fail in passing a parameter to a stylesheet which i run from another stylsheet

In the main styleseet, i run the following command :

<xsl:copy-of select="saxon:transform( saxon:compile-stylesheet( document($xslFile ) ), $contextNode, $contextSparc)"/>


In the executed stylesheet, my parameter $contextSparc is empty while it should contain something.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
....        
        <xsl:import href="Nvm-Base.xsl"/>
        <xsl:param name="contextSparc"/>
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

        <xsl:template match="*:MODULE-DEF">        
                <xsl:copy-of select="$contextSparc"/>



Do you know what could be the problem. Is my syntax of saxon:transform not correct?
Any other idea?

Thank you
Philippe