- From: Richard Tobin <richard@inf.ed.ac.uk>
- Date: Fri, 16 Jul 2004 15:40:21 +0100 (BST)
- To: public-xml-core-wg@w3.org
[Resent because of list problem; so you might see this twice.] Here is a trivial dtd for test results, the MT results in that format, an XML file listing the test result files (only 1 so far), and a stylesheet to apply to that file to generate an HTML page displaying the results. The <testresult> elements may have a <note> child explaining why the test failed. I won't have time to do anything more with this before I go away. -- Richard --Apple-Mail-7--75007996 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="testresults.dtd" Content-Disposition: attachment; filename=testresults.dtd <!ELEMENT testresults (testresult*)> <!ATTLIST testresults processor CDATA #REQUIRED> <!ELEMENT testresult (note?)> <!ATTLIST testresult id ID #REQUIRED result (pass|fail|skipped) #REQUIRED> <!ELEMENT note (#PCDATA)> --Apple-Mail-7--75007996 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed --Apple-Mail-7--75007996 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="mt-results.xml" Content-Disposition: attachment; filename=mt-results.xml <!DOCTYPE testresults SYSTEM "testresults.dtd"> <testresults processor="MT XInclude"> <testresult id="imaq-include-xml-01" result="pass"/> <testresult id="imaq-include-xml-02" result="pass"/> <testresult id="imaq-include-xml-03" result="pass"/> <testresult id="imaq-include-xml-04" result="pass"/> <testresult id="imaq-include-xml-05" result="pass"/> <testresult id="imaq-include-xml-06" result="pass"/> <testresult id="FourThought-include-01" result="pass"/> <testresult id="FourThought-include-02" result="pass"/> <testresult id="FourThought-include-03" result="pass"/> <testresult id="FourThought-include-04" result="pass"/> <testresult id="FourThought-include-05" result="pass"/> <testresult id="FourThought-include-06" result="pass"/> <testresult id="FourThought-include-07" result="pass"/> <testresult id="Nist-include-01" result="pass"/> <testresult id="Nist-include-02" result="pass"/> <testresult id="Nist-include-03" result="pass"/> <testresult id="Nist-include-04" result="pass"/> <testresult id="Nist-include-05" result="pass"/> <testresult id="Nist-include-06" result="pass"/> <testresult id="Nist-include-07" result="pass"/> <testresult id="Nist-include-08" result="pass"/> <testresult id="Nist-include-09" result="pass"/> <testresult id="Nist-include-10" result="pass"/> <testresult id="Nist-include-11" result="pass"/> <testresult id="Nist-include-12" result="pass"/> <testresult id="Nist-include-13" result="pass"/> <testresult id="Nist-include-14" result="pass"/> <testresult id="Nist-include-15" result="pass"/> <testresult id="Nist-include-16" result="pass"/> <testresult id="Nist-include-17" result="pass"/> <testresult id="Nist-include-18" result="pass"/> <testresult id="Nist-include-19" result="fail"> <note>unsupported XPointer</note> </testresult> <testresult id="Nist-include-20" result="pass"/> <testresult id="Nist-include-21" result="pass"/> <testresult id="Nist-include-22" result="pass"/> <testresult id="Nist-include-23" result="pass"/> <testresult id="Nist-include-24" result="pass"/> <testresult id="Nist-include-25" result="pass"/> <testresult id="Nist-include-26" result="pass"/> <testresult id="Nist-include-27" result="pass"/> <testresult id="Nist-include-28" result="pass"/> <testresult id="Nist-include-29" result="pass"/> <testresult id="Nist-include-30" result="pass"/> <testresult id="Nist-include-31" result="pass"/> <testresult id="Nist-include-32" result="pass"/> <testresult id="Nist-include-33" result="pass"/> <testresult id="Nist-include-34" result="pass"/> <testresult id="Nist-include-35" result="pass"/> <testresult id="Nist-include-36" result="pass"/> <testresult id="Nist-include-37" result="pass"/> <testresult id="Nist-include-38" result="pass"/> <testresult id="nist-include-39" result="pass"/> <testresult id="nist-include-40" result="pass"/> <testresult id="nist-include-41" result="pass"/> <testresult id="Nist-include-42" result="pass"/> <testresult id="Nist-include-43" result="pass"/> <testresult id="Nist-include-44" result="pass"/> <testresult id="Nist-include-45" result="pass"/> <testresult id="Nist-include-46" result="pass"/> <testresult id="Nist-include-47" result="pass"/> <testresult id="Nist-include-48" result="skipped"/> <testresult id="Nist-include-49" result="skipped"/> <testresult id="Nist-include-50" result="pass"/> <testresult id="Nist-include-51" result="fail"> <note>unsupported XPointer</note> </testresult> <testresult id="Nist-include-52" result="fail"> <note>unsupported XPointer</note> </testresult> <testresult id="Nist-include-53" result="pass"/> <testresult id="Nist-include-54" result="pass"/> <testresult id="Nist-include-55" result="pass"/> <testresult id="Nist-include-56" result="fail"> <note>unparsed entities not supported</note> </testresult> <testresult id="eduni-1" result="pass"/> <testresult id="eduni-2" result="pass"/> </testresults> --Apple-Mail-7--75007996 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed --Apple-Mail-7--75007996 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="report.xml" Content-Disposition: attachment; filename=report.xml <reports date="15 July 2004" testdescr="/Users/richard/cvs/XInclude-Test-Suite/testdescr.xml"> <report href="mt-results.xml"/> <!-- <report href="dummy-results.xml"/> --> </reports> --Apple-Mail-7--75007996 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed --Apple-Mail-7--75007996 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="report.xsl" Content-Disposition: attachment; filename=report.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="reports"> <html> <head> <title>XInclude test results</title> <style type="text/css"> .pass {background-color: #aaffaa} .fail {background-color: #ffaaaa} .skipped {background-color: #ffffaa} table {border: inset 2pt} td {border: inset 2pt} th {border: inset 2pt} </style> </head> <body> <h1>XInclude test results <xsl:value-of select="@date"/></h1> <table> <tr> <th/> <xsl:apply-templates select="report/@href" mode="heading"/> </tr> <xsl:variable name="reports" select="."/> <xsl:for-each select="document(@testdescr)//testcase"> <xsl:variable name="id" select="@id"/> <tr> <th><xsl:value-of select="$id"/></th> <xsl:for-each select="$reports/report"> <xsl:apply-templates select="document(@href)//testresult[@id=$id]"/> </xsl:for-each> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> <xsl:template match="@href" mode="heading"> <th><xsl:value-of select="document(.)/testresults/@processor"/></th> </xsl:template> <xsl:template match="testresult[note]"> <td class="{@result}"> <xsl:value-of select="note"/> </td> </xsl:template> <xsl:template match="testresult"> <td class="{@result}"> <xsl:value-of select="@result"/> </td> </xsl:template> </xsl:stylesheet> --Apple-Mail-7--75007996 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed --Apple-Mail-7--75007996--
Received on Friday, 16 July 2004 10:40:31 UTC