The provided XSL is supposed to work out-of-the-box with no change. I don't know what's wrong. You're the first to report a problem.
How are you running your tests exactly? Have you modified the original cactus-report.xsl? Thanks -Vincent > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 10 February 2004 17:47 > To: [EMAIL PROTECTED] > Subject: Cactus report transform problem > > HI All, > > When I was trying to use the cactus-report.xsl to transform the cactus > test report, I got an error saying: > > javax.xml.transform.TransformerConfigurationException: XSL-1000: (Fatal > Error) Error while parsing XSL file (null). > > So I tried to replace the xsl with following > =========================test.xsl========================== > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output method="xml" indent="yes"/> > <xsl:variable name="indent" select="3" /> > <xsl:variable name="spaces" select="' '" /> > > <xsl:template match="*"> > <xsl:variable name="varspaces" > select="substring($spaces,1,count(ancestor::node()) *$indent)"/> > <xsl:value-of select="$varspaces" /> > <xsl:copy> > <xsl:copy-of select="@*" /> > <xsl:choose> > <xsl:when test="*"> > <xsl:apply-templates /> > <xsl:value-of select="concat('
 ', $varspaces)" /> > </xsl:when> > <xsl:otherwise> > <xsl:value-of select="normalize-space()"/> > </xsl:otherwise> > </xsl:choose> > </xsl:copy> > </xsl:template> > > <xsl:template match="comment()|processing-instruction()"> > <xsl:copy /> > </xsl:template> > > </xsl:stylesheet> > > And I got following XML source: > ==========cactus-result.xml=========================== > <?xml version = '1.0'?> > <?xml-stylesheet type="text/xsl" href="test.xsl"?> > <testsuites> > <testsuite name="TestAddPrintJobCommand" tests="1" failures="0" > errors="0" time="0.541"> > <testcase name="testAddPrintJobOK" time="0.4"/> > </testsuite> > </testsuites> > > then I replaced the test.xsl with cactus-report.xsland tried to transform > this again using XML Spy, everthing is working fine, I got a perfect > report. I'm just wondering what's wrong, do I missing anything? > > Thanks in advance! > > -- > Li Geng > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
