Ukázka výchozího jmenného prostoru pro XPath

Příklad 14. atom2html-vychozi-ns.xsl

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xpath-default-namespace="http://www.w3.org/2005/Atom"
                version="2.0">

<xsl:output method="html" encoding="utf-8"/>
  
<xsl:template match="/">
  <html>
    <head>
      <title><xsl:value-of select="/feed/title"/></title>
    </head>
    <body>
      <h1><xsl:value-of select="/feed/title"/></h1>

      <xsl:for-each select="/feed/entry">
        <a href="{link[not(@rel) or @rel='alternate'][1]/@href}">
          <xsl:value-of select="title"/>
        </a>
        <br/>
      </xsl:for-each>
    </body>
  </html>    
</xsl:template>

</xsl:stylesheet>