title: Multiple xml files transform using java to html file
body: <p>My question is simple
  I have two xml files and one xsl file using java Transformer I needed to create html stringbuffer. I know how to deal with single xml file I need help to using two xmls.</p>
  
  <p>My first xml</p>
  
  <p>xml_1.xml(data xml)</p>
  
  <pre><code>&lt;data&gt;  
        &lt;title&gt;Mr&lt;/title&gt;
        &lt;name&gt;Peter&lt;/name&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>And my second xml is </p>
  
  <p>xml_2.xml(property xml)</p>
  
  <pre><code>&lt;prop&gt;
         &lt;lblname&gt;Name&lt;/lblname&gt;
         &lt;lbltitle&gt;Title&lt;/lbltitle&gt;
  &lt;/prop&gt;
  </code></pre>
  
  <p>And my xsl is </p>
  
  <p>dispaly.xsl</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;!DOCTYPE xsl:stylesheet [&lt;!ENTITY nbsp "&amp;#xa0;"&gt;&lt;!ENTITY bull "&amp;#x2022;"&gt;]&gt;
   &lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:template match="/"&gt;
      &lt;table width="100%" border="0" cellspacing="0" cellpadding="3" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;"&gt;
          &lt;tr&gt;
              &lt;td colspan="2"&gt;&lt;xsl:value-of select="prop/lbltitle" /&gt;&lt;/td&gt;
              &lt;td width="1"&gt;&lt;xsl:value-of select="prop/lblname" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan="2"&gt;&lt;xsl:value-of select="data/title" /&gt;&lt;/td&gt;
              &lt;td width="1"&gt;&lt;xsl:value-of select="data/namee" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
        &lt;/table&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p> </p>
  
  <p>What I need is using java make transform this in to html file and here is the sample code I used for single xml file, </p>
  
  <p>Java sample code</p>
  
  <pre><code>TransformerFactory tFactory = TransformerFactory.newInstance();
              StreamSource stylesource = new StreamSource(stylesheet);
              Transformer transformer = tFactory.newTransformer(stylesource);
  
              DOMSource source = new DOMSource(document);
  
              Writer outWriter = new StringWriter();
              StreamResult result = new StreamResult(outWriter);
              transformer.transform(source, result);
  </code></pre>
  
  <p><strong>What I need is using java make transform this in to html file and here is the sample code I used for single xml file,</strong> </p>