Diff of /templates/default.xsl [d1b72b] .. [b99104] Maximize Restore

  Switch to side-by-side view

--- a/templates/default.xsl
+++ b/templates/default.xsl
@@ -11,6 +11,7 @@
 <xsl:include href="news.xsl" />
 <xsl:include href="releases.xsl" />
 <xsl:include href="security.xsl" />
+<xsl:include href="../generated/menu.xsl" />
 
 <xsl:output omit-xml-declaration="yes" method="text" />
 
@@ -77,31 +78,10 @@
 	</div>
 
 	<div id="menu">
-	  <ul>
-	    <xsl:for-each select="../*">
-	      <xsl:if test="(count(@category) = 0) or (@category = $mycategory)">
-		<li>
-		  <xsl:if test="@category = $mycategory">
-		    <xsl:attribute name="class">subpage</xsl:attribute>
-		  </xsl:if>
-		  <a>
-		    <xsl:attribute name="href">
-		      <xsl:choose>
-			<xsl:when test="starts-with (name(), 'page')">
-			  <xsl:text>/</xsl:text>
-			  <xsl:value-of select="./@id" />
-			</xsl:when>
-
-			<xsl:when test="name() = 'link'"><xsl:value-of select="@src" /></xsl:when>
-		      </xsl:choose>
-		    </xsl:attribute>
-
-		    <xsl:value-of select="./@title" />
-		  </a>
-		</li>
-	      </xsl:if>
-	    </xsl:for-each>
-	  </ul>
+	  <xsl:call-template name="xine-menu">
+	    <xsl:with-param name="category" select="$mycategory" />
+	    <xsl:with-param name="id" select="$id" />
+	  </xsl:call-template>
 
 	  <div class="logos">
 	    <a href="http://sourceforge.net/projects/xine">
@@ -150,7 +130,7 @@
     </html>
 </xsl:template>
 
-<xsl:template match="/pages/page">
+<xsl:template match="page">
   <exslt:document href="output/{@id}.xhtml" encoding="UTF-8" method="xml" indent="yes"
 		  standalone="yes" doctype-public="-//W3C//DTD XHTML 1.1//EN"
 		  doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -166,7 +146,7 @@
   </exslt:document>
 </xsl:template>
 
-<xsl:template match="/pages/page-xhtml10-transitional">
+<xsl:template match="page-xhtml10-transitional">
   <exslt:document href="output/{@id}.xhtml" encoding="UTF-8" method="xml" indent="yes"
 		  standalone="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
                     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">