<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="html" encoding="iso-8859-1" indent="yes" />
 <xsl:template match="/*">
  <html>
   <head>
    <title><xsl:value-of select="@title" /></title>
   </head>
   <body>
    <h1><xsl:value-of select="@title" /></h1>
    <xsl:if test="galleria">
     <h2>Galerias</h2>
     <ol>
     <xsl:for-each select="galleria">
      <li><a href="{@href}"><xsl:value-of select="@title" /></a></li>
     </xsl:for-each>
     </ol>
    </xsl:if>
    <xsl:if test="image">
     <h2>Imagens</h2>
     <ol>
     <xsl:for-each select="image">
      <li><img src="{@name}" alt="{@comment}" /></li>
     </xsl:for-each>
     </ol>
    </xsl:if>
   </body>
  </html>
 </xsl:template>
</xsl:stylesheet>

