diff options
Diffstat (limited to 'gentoobrowse/xslt/category.xslt')
-rw-r--r-- | gentoobrowse/xslt/category.xslt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gentoobrowse/xslt/category.xslt b/gentoobrowse/xslt/category.xslt new file mode 100644 index 0000000..e6fd355 --- /dev/null +++ b/gentoobrowse/xslt/category.xslt @@ -0,0 +1,24 @@ +<?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="xml" media-type="text/html" indent="yes" + doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" + doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" /> + <xsl:template name="head"> + <title><xsl:value-of select="/gentoo/project2:uriElems/project2:uriElem[2]" /> Package List - Gentoo Browse</title> + <meta name="description"> + <xsl:attribute name="content">Complete list of Gentoo Linux packages in the <xsl:value-of select="/gentoo/project2:uriElems/project2:uriElem[2]" /> category</xsl:attribute> + </meta> + <link rel="contents" href="/categories" /> + </xsl:template> + <xsl:template name="content"> + <xsl:apply-templates select="/gentoo/packages" /> + </xsl:template> + <xsl:template match="/gentoo/packages"> + <h2>Packages</h2> + <ul> + <xsl:apply-templates select="/gentoo/packages/package" /> + </ul> + </xsl:template> +</xsl:stylesheet> |