title: XSLT vs. XQuery
body: <p>I am new to those two technologies, I sketched their roles in generating an HTML out of raw XML file as I understood in these steps(Please correct me if I was wrong):</p>
  
  <ol>
  <li>XML data source (database, RSS, ...)</li>
  <li>XQuery (Data manipulation FLWR)</li>
  <li>XSLT (Data representation through templating)</li>
  <li>The resulting XHTML document to be delivered</li>
  </ol>
  
  <p>I am wondering about the technical details of using them, to be specific, here are the questions:</p>
  
  <ul>
  <li>How to implement XQuery in a PHP web server (I am using WAMP suite).</li>
  <li>How can I request .xq page (can I do that directly, or should I use a CGI to do that?)</li>
  <li>How can I pass the resulting XML page from XQuery call to XSLT for templating?</li>
  </ul>
  
  <p>Could you give me some pointers the development environment to create a website using these technologies, thanks.</p>
  
  <p>-- <strong>Update:</strong> I understand now that difference between XQuery and XSLT is a difference in point of view since two different working groups are maintaining them, both will do the job though in different approaches.
  I am using XSLT only for both data operations and representation, I am implementing structured templating approach which is found here <a href="https://stackoverflow.com/questions/167453/xslt-abstractions/167545#167545">XSLT Abstractions</a> in order to organize the work a little bit.</p>