summaryrefslogtreecommitdiff
path: root/tests/XSLTMark/html.xsl
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-04-02 15:13:28 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-04-02 15:13:28 +0000
commitfb0a57cf03b7b62f811b7c3f5dc1347d66eb0ddd (patch)
treeeb7c116af7d1ee3e8f172e41c24c282972678f40 /tests/XSLTMark/html.xsl
parent8bbd8700b893376dbbd00962875f16a8ddf8e244 (diff)
downloadlibxslt-fb0a57cf03b7b62f811b7c3f5dc1347d66eb0ddd.tar.gz
libxslt-fb0a57cf03b7b62f811b7c3f5dc1347d66eb0ddd.tar.bz2
libxslt-fb0a57cf03b7b62f811b7c3f5dc1347d66eb0ddd.zip
Jumbo patch, extended regression tests and fixed regression results:
- configure.in tests/Makefile.am tests/XSLTMark/* tests/multiple: added the XSLTMark in the regression tests as well as multiple output test from Ankh - libxslt/functions.c libxslt/keys.c libxslt/transform.c libxslt/variables.c libxslt/xsltutils.c: applied William M. Brack patches and fixed a memory leak - tests/docbook/result/html/*.html : updated the results after William's patch - tests/xmlspec/REC-xml-20001006-review.html tests/xmlspec/REC-xml-20001006.html: libxml now don't invent an HTML doctype when serializing HTML result, but adds the encoding in ALT Daniel
Diffstat (limited to 'tests/XSLTMark/html.xsl')
-rw-r--r--tests/XSLTMark/html.xsl44
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/XSLTMark/html.xsl b/tests/XSLTMark/html.xsl
new file mode 100644
index 00000000..13b42c60
--- /dev/null
+++ b/tests/XSLTMark/html.xsl
@@ -0,0 +1,44 @@
+
+<html xsl:version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+lang="en">
+<head>
+<title>Sales Results By Division</title>
+</head>
+<body>
+<table border="1">
+<tr>
+<th>Division</th>
+<th>Revenue</th>
+<th>Growth</th>
+<th>Bonus</th>
+</tr>
+<xsl:for-each select="sales/division">
+<!-- order the result by revenue -->
+<xsl:sort select="revenue"
+data-type="number"
+order="descending"/>
+<tr>
+<td>
+<em><xsl:value-of select="@id"/></em>
+</td>
+<td>
+<xsl:value-of select="revenue"/>
+</td>
+<td>
+<!-- highlight negative growth in red -->
+<xsl:if test="growth &lt; 0">
+<xsl:attribute name="style">
+<xsl:text>color:red</xsl:text>
+</xsl:attribute>
+</xsl:if>
+<xsl:value-of select="growth"/>
+</td>
+<td>
+<xsl:value-of select="bonus"/>
+</td>
+</tr>
+</xsl:for-each>
+</table>
+</body>
+</html>