title: Displaying Date as DD-MM-YYYY within XSLT/XML
body: <p>Been trying to format the text to display as DD-MM-YYYY when pulled from XML to XSLT 1.0, since I know it has to be laid out as YYYY-MM-DD within XSD/XML when using xs:date which what I have used.</p>
  
  <p>Here is the code I am working working on, Any advice on how I should display this?</p>
  
  <p><strong>XML</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;events xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="events.xsd"&gt;
    &lt;venue id="01" 
           vtitle="ExCeL Exhibition Centre" 
           location="London" 
           telephone="0844 448 7600"&gt;
     &lt;event name="Doctor Who 50th Celebration" date="2013-10-22"&gt;
      &lt;image&gt;images/doctor50.jpg&lt;/image&gt;&lt;attribute&gt;Doctor Who Event&lt;/attribute&gt;
      &lt;description&gt;A 50th Anniversary musical bonanza for Doctor Who.&lt;/description&gt;
      &lt;ticket_price type="adult" status="available"&gt;&amp;#163;25.00&lt;/ticket_price&gt;
      &lt;ticket_price type="child" status="none"&gt;&amp;#163;11.00&lt;/ticket_price&gt;
      &lt;ticket_price type="junior" status="available"&gt;&amp;#163;0.00&lt;/ticket_price&gt;
      &lt;email&gt;info@roundhouselondon.com&lt;/email&gt;
  &lt;/event&gt;
  &lt;/venue&gt;
  </code></pre>
  
  <p><strong>XSD</strong></p>
  
  <pre><code>&lt;xs:attribute name="date" type="xs:date"/&gt;
  </code></pre>
  
  <p><strong>XSLT</strong></p>
  
  <pre><code>&lt;xsl:element name="date"&gt;&lt;xsl:value-of select="@date"/&gt;&lt;/xsl:element&gt;
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;date&gt;2013-10-22&lt;/date&gt;
  </code></pre>