Reading the doc, your $contextSparc should be :
An element node
    <contextSparc>whatever you want</contextSparc>
or an attribute node
    @contextSparc="whatever-you-want"
or a document node
    <contextSparc>
        <what /> <ever /> <you /> <want />
    </contextSparc>

Do you have something like this ?

Christophe

Le 24/01/2013 10:19, Philippe.Favrais@continental-corporation.com a écrit :
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

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help