title: Revers order of XML dated programs
body: <p>I was reading through he use of XSLT to reverse the order of this podcast xml file and create a new one in reverse date order.  I get the concept but dont understand how to perform this and where to place the xlst code for the reversing of this document.</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;rss version="2.0"  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom"&gt;
  &lt;channel&gt;
    &lt;title&gt;FOOD &amp;amp; WINE with CHEF JAMIE GWEN&lt;/title&gt;
    &lt;link&gt;http://www.chefjamie.com/&lt;/link&gt;
    &lt;language&gt;en-us&lt;/language&gt;
    &lt;copyright&gt;Copyright &amp;#xA9;Tastebud Entertainment, Inc. 2018&lt;/copyright&gt;
    &lt;itunes:subtitle&gt;Delicious conversation every Sunday about food and wine&lt;/itunes:subtitle&gt;
    &lt;itunes:author&gt;Chef Jamie Gwen&lt;/itunes:author&gt;
    &lt;atom:link href="http://chefjamie.com/media/podcasts/Food-Wine-Podcasts/ChefJamie_podcast2.xml" rel="self" type="application/rss+xml" /&gt;
    &lt;webMaster&gt;johnm@splithopsbrewing.com (John Merlino)&lt;/webMaster&gt;
    &lt;itunes:summary&gt;Syndicated on 70 Plus Stations across the United States and heard live every Sunday!&lt;/itunes:summary&gt;
    &lt;description&gt;Explore the culinary world with Jamie and meet top chefs, master sommeliers, cookbook authors and artisan food makers. Two hours of delicious conversation weekly &amp;#33;&lt;/description&gt;
    &lt;itunes:explicit&gt;No&lt;/itunes:explicit&gt;
    &lt;itunes:image href="http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/chefJamie_PodCast_image.jpg" /&gt;
    &lt;itunes:name&gt;Chef Jamie Gwen&lt;/itunes:name&gt;
    &lt;itunes:email&gt;jamie@chefjamie.com&lt;/itunes:email&gt;
    &lt;itunes:owner&gt;Chef Jamie Gwen&lt;/itunes:owner&gt;
    &lt;itunes:category text="Arts &amp;amp; Food"/&gt; 
    &lt;itunes:category text="Arts"/&gt;
  
  &lt;item&gt;
  &lt;title&gt;Jan 8th, 2012&lt;/title&gt;
  &lt;enclosure url="http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/1-8-12.mp3" length="145178121" type="audio/mp3" /&gt;
  &lt;guid&gt;http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/1-8-12.mp3&lt;/guid&gt;
  &lt;pubDate&gt;Sun, 08 Jan 2012 13:00:00 GMT&lt;/pubDate&gt;
  &lt;category&gt;Podcasts&lt;/category&gt;
  &lt;itunes:author&gt;Chef Jamie Gwen&lt;/itunes:author&gt;
  &lt;itunes:subtitle&gt;Wine, Dine, &amp;amp; Balls&lt;/itunes:subtitle&gt;
  &lt;itunes:summary&gt;Happy New Year 2012.We are LIVE ON THE RADIO Daniel Holtzman of The Meatball Shop NYC shares melt-in-your mouth recipes for Meatballs of every kind. Sophie Gayot of www dot gayot dot com with highlights on Where to Dine in 2012.Jeff Scott, Author of Notes from a Kitchen with insight into the Culinary World.J. Lohr Winemaker Steve Peck fills our glasses with Cabernet and Pinot Noir&lt;/itunes:summary&gt;
  &lt;itunes:explicit&gt;No&lt;/itunes:explicit&gt;
  &lt;itunes:duration&gt;1:15&lt;/itunes:duration&gt;
  &lt;itunes:keywords&gt;food, cooking, wine, talk, cooking podcast, recipe podcast, diy cooking, learn to cook, learn new recipes, recipes, holiday, Christmas,&lt;/itunes:keywords&gt;
  &lt;/item&gt;
  
  &lt;item&gt;
  &lt;title&gt;Jan  15th, 2012&lt;/title&gt;
  &lt;enclosure url="http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/1-15-12.mp3" length="47757770" type="audio/mp3" /&gt;
  &lt;guid&gt;http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/1-15-12.mp3&lt;/guid&gt;
  &lt;pubDate&gt;Sun, 15 Jan 2012 13:00:00 GMT&lt;/pubDate&gt;
  &lt;category&gt;Podcasts&lt;/category&gt;
  &lt;itunes:author&gt;Chef Jamie Gwen&lt;/itunes:author&gt;
  &lt;itunes:subtitle&gt;Family, Techniques, and Fitness&lt;/itunes:subtitle&gt;
  &lt;itunes:summary&gt;New Orleans Chef John Besh shares his Family Table. Editor Jack Bishop of Cooks Illustrated Talks about the Techniques of Home Cooking. Karen Page and Andrew Donenburg discuss their newest book on Food and Wine. Fitness Expert Lisa Lynn creates your Workout Strategy for 2012 &lt;/itunes:summary&gt;
  &lt;itunes:explicit&gt;No&lt;/itunes:explicit&gt;
  &lt;itunes:duration&gt;49:45&lt;/itunes:duration&gt;
  &lt;itunes:keywords&gt;food, cooking, wine, talk, cooking podcast, recipe podcast, diy cooking, learn to cook, learn new recipes, recipes, holiday, christmas,&lt;/itunes:keywords&gt;
  &lt;/item&gt;
  
  &lt;item&gt;
  &lt;title&gt;Jan  22nd, 2012&lt;/title&gt;
  &lt;enclosure url="http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/1-22-12.mp3" length="18924125" type="audio/mp3" /&gt;
  &lt;guid&gt;http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/1-22-12.mp3&lt;/guid&gt;
  &lt;pubDate&gt;Sun, 22 Jan 2012 13:00:00 GMT&lt;/pubDate&gt;
  &lt;category&gt;Podcasts&lt;/category&gt;
  &lt;itunes:author&gt;Chef Jamie Gwen&lt;/itunes:author&gt;
  &lt;itunes:subtitle&gt;Produce, Asian Meals, and Ground Meat&lt;/itunes:subtitle&gt;
  &lt;itunes:summary&gt;Jamie and Lana Review the Top 10 Best Finds at The Fancy Food Show. Southern Chef Hugh Acheson on Seasonal Produce. Paul Martins American Grill Partner Brian Bennett shares his commitment to Local, Sustainable and Organic. Author Nina Simonds celebrates Chinese New Year with her "Simple Asian Meals". GM and Master Sommelier Michael Jordan LIVE from The Ranch! Jim Villas highlights the best recipes using Ground Meat for Superbowl! From his new cookbook "From The Ground Up" &lt;/itunes:summary&gt;
  &lt;itunes:explicit&gt;No&lt;/itunes:explicit&gt;
  &lt;itunes:duration&gt;01:18:51&lt;/itunes:duration&gt;
  &lt;itunes:keywords&gt;food, cooking, wine, talk, cooking podcast, recipe podcast, diy cooking, learn to cook, learn new recipes, recipes, holiday, Christmas,&lt;/itunes:keywords&gt;
  &lt;/item&gt;
  
  &lt;item&gt;
  &lt;title&gt;Jan  29th, 2012&lt;/title&gt;
  &lt;enclosure url="http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/1-29-12.mp3" length="161118248" type="audio/mp3" /&gt;
  &lt;guid&gt;http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/1-29-12.mp3&lt;/guid&gt;
  &lt;pubDate&gt;Sun, 29 Jan 2012 13:00:00 GMT&lt;/pubDate&gt;
  &lt;category&gt;Podcasts&lt;/category&gt;
  &lt;itunes:author&gt;Chef Jamie Gwen&lt;/itunes:author&gt;
  &lt;itunes:subtitle&gt;Superbowl of Food, Salmon, Spices, and BBQ&lt;/itunes:subtitle&gt;
  &lt;itunes:summary&gt;Gridiron Grub: Lana and Jamie dish on the Superbowl of Food. Jeff Hall of Chapter One in Santa Ana highlights the Newest Artisan Spirits On The Market. Fish Farmer Stewart Hawthorne of Skuna Bay Salmon on Craft Raised Salmon. Chef Mark Garcia pumps of the Flavor of our dishes with the Flavor Forecast 2012 from McCormick Spices. Rick Browne,the King of BBQ, Smokes Us Out!  &lt;/itunes:summary&gt;
  &lt;itunes:explicit&gt;No&lt;/itunes:explicit&gt;
  &lt;itunes:duration&gt;01:23:55&lt;/itunes:duration&gt;
  &lt;itunes:keywords&gt;food, cooking, Superbowl, talk, cooking podcast, recipe podcast, diy cooking, learn to cook, learn new recipes, recipes, bbq, spices&lt;/itunes:keywords&gt;
  &lt;/item&gt;
  
  &lt;item&gt;
  &lt;title&gt;Feb 5th, 2012&lt;/title&gt;
  &lt;enclosure url="http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/2-5-12.mp3" length="80225176" type="audio/mp3" /&gt;
  &lt;guid&gt;http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/2-5-12.mp3&lt;/guid&gt;
  &lt;pubDate&gt;Sun, 05 Feb 2012 13:00:00 GMT&lt;/pubDate&gt;
  &lt;category&gt;Podcasts&lt;/category&gt;
  &lt;itunes:author&gt;Chef Jamie Gwen&lt;/itunes:author&gt;
  &lt;itunes:subtitle&gt;Superbowl Sunday Show&lt;/itunes:subtitle&gt;
  &lt;itunes:summary&gt;Ideas and Recipes for a Winning Superbowl Party Beer Truffles. Were having a party with PJ Clarkes Chef Johnny Church He is dishing on burger blends, oysters and the best fries. Arizona Biltmores Exec Chef Todd Sicolo on Wrights Restaurant and Big Game Food. Southern Chef Hugh Acheson shares his Modern Southern Style. Rick Rodgers with Sparkling Cocktail Inspiration  &lt;/itunes:summary&gt;
  &lt;itunes:explicit&gt;No&lt;/itunes:explicit&gt;
  &lt;itunes:duration&gt;01:23:34&lt;/itunes:duration&gt;
  &lt;itunes:keywords&gt;food,cooking,superbowl,talk,cooking podcast,recipe podcast,diycooking,beer,truffles,superbowl&lt;/itunes:keywords&gt;
  &lt;/item&gt;
  
  &lt;item&gt;
  &lt;title&gt;Feb 12th, 2012&lt;/title&gt;
  &lt;enclosure url="http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/2-12-12.mp3" length="81886563" type="audio/mp3" /&gt;
  &lt;guid&gt;http://www.chefjamie.com/media/podcasts/Food-Wine-Podcasts/2-12-12.mp3&lt;/guid&gt;
  &lt;pubDate&gt;Sun, 12 Feb 2012 13:00:00 GMT&lt;/pubDate&gt;
  &lt;category&gt;Podcasts&lt;/category&gt;
  &lt;itunes:author&gt;Chef Jamie Gwen&lt;/itunes:author&gt;
  &lt;itunes:subtitle&gt;The Love Show&lt;/itunes:subtitle&gt;
  &lt;itunes:summary&gt;Spago Pastry Chef Sherry Yard gets us in the mood for love with Valentines Day Desserts. Chef Bernard Guillas of the Marine Room shares Recipes for Romance. Tanya Zuckerbrot Registered Dietitian and the creator of The F-Factor Diet divulges the Foods that you can Add To Your Diet to Lose Weight. Bake, Decorate, Celebrate! Wilton Baking Schools Nancy Siler gives us sweet Valentine Inspiration &lt;/itunes:summary&gt;
  &lt;itunes:explicit&gt;No&lt;/itunes:explicit&gt;
  &lt;itunes:duration&gt;01:25:18&lt;/itunes:duration&gt;
  &lt;itunes:keywords&gt;food, cooking, superbowl, talk, cooking podcast, recipe podcast, diy cooking, learn to cook, learn new recipes, recipes, sherry yard, romance, love&lt;/itunes:keywords&gt;
  &lt;/item&gt;
  &lt;/channel&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <p>Would like to take the programs and list them on another fresh xml document that can be hit showing the most recent show first.</p>