title: Passing value from HTML to XSLT using JavaScript
body: <p>I have a XML which has order with fields id, name, qty and price.
  I'm trying to create a page that takes the ID as input from the user and searches that in 
  the XML and display the desired values. Have added this in my XML but it wasn't allowing me below ""</p>
  
  <p>My XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="Order.xsl"?&gt;
  &lt;orders&gt;
         &lt;order&gt;
               &lt;id&gt;1&lt;/id&gt;
               &lt;name&gt;A&lt;/name&gt;
               &lt;qty&gt;5&lt;/qty&gt;
               &lt;rate&gt;10&lt;/rate&gt;
         &lt;/order&gt;
  &lt;/orders&gt;
  </code></pre>
  
  <p>XSLT:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:template match="/"&gt;
    &lt;html&gt;
       &lt;script type="text/javascript"&gt;
          function searchAcct()
            {
              AcctNum = document.getElementById("textbox1").value;
  
            }
       &lt;/script&gt;
    &lt;body&gt;
       &lt;form&gt;
         Enter Account Num# : &lt;input type="text" name="textbox1" id="textbox1"&gt;&lt;/input&gt;
         &lt;input type="submit" name="Submit" id="Submit" onclick="searchAcct()"&gt;&lt;/input&gt;
       &lt;/form&gt;    
       &lt;xsl:for-each select="orders/order"&gt;
          &lt;xsl:if test="id = AcctNum"&gt;
              &lt;xsl:value-of select="name"&gt;&lt;/xsl:value-of&gt;
              &lt;xsl:value-of select="price"&gt;&lt;/xsl:value-of&gt;
          &lt;/xsl:if&gt;
       &lt;/xsl:for-each&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  &lt;/xsl:template&gt;  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I'm new to the XML and XSLT so might have coded something wrong... please correct me.</p>