xslt/packages.xsl
author Alex Viskovatoff <herzen@imap.cc>
Sun, 15 Jan 2012 22:44:10 +0000
changeset 24 14fc6fd0ac2d
permissions -rw-r--r--
xslt/packages.xsl: add style sheet contributed by Thomas Wagner, which creates a "shell script and human parsable" list of packages from packages.xml. packages.xml: add leafpad

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:output method="text"/>

<xsl:template match="/">
<!-- <xsl:apply-templates select="pkgs/pkg"/> -->
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="pkg">

 <xsl:value-of select="name"/>
 <xsl:text>:</xsl:text>

 <xsl:value-of select="ips_package_name"/>
 <xsl:text>:</xsl:text>

 <xsl:value-of select="group"/>
 <xsl:text>:</xsl:text>
 <xsl:value-of select="summary"/>
 <xsl:text>:</xsl:text>
 <xsl:text>&#xA;</xsl:text>
</xsl:template>

</xsl:stylesheet>