aboutsummaryrefslogtreecommitdiffstats
path: root/src/extras/sysreport/text.xsl
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-08-02 17:35:39 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-08-02 17:35:39 +0000
commitc35084c19b3670d91fbcbe5f45d3c303670ee8c4 (patch)
tree471f0df787c7eef451b3a1814ee9c55ce46b8643 /src/extras/sysreport/text.xsl
parenta9539c47df07cefc72a7c7289916a69141849c94 (diff)
downloadsos-c35084c19b3670d91fbcbe5f45d3c303670ee8c4.tar.gz
somehow i forgot to add extras/sysreport...
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@315 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/extras/sysreport/text.xsl')
-rw-r--r--src/extras/sysreport/text.xsl33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/extras/sysreport/text.xsl b/src/extras/sysreport/text.xsl
new file mode 100644
index 00000000..c381b3a8
--- /dev/null
+++ b/src/extras/sysreport/text.xsl
@@ -0,0 +1,33 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+
+<xsl:output method="text" indent="no"/>
+
+<xsl:template match="array">
+ <xsl:text>[</xsl:text>
+ <xsl:for-each select="data/value">
+ <xsl:apply-templates/>
+ <xsl:if test="following-sibling::value">
+ <xsl:text>, </xsl:text>
+ </xsl:if>
+ </xsl:for-each>
+ <xsl:text>]&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="string">
+ <xsl:value-of select="."/>
+</xsl:template>
+
+<xsl:template match="member">
+ <xsl:value-of select="name"/>
+ <xsl:text>: </xsl:text>
+ <xsl:apply-templates select="value"/>
+ <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="/">
+ <xsl:apply-templates select=".//member"/>
+</xsl:template>
+
+</xsl:stylesheet>