title: What is wrong my XSLT?
body: <p>I want to XML to other format XML so I used XSLT. But tt became a bad result.</p>
  
  <p><strong>XML:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?&gt;
  &lt;catalog&gt;
      &lt;cd&gt;
          &lt;title&gt;Empire Burlesque&lt;/title&gt;
          &lt;artist&gt;Bob Dylan&lt;/artist&gt;
          &lt;country&gt;USA&lt;/country&gt;
          &lt;company&gt;Columbia&lt;/company&gt;
          &lt;price&gt;10.90&lt;/price&gt;
          &lt;year&gt;1985&lt;/year&gt;
      &lt;/cd&gt;
      &lt;cd&gt;
          &lt;title&gt;Hide your heart&lt;/title&gt;
          &lt;artist&gt;Bonnie Tyler&lt;/artist&gt;
          &lt;country&gt;UK&lt;/country&gt;
          &lt;company&gt;CBS Records&lt;/company&gt;
          &lt;price&gt;9.90&lt;/price&gt;
          &lt;year&gt;1988&lt;/year&gt;
      &lt;/cd&gt;
      &lt;cd&gt;
          &lt;title&gt;Greatest Hits&lt;/title&gt;
          &lt;artist&gt;Dolly Parton&lt;/artist&gt;
          &lt;country&gt;USA&lt;/country&gt;
          &lt;company&gt;RCA&lt;/company&gt;
          &lt;price&gt;9.90&lt;/price&gt;
          &lt;year&gt;1982&lt;/year&gt;
      &lt;/cd&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p><strong>XSLT</strong>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:output method="xml" omit-xml-declaration="yes" encoding="utf-8" indent="yes" /&gt;
  &lt;xsl:template match="/"&gt;
      &lt;root&gt;
          &lt;items&gt;
              &lt;xsl:for-each select="catalog/cd"&gt;
                  &lt;item&gt;
                      &lt;xsl:value-of select="artist"/&gt;
                  &lt;/item&gt;
              &lt;/xsl:for-each&gt;
          &lt;/items&gt;
      &lt;/root&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p><strong>Result I want (in browser):</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;root&gt;
      &lt;items&gt;
          &lt;item&gt;Empire Burlesque&lt;/item&gt;
          &lt;item&gt;Hide your heart&lt;/item&gt;
          &lt;item&gt;Greatest Hits&lt;/item&gt;
      &lt;/items&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p><strong>Real result (in browser):</strong></p>
  
  <pre><code>Empire Burlesque Hide your heart Greatest Hits
  </code></pre>
  
  <p>What is wrong my XSLT?</p>