title: How to generate XSLT from XML samples
body: <p>I am looking for a tool for <em>semi-automatic</em> XSLT generation.</p>
  
  <p>Given 2 XML files, source:</p>
  
  <pre><code>&lt;elm&gt;XXX&lt;/elm&gt;
  </code></pre>
  
  <p>and target:</p>
  
  <pre><code>&lt;exx&gt;XXX&lt;/exx&gt;
  </code></pre>
  
  <p>The tool should make the XSLT file, which produces the target from the source.
  Looking at the content, it should identify changes in level, placement, element names etc.
  <em>There is no general solution to this</em>, but I would need simple transformations only.</p>
  
  <p>Possible implementation: </p>
  
  <pre><code>1. scan the source, map XML data "XXX" to element path "elm"
  2. scan the target, map XML data "XXX" to element path "exx"
  3. output target XML structure, output XSLT mapping of "XXX", "elm" -&gt; "exx"
  </code></pre>
  
  <p>In case of conflicts manual intervention is needed. A conflict could be "XXX" in more than on place in source.</p>
  
  <p>It would be nice if the tool was XSD/DTD aware also, for example to do manual "field" mappings.</p>
  
  <p><strong>Edit</strong>: clarification.</p>