diff options
Diffstat (limited to 'gentoobrowse/xslt/use.xslt')
-rw-r--r-- | gentoobrowse/xslt/use.xslt | 52 |
1 files changed, 39 insertions, 13 deletions
diff --git a/gentoobrowse/xslt/use.xslt b/gentoobrowse/xslt/use.xslt index 3bd2780..3ad72fa 100644 --- a/gentoobrowse/xslt/use.xslt +++ b/gentoobrowse/xslt/use.xslt @@ -1,25 +1,51 @@ <?xml version="1.0" encoding="UTF-8" ?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:project2="http://project2.randomdan.homeip.net" exclude-result-prefixes="project2" > <xsl:import href="base.xslt" /> <xsl:output encoding="utf-8" method="html" media-type="text/html" indent="yes" /> + <xsl:template name="head"> - <title>Packages with the <xsl:value-of select="/gentoo/project2:uriElems/uriElem[2]" /> USE flag - Gentoo Browse</title> - <meta name="description"> - <xsl:attribute name="content">Packages with the <xsl:value-of select="/gentoo/project2:uriElems/uriElem[2]" /> USE flag</xsl:attribute> - </meta> + <title>Packages with the <xsl:value-of select="/gentoo/project2:uriElems/uriElem[2]" /> USE flag · Gentoo Browse</title> + <meta name="description"> + <xsl:attribute name="content">Packages with the <xsl:value-of select="/gentoo/project2:uriElems/uriElem[2]" /> USE flag</xsl:attribute> + </meta> + </xsl:template> + + <xsl:template name="header"> + <h1>Packages with the <xsl:value-of select="/gentoo/project2:uriElems/uriElem[2]" /> USE flag</h1> + <xsl:if test="/gentoo/global/use"> + <p class="lead">Global definition: <xsl:value-of select="/gentoo/global/use/description" />.</p> + </xsl:if> </xsl:template> + <xsl:template name="content"> - <xsl:apply-templates select="/gentoo/packages" /> + <xsl:apply-templates select="/gentoo/packages" /> </xsl:template> + <xsl:template match="/gentoo/packages"> - <h2>Packages with the <xsl:value-of select="/gentoo/project2:uriElems/uriElem[2]" /> USE flag</h2> - <xsl:if test="/gentoo/global/use"> - <p>Global definition: <xsl:value-of select="/gentoo/global/use/description" />.</p> - </xsl:if> - <ul> - <xsl:apply-templates select="/gentoo/packages/package" mode="withuse" /> - </ul> + <div class="span3 bs-docs-sidebar"> + <ul class="nav nav-list bs-docs-sidenav"> + <xsl:for-each select="categories/value"> + <li> + <a> + <xsl:attribute name="href">#<xsl:value-of select="." /></xsl:attribute> + <i class="icon-chevron-right"></i> <xsl:value-of select="." /> + </a> + </li> + </xsl:for-each> + </ul> + </div> + <div class="span9"> + <xsl:for-each select="categories/value"> + <section> + <xsl:attribute name="id"><xsl:value-of select="." /></xsl:attribute> + <h2 class="page-header"> + <xsl:value-of select="." /> + </h2> + <xsl:apply-templates select="/gentoo/packages/package[catname = current()/.]" /> + </section> + </xsl:for-each> + </div> </xsl:template> </xsl:stylesheet> |