First cut. Distintly raw around the edges:
* Assumes it will be running in /home/ali/wk/slashem/web.scripts
* Assumes cache directory will be in topdir
* No build system (simple compiling and linking against libxml2)
* No configure system (eg., tagsoup)
* Output XML untested
* Doesn't set bugzilla maintainer or exporter
* Handling of artifact priorities and resolution is suspect
3 <!-- This stylesheet does some post-processing on attachments. -->
5 <xsl:stylesheet version="1.0"
6 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
8 <xsl:template match="attachment">
9 <!-- Avoid xsl:copy so that any attributes (including xml:base) are lost -->
11 <xsl:attribute name="ispatch">
12 <xsl:value-of select="@ispatch"/>
14 <xsl:attribute name="isobsolete">
15 <xsl:value-of select="isobsolete"/>
17 <xsl:apply-templates/>
21 <xsl:template match="attachment/isobsolete"/>
23 <xsl:template match="attachment/desc[normalize-space(.)='']">
25 <xsl:value-of select="../filename"/>
29 <xsl:template match="*">
31 <xsl:for-each select="@*">
34 <xsl:apply-templates/>