diff options
author | randomdan <randomdan@localhost> | 2011-01-26 10:44:44 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-01-26 10:44:44 +0000 |
commit | cd5fa4217bb418886ecc3f7741736d8baaced11e (patch) | |
tree | 36e7feba874cfde7270a505dbde3174c80d7793d | |
parent | Centralise the ICE splicer (diff) | |
download | gentoobrowse-cd5fa4217bb418886ecc3f7741736d8baaced11e.tar.bz2 gentoobrowse-cd5fa4217bb418886ecc3f7741736d8baaced11e.tar.xz gentoobrowse-cd5fa4217bb418886ecc3f7741736d8baaced11e.zip |
Remove hacks in bug import XSLT that made it work with a buggy version of fileRows
-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> |