diff options
-rw-r--r-- | gentoobrowse/console/bugs.xslt | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gentoobrowse/console/bugs.xslt b/gentoobrowse/console/bugs.xslt index f492be1..a084a78 100644 --- a/gentoobrowse/console/bugs.xslt +++ b/gentoobrowse/console/bugs.xslt @@ -1,12 +1,14 @@ <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:x="http://www.w3.org/1999/xhtml" - xmlns:str="http://exslt.org/strings" extension-element-prefixes="str"> - <xsl:output encoding="utf-8" method="text" media-type="text/csv" indent="no"/> - <xsl:template match="/x:html">bug_id,summary,status,severity, - <xsl:apply-templates select="/x:html/x:body/x:div/x:ul/x:li/x:a" /> - </xsl:template> - <xsl:template match="x:li/x:a"> - <xsl:value-of select="substring-before(substring-after(.,'Bug:'),' ')" />,"<xsl:value-of select="str:replace(x:em,'"','""')" />",<xsl:value-of select="substring-before(substring-after(.,'status:'),' ')" />,<xsl:value-of select="substring-after(.,'severity:')" />, - </xsl:template> +xmlns:str="http://exslt.org/strings" extension-element-prefixes="str"> +<xsl:output encoding="utf-8" method="text" media-type="text/csv" indent="no"/> +<xsl:template match="/x:html">bug_id,summary,status,severity +<xsl:apply-templates select="/x:html/x:body/x:div/x:ul/x:li/x:a" /> +</xsl:template> +<xsl:template match="x:li/x:a"> +<xsl:value-of select="substring-before(substring-after(.,'Bug:'),' ')" />,"<xsl:value-of select="str:replace(x:em,'"','""')" />",<xsl:value-of select="substring-before(substring-after(.,'status:'),' ')" />,<xsl:value-of select="substring-after(.,'severity:')" /> +<xsl:text> +</xsl:text> +</xsl:template> </xsl:stylesheet> |