title: XSL rendering a value INSIDE a form
body: <p>THE SHORT VERSION: (hopefully you can 'see' what I'm trying to do here)....
  I want to 'output' a value from the XML into my form field in the XSL...</p>
  
  <pre><code>&lt;input type="text" value='&lt;xsl:value-of select="//return/ControlNo"/&gt;' /&gt;  
  </code></pre>
  
  <p>this throws an error...(see below)</p>
  
  <hr>
  
  <p>THE LONG VERSION:
  I have an XSL page rendering a page from XML... I need to 'log' when they 'close' that page - I thought calling a separate page onUnload would be the easiest way... HOWEVER - I need to pass an 'ID' to the logging page, so the XSL needs to EITHER pass the value in the onUload page call:</p>
  
  <pre><code>&lt;BODY onUnload('logit.htm?ID= ...xsl:value-of...','logitwindow'); &amp;gt;
  </code></pre>
  
  <p>OR - I submit a form with the value needed</p>
  
  <pre><code>&lt;BODY onUnload(document.form.submit); &gt;
  &lt;form&gt;&lt;input type="hidden" name="id" value=" ...xsl:value-of... "&gt;&lt;/form&gt;
  </code></pre>
  
  <hr>
  
  <p>I hope this makes sense.. thanks</p>
  
  <p>the error...
  javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The value of attribute "value" associated with an element type "input" must not contain the '&lt;' character. A Transformer object cannot be created that satisfies the configuration requested. This could be due to a failure in compiling the XSL text. javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The value of attribute "value" associated with an element type "input" must not contain the '&lt;' character. </p>