diff options
Diffstat (limited to 'gentoobrowse/xslt/use.xslt')
-rw-r--r-- | gentoobrowse/xslt/use.xslt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gentoobrowse/xslt/use.xslt b/gentoobrowse/xslt/use.xslt new file mode 100644 index 0000000..3bd2780 --- /dev/null +++ b/gentoobrowse/xslt/use.xslt @@ -0,0 +1,25 @@ +<?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" + 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> + </xsl:template> + <xsl:template name="content"> + <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> + </xsl:template> +</xsl:stylesheet> + |