In the current implementation, saxon:transform() is restricted to pass atomic values as the transformation parameters. I propose to extend this in Saxon 9.5 to allow a map to be passed as the third argument, which removes this restriction. Maps are defined in XSLT 3.0, and are available only in Saxon-PE or -EE.

Michael Kay
Saxonica

On 24/01/2013 15:17, Philippe.Favrais@continental-corporation.com wrote:
Hello Mickael

Yes unfortunatly, this is what i am experimenting : only atomic values are passed.
In may case, I need to pass a complete nodeset in the parameter. I don't yet know the "map" in XSL.
Are the maps supported by Saxon B (version9)?
Where could i find an example ?

Thank you
Philippe



De :        Michael Kay <mike@saxonica.com>
A :        saxon-help@lists.sourceforge.net
Date :        24/01/2013 16:00
Objet :        Re: [saxon] Run and XSL from an XSL and passing a param to        the        stylesheet





On 24/01/2013 13:58, Philippe.Favrais@continental-corporation.com wrote:
Thank you Christophe,
Yes, it didn't work because the node of $contextSparc was not named as the value of the parameter.


Now it works but i have an additional question, how should i do so that in the parameter
contextSparc i get the nodeset and not the atomic value.
In fact, I would like to be able to do someting like <xsl:copy-of select="
$contextSparc/what"/>

Thank you

Philippe


Unfortunately the current interface for saxon:transform() only allows atomic values to be passed as the values of the parameters. Now that maps are available, it makes sense to allow the parameters to be passed as a map, allowing any kind of value.

Michael Kay
Saxonica
------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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