You include the xsl file inside the xml, then just request the XML file and the xsl (or xslt) will give the layout of it.
Here's an example that I created way back when I was thinking about moving from an HTML template to an xml+xsl stylesheet. Didn't go this route; but, it works (for the most part, some minor css issues).
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="ilcpj.xsl"?>
<page>
<title>ICPJ : ICPJ</title>
<reglog>
<link>
<url>http://www.ilcpj.org/register/</url>
<label>Register</label>
</link>
<link>
<url>http://www.ilcpj.org/login/</url>
<label>Login</label>
</link>
</reglog>
<header>
<image>
<url>andrewLehman/ilcpj/images/style_assets/header.jpg</url>
<alt>ILCPJ</alt>
<style>border:none</style>
</image>
</header>
<navigation>
<item>
<url>http://www.ilcpj.org/</url>
<label>Home</label>
</item>
<item>
<url>http://www.ilcpj.org/actions</url>
<label>Actions</label>
</item>
<item>
<url>http://www.ilcpj.org/calendar</url>
<label>Calendar</label>
</item>
<item>
<url>http://www.ilcpj.org/petitions</url>
<label>Petitions</label>
</item>
<item>
<url>http://www.ilcpj.org/boycotts</url>
<label>Boycotts</label>
</item>
<item>
<url>http://www.ilcpj.org/members</url>
<label>Members</label>
</item>
<item>
<url>http://www.ilcpj.org/about-us</url>
<label>About Us</label>
</item>
<item>
<url>http://www.ilcpj.org/resources</url>
<label>Resources</label>
</item>
<item>
<url>http://www.ilcpj.org/forums</url>
<label>Forums</label>
</item>
<item>
<url>http://www.ilcpj.org/contact</url>
<label>Contact</label>
</item>
</navigation>
<pageTitle>ICPJ</pageTitle>
<recentActions total="5">
<title>Recent Actions</title>
<action>
<url>http://www.ilcpj.org/actions/details/?id=356</url>
<label>FILM: War Made Easy: How Presidents ...</label>
</action>
<action>
<url>http://www.ilcpj.org/actions/details/?id=353</url>
<label>BoycottChevron.US - Stand With Burma!</label>
</action>
<action>
<url>http://www.ilcpj.org/actions/details/?id=352</url>
<label>STOP Blackwater Letter Campaign</label>
</action>
<action>
<url>http://www.ilcpj.org/actions/details/?id=350</url>
<label>CANTV Veterans call in show</label>
</action>
<action>
<url>http://www.ilcpj.org/actions/details/?id=349</url>
<label>SODaPOP</label>
</action>
</recentActions>
<newMembers total="2">
<title>New Members</title>
<member>
<url>http://www.ilcpj.org/members?org-id=138</url>
<label>Chicago Media Action</label>
</member>
<member>
<url>http://www.ilcpj.org/members?org-id=139</url>
<label>Chicago Committee to Defend the Bill of Rights</label>
</member>
</newMembers>
<announcements>
<title>Announcements:</title>
<announcement>
<title>Oct 27 Speakers Listing</title>
<description><p>Who will be speaking at the Oct 27 Rallies in Chicago?</p>
<p>Confirmed so far: Rev. Ra Chaka, African-American Alliance for Peace & Justice, Project Organizer; Rep. John Conyers, Detroit, MI, Congressman; Rep. Danny Davis, 7th CD, IL, Congressman; Joan Davis, VVAW, Member; Rev. Leon Finney, The Woodlawn Organization, President; Dennis Gannon, Chicago Federation of Labor, President; Sheilah Garland-Olaniran, National Nurses Organizing Committee, Midwest Collective Bargaining Coordinator; Rep. Luis Gutierrez, 4th CD, IL, Congressman; Stacey Hafley, Military Families Speak Out-Midwest (MO, KS, OK, SIL), Chairperson; Rick Harris, Amalgamated Transit Union Local 308, President; Raed Jarrar, Iraqi Political Analyst, Iraq Project Director, AFSC; Emma Lozano, Familias Unidas, Centro Sin Fronteras, President; George Martin, United for Peace & Justice, National Co-Chair; Michael McPhearson, Veterans for Peace, Executive Director; Joe Moore, 49th Ward, Alderman; Imam Malik Mujahid, Council of Islamic Organizations of Greater Chicago, Chairperson; Jorge Mujica, March 10 Immigration Rights Mobilization, Organizer; Rick Munoz, 22nd Ward, Alderman; David Newby, AFL-CIO State Council, Wisconsin, President; Camille Odeh, Southwest Youth Collaborative, Executive Director; Jorge Ramierez, Chicago Federation of Labor, Secretary-Treasurer; Cynthia Rodriquez, SEIU Local 73, Vice-President; Lynn Talbott, UNITE-HERE, International Vice-President, Rep. Jan Schakowsky, 9th CD, IL, Congressman.</p>
<p>There are a few not confirmed yet, mostly women, and, naturally, there may be last-minute adjustments. But we think we have a terrific lineup for the day. --CarlD</p>
</description>
<posted>Posted on 10/19/07 by carld717</posted>
</announcement>
<announcement>
<title>Greg Palast Speaks at the Rosen Vamily celebration</title>
<description><![CDATA[
<h3>Sunday, October 28, 2007</h3>
<h4>Greg Palast</h4>
<p>BBC journalist, current muckraking gadfly of the American media scene, and author of
<em><strong>The Best Democracy Money Can Buy:</strong> An Investigative Reporter Exposes the Truth about Corporate Cons, Globalization, and High-Finance Fraudsters</em><br />
and his new book,<br />
<em><strong>Armed Madhouse:</strong> From Baghdad to New Orleans</em><br />
will be the keynote speaker when<br />
THE CHICAGO COMMITTEE TO DEFEND THE BILL OF RIGHTS (CCDBR)<br />
honors the contributions to freedom of the remarkable
<strong>Rosen Family</strong></p>
<p>Frank Rosen<br />
Lois Anne Rosen (in memoriam)<br />
Rachel Rosen DeGolia<br />
Rebecca Rosen Balanoff<br />
Carl Rosen</p>
<p>For tickets, information about the event, Greg Palast, and the Rosens, see our website at <a href="http://www.CCDBR.org">http://www.CCDBR.org</a></p>
]]></description>
<posted>Posted on 10/16/07 by dhgo</posted>
</announcement>
</announcements>
<articles>
<article>
<url>http://ilcpj.org/?articleID=57</url>
<label>lights of peace</label>
<description><![CDATA[
<p>“Now it will be necessary to simply hold on, to light the fires of truth here and there, so that eventually the entire structure will collapse.” - Dietrich Bonhoeffer, from prison, 1943</p>
<p>From Jeff Leys of VCNV:
<p>"Giving up on the legislative process is, indeed, the easy route to take. It is the route that ensures that the Iraq war will continue as a war without end.<br />
(See www.vcnv.org or Declaration of Peace for the entire article, which continues below, with background on the Congressional votes that could end the war.)</p>
<p>In early September, General Petraeus will report to Congress on the progress-or lack thereof-that is being made in Iraq. Shortly after, the House will vote on HR 2451 as an amendment to the Iraq - Afghanistan war supplemental spending bill. Next the House will vote on the final version of the $145 billion war supplemental for FY 2008, and send it to the Senate for consideration. It will be a one-two punch vote. It is entirely probable that the final version of the supplemental spending bill will not be publicly available until less than 24 hours prior to the vote (the final version of the supplemental passed in May was not publicly available until the morning of the vote)."</p>
<p>Throughout September antiwar activists will continue to occupy, lobby and rally at Congressional offices. Antiwar voices keep getting heard at Rahm Emanuel's door--again this Saturday. In Springfield a week of Declaration of Peace activities will inspire the rest of us. On September 21st Iraq Moratorium actions include a die-in at noon in Federal Plaza, and a rally later that afternoon at Representative Lipinski's, another war stalwart in Illinois.</p>
<p>Just Foreign Policy and ICPJ Resources have good numbers and facts with which to lobby. This website IS (part of the growing)choir--so consider inspiring the rest of us with stories from your action, and pictures. Light a fire...</p>
]]></description>
</article>
</articles>
<otherArticles>
<title>Other Recent Articles:</title>
<item>
<url>http://www.ilcpj.org/?articleID=56</url>
<label>Resource of the Month: Chaos in Iraq</label>
</item>
<item>
<url>http://www.ilcpj.org/?articleID=55</url>
<label>Aug 11: TIME NOW TO STOP BLACKWATER EXPANSION</label>
</item>
<item>
<url>http://www.ilcpj.org/?articleID=54</url>
<label>Iraqi Union Tour Hits Chicago</label>
</item>
<item>
<url>http://www.ilcpj.org/?articleID=53</url>
<label>Support Free Speech in Dupage Court Case</label>
</item>
<item>
<url>http://www.ilcpj.org/?articleID=52</url>
<label>ICPJ Member Groups March for Peace July 4</label>
</item>
</otherArticles>
</page>