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

Do you have something like this ?


Le 24/01/2013 10:19, a écrit :

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

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:

saxon-help mailing list archived at