title: Process multiple XSLTs and pass the result to another XSLT for transformation in Java
body: <p>I have a requirement in my code and it is as follows:</p>
  
  <p>The </p>
  
  <ul>
  <li>Parameters in my Java program are passed to an XSLT(X1) for processing. The X1 returns only one String value.</li>
  <li>Another set of Parameters are passed to another XSLT(X2) for processing.The X2 also returns only one String value.</li>
  <li>After Transformations the XSLT results need to be passed to another XSLT(X3) which would use the value as Variables and generate result basis the results from X1 and X2.</li>
  </ul>
  
  <p>As far as i have been studied the XSLT variables values cannot be modified once stored. and also that these values are received as parameters when calling &lt;xsl:apply-template name="someTemplate" &gt; and with parameter tags.</p>
  
  <p>i can implement this functionality by retrieving the result into String in Java and again Passing them as parameters to the next template. but i wanted to know if the same can be done directly via XSLT.</p>
  
  <p>Please help</p>
  
  <p>Edit: Xalan removed as tag</p>