title: Pass parameter to C# function in XSLT
body: <p>I have a XML and XSLT like this:</p>
  
  <p><strong>XML</strong></p>
  
  <pre><code>&lt;process id="1"&gt; 
    &lt;task id="task1"&gt;
    &lt;/task&gt;
    &lt;task id="task2"&gt;
    &lt;/task&gt; 
    ...
  &lt;/process&gt;
  </code></pre>
  
  <p><strong>XSLT</strong></p>
  
  <pre><code>&lt;msxsl:script language="C#" implements-prefix="user"&gt;
  
      &lt;![CDATA[
        public string GetStartTask(int ProcessID)
         {         
            return StartTask(ProcessID);
          }
      ]]&gt;
  
  &lt;/msxsl:script&gt;
  
  ...
  &lt;xsl:if test="@id = user:GetStartTask(&lt;xsl:value-of select="/../@id"/&gt;)"&gt;
     ...
  &lt;/xsl:if&gt;
  ...
  </code></pre>
  
  <p>(<code>StartTask</code> is method that return string.)</p>
  
  <p>In code above I try to pass <code>process id</code> to <code>GetStartTask</code> function by this:</p>
  
  <pre><code>&lt;xsl:value-of select="/../@id"/&gt;
  </code></pre>
  
  <p>But this code is incorrect. I read many post but I don't find syntax for this issue.</p>
  
  <p>It would be very helpful if someone could explain solution for this issue.</p>