title: Transformation of multiple input files
body: <p>Right now i am using this java (which receives one xml file parameter) method to perform XSLT transformation:</p>
  
  <pre><code>static public byte[] simpleTransform(byte[] sourcebytes, int ref_id) {   
      try {
          StreamSource xmlSource = new StreamSource(new ByteArrayInputStream(sourcebytes));
          StringWriter writer = new StringWriter();
          transformations_list.get(ref_id).transformer.transform(xmlSource, new StreamResult(writer));
          return writer.toString().getBytes("UTF-8");
      } catch (Exception e) {   
          e.printStackTrace();   
          return new byte[0];
      }   
  } 
  </code></pre>
  
  <p>And in my xslt file i am using the <code>document('f2.xml')</code> to refer to other transform related files.</p>
  
  <p>I want to use my Java like this (get multiple xml files):</p>
  
  <pre><code>static public byte[] simpleTransform(byte[] f1, byte[] f2, byte[] f3, int ref_id) 
  </code></pre>
  
  <p>An in my XSLT i don't want to call <code>document('f2.xml')</code> but refer to the object by using f2 received in my Java method.</p>
  
  <p>Is there a way to do it? how do i refer to </p>
  
  <blockquote>
    <p>f2.xml </p>
  </blockquote>
  
  <p>in my XSLT using this way?</p>