| | |
| | | <?xml version="1.0"?> |
| | | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" |
| | | xmlns:lxslt="http://xml.apache.org/xslt" |
| | | xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils"> |
| | | <xsl:output method="html" indent="yes" encoding="US-ASCII" |
| | | <xsl:output method="html" indent="yes" encoding="UTF-8" |
| | | doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" /> |
| | | <xsl:decimal-format decimal-separator="." grouping-separator="," /> |
| | | <!-- |
| | |
| | | limitations under the License. |
| | | --> |
| | | |
| | | <xsl:param name="TITLE">Unit Test Results.</xsl:param> |
| | | |
| | | <!-- |
| | | |
| | | Sample stylesheet to be used with Ant JUnitReport output. |
| | |
| | | <xsl:template match="testsuites"> |
| | | <html> |
| | | <head> |
| | | <title>Unit Test Results</title> |
| | | <title><xsl:value-of select="$TITLE"/></title> |
| | | <style type="text/css"> |
| | | body { |
| | | font:normal 68% verdana,arial,helvetica; |
| | |
| | | |
| | | <!-- Page HEADER --> |
| | | <xsl:template name="pageHeader"> |
| | | <h1>Unit Test Results</h1> |
| | | <h1><xsl:value-of select="$TITLE"/></h1> |
| | | <table width="100%"> |
| | | <tr> |
| | | <td align="left"></td> |
| | |
| | | --> |
| | | <xsl:template name="br-replace"> |
| | | <xsl:param name="word"/> |
| | | <xsl:value-of disable-output-escaping="yes" select='stringutils:replace(string($word),"
","<br/>")'/> |
| | | <xsl:choose> |
| | | <xsl:when test="contains($word, '
')"> |
| | | <xsl:value-of select="substring-before($word, '
')"/> |
| | | <br/> |
| | | <xsl:call-template name="br-replace"> |
| | | <xsl:with-param name="word" select="substring-after($word, '
')"/> |
| | | </xsl:call-template> |
| | | </xsl:when> |
| | | <xsl:otherwise> |
| | | <xsl:value-of select="$word"/> |
| | | </xsl:otherwise> |
| | | </xsl:choose> |
| | | </xsl:template> |
| | | |
| | | <xsl:template name="display-time"> |