You're passing a document node, which has no name. You need to pass the element node. I'd suggest declaring the variable as

<xsl:variable name=”param1” as="element()">


  <xsl:value-of select=”some content goes here”/>




which will achieve this.


I've made a change to the code to stop this mistake happening in future. If you pass a document node, it will automatically go down to its element children.


Michael Kay

From: [] On Behalf Of Vion-Dury, Jean-Yves
Sent: 15 June 2007 15:22
Subject: [saxon] saxon:transform and parameter passing problem


I’m trying to pass a parameter to a stylesheet using






As specified in the saxon8.9 documentation, $param1 should refer to a node which name must match the expected parameter, and which atomized content will specifies the value.


$param1 is constructed via


<xsl:variable name=”param1”>


  <xsl:value-of select=”some content goes here”/>




 And the target stylesheet is waiting for a parameter “doc-uri”


<xsl:param name=”doc-uri” required=”true”/>



However, at run time, I get



  XTDE0050: No value supplied for required parameter doc-uri


Many thanks for your help,




PS I’m using the 8.9B version



Jean-Yves Vion-Dury

Senior Scientist


Document Structure Area


Xerox Research Centre Europe,

6 chemin de Maupertuis

38240 Meylan - FRANCE

(+33)4 76 61 51 52