aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_config.xsl
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-05-31 21:28:48 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2013-05-31 21:28:48 -0400
commite126e8887597bf0b813309dd5597b18385223859 (patch)
treef5df55c21715cc9e3437e3929e011f65a9f38b38 /pkg_config.xsl
parent405cc6f84aa386a4451c38e953a8fa36664106e8 (diff)
parentdcccb98d5d9dfbf3f3e9a8a2272324dbc3e67ed8 (diff)
downloadpfsense-packages-e126e8887597bf0b813309dd5597b18385223859.tar.gz
pfsense-packages-e126e8887597bf0b813309dd5597b18385223859.tar.bz2
pfsense-packages-e126e8887597bf0b813309dd5597b18385223859.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'pkg_config.xsl')
-rw-r--r--pkg_config.xsl40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkg_config.xsl b/pkg_config.xsl
new file mode 100644
index 00000000..d5df5626
--- /dev/null
+++ b/pkg_config.xsl
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
+ <xsl:output method="html" encoding="UTF-8" indent="yes"/>
+ <xsl:template match="pfsensepkgs">
+ <html>
+ <head>
+ <title>pfSense Open Source Firewall Distribution - Packages</title>
+ <link rel="shortcut icon" href="http://www.pfsense.org/images/favicon.ico"/>
+
+ <link rel="stylesheet" href="templates/modular_plazza/css/template_css.css" type="text/css"/>
+ <link rel="stylesheet" href="templates/modular_plazza/css/sfish.css" type="text/css"/>
+ </head>
+ <body class="bodies">
+ <h2>pfSense Package list</h2>
+ <xsl:apply-templates/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="packages">
+ <xsl:for-each-group select="package" group-by="category">
+ <h3>
+ Category: <xsl:value-of select="current-grouping-key()"/>
+ </h3>
+ <xsl:for-each select="current-group()">
+ <h4>
+ <xsl:value-of select="name"/>
+ </h4>
+ <span class="version">Version <xsl:value-of select="version"/> </span>
+ <xsl:choose>
+ <xsl:when test="status = 'ALPHA'"><span style="color:red">alpha</span></xsl:when>
+ <xsl:when test="status = 'BETA'"><span style="color:blue">beta</span></xsl:when>
+ <xsl:otherwise><span style="color:green"><xsl:value-of select="status"/></span></xsl:otherwise>
+ </xsl:choose>
+ <br/>
+ <xsl:value-of select="descr" disable-output-escaping="yes"/>
+ </xsl:for-each>
+ </xsl:for-each-group>
+ </xsl:template>
+</xsl:stylesheet>