<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:h="http://iharder.net/xmlizable"
    version="1.0" >


  <xsl:template match="/">
    <html>
      <head>
        <title><xsl:value-of select="name(/*)"/></title>
        <style type="text/css">
          <xsl:comment>
            <![CDATA[

 *       { font-family: Arial, sans-serif }
 li      { padding: 0.5ex; }
 .li_0   { background-color: #FFFFFF; }
 .li_1   { background-color: #FAFAFA; }

            ]]>
          </xsl:comment>
        </style>
      </head>
      <body>
        <xsl:apply-templates />
      </body>
    </html>
  </xsl:template>

 

 <xsl:template match="Bookmark[@type='F']">
  <li>
   <xsl:value-of select="name" />
   <ul>
    <xsl:apply-templates select="Bookmark" />
   </ul>
  </li>
 </xsl:template>




 <xsl:template match="Bookmark[@type='N']">
  <li class="{concat('li_', position() mod 2)}">
   <xsl:element name='a'>
    <xsl:attribute name='href'>
     <xsl:value-of select="url" />
    </xsl:attribute>
    <xsl:value-of select="name" />
   </xsl:element>
   <xsl:if test="Bookmark[@gid]">
    <ul>
     <xsl:apply-templates select="Bookmark" />
    </ul>
   </xsl:if>
  </li>
 </xsl:template>




 <xsl:template match="/Bookmark">
  <ul>
   <xsl:apply-templates select="Bookmark" />
  </ul>
 </xsl:template>





</xsl:stylesheet>