title: Converting folder of XML files to folder of HTML files
body: <p>I have a folder of several hundred XML files that I would like to convert into a folder of HTML files. I've created an XSLT that works in w3schools.com's XSLT tester, but I'm not sure how to apply that stylesheet across hundreds of XML documents. My XML looks like this (and the only nodes I'm interested in are title, author, and lyrics):</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;song xmlns="http://openlyrics.info/namespace/2009/song" version="0.8" createdIn="OpenLP     2.0.1" modifiedIn="OpenLP 2.0.1" modifiedDate="2012-03-14T02:21:52"&gt;
    &lt;properties&gt;
      &lt;titles&gt;
        &lt;title&gt;Amazing Grace&lt;/title&gt;
      &lt;/titles&gt;
      &lt;authors&gt;
        &lt;author&gt;John Newton&lt;/author&gt;
      &lt;/authors&gt;
    &lt;/properties&gt;
    &lt;lyrics&gt;
      &lt;verse name="v1"&gt;
        &lt;lines&gt;Amazing grace, how sweet the sound&lt;br/&gt;That saved a wretch like me&lt;br/&gt;I once was lost, but now am found&lt;br/&gt;Was blind but now I see&lt;/lines&gt;
      &lt;/verse&gt;
  </code></pre>
  
  <p>A couple questions about this:</p>
  
  <p>1) Might it be better to use XQuery since I'm only interested in extracting a few lines per XML file?</p>
  
  <p>2) Regardless of XSLT/XQuery, how can I implement a solution that converts a folder of XML files (without manually editing each one to call upon the XSL stylesheet)? I'm running OS X 10.8.4.</p>
  
  <p>Thanks in advance.</p>