title: Passing data from VBScript to XSL
body: <p>I'm completely new to both VBScript and XSL manipulation, but am in a position where I need to do some work on such files... So there's a chance this might not even be possible, or that I'm misunderstanding how the current code works, or whatever.</p>
  
  <p>But from what I gather, currently there's an XSL file that transforms a list of news articles from an XML file into valid HTML. It also limits the number though, so it only ever displays three articles. It does this using <code>&lt;xsl:if test="position() &amp;lt; ($NumberOfArticles + 1)"&gt;htmlgoeshere&lt;/xsl:if&gt;</code> where <code>$NumberOfArticles</code> is defined earlier with <code>&lt;xsl:param name="NumberOfArticles" select="3" /&gt;</code>.</p>
  
  <p>This XSL is called using the following VBScript:</p>
  
  <pre><code>Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
  Call xmlhttp.Open("GET", url, False)
  Call xmlhttp.send
  
  set feedxml = Server.CreateObject("Microsoft.XMLDOM")
  feedxml.async = false
  feedxml.load(xmlhttp.ResponseBody)
  
  set feedxsl = Server.CreateObject("Microsoft.XMLDOM")
  feedxsl.async = false
  feedxsl.load(Server.MapPath("xsl/" &amp; stylesheet))
  
  FeedContent = feedxml.transformNode(feedxsl)
  </code></pre>
  
  <p>where <code>url</code> is the URL of the XML file and <code>stylesheet</code> is the filename of the XSL file.</p>
  
  <p>I also have a VBScript variable called <code>NumberOfArticles</code> that relies on user input. Is there a way to pass this variable into the XSL file such that it will set <code>$NumberOfArticles</code> to it, rather than the value being hardcoded as <code>3</code>? So then the user can decide to display more or less?</p>