According to the XML definitions (at least the
definitions Mozilla 1.0 got implemented), the <?xml
version...> tag should go before the <?xml-stylesheet
...> tag. Using them in the wrong order produces an
error when Mozilla tries to render it.

The attached patch solves this problem.

Best regards,
Felipe Hoffa

[fhoffa@localhost jakarta-cactus]$ cvs -q diff -u
Index:
framework/src/java/share/org/apache/cactus/server/runner/XMLFormatter.java
===================================================================
RCS file:
/home/cvspublic/jakarta-cactus/framework/src/java/share/org/apache/cactus/server/runner/XMLFormatter.java,v
retrieving revision 1.5
diff -u -r1.5 XMLFormatter.java
---
framework/src/java/share/org/apache/cactus/server/runner/XMLFormatter.java
 4 Aug 2002 18:26:10 -0000       1.5
+++
framework/src/java/share/org/apache/cactus/server/runner/XMLFormatter.java
 13 Aug 2002 22:30:33 -0000
@@ -177,12 +177,13 @@
     {
         StringBuffer xml = new StringBuffer();

+        xml.append("<?xml version=\"1.0\"
encoding=\"UTF-8\" ?>");
+
         if (this.xslFileName != null) {
             xml.append("<?xml-stylesheet
type=\"text/xsl\" "
                 + "href=\"" + this.xslFileName +
"\"?>");
         }

-        xml.append("<?xml version=\"1.0\"
encoding=\"UTF-8\" ?>");
         xml.append("<" + TESTSUITES + ">");

         xml.append("<" + TESTSUITE + " " + ATTR_NAME
+ "=\""



__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to