Thanks Felipe! I have applied it in Cactus 1.4 branch so that it will
make it for 1.4 final.

Cheers,
-Vincent

> -----Original Message-----
> From: Felipe Hoffa [mailto:[EMAIL PROTECTED]]
> Sent: 13 August 2002 23:33
> To: [EMAIL PROTECTED]
> Subject: [PATCH] xsl for mozilla
> 
> 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.ja
va
> ===================================================================
> RCS file:
> /home/cvspublic/jakarta-
>
cactus/framework/src/java/share/org/apache/cactus/server/runner/XMLForma
tt
> er.java,v
> retrieving revision 1.5
> diff -u -r1.5 XMLFormatter.java
> ---
>
framework/src/java/share/org/apache/cactus/server/runner/XMLFormatter.ja
va
>  4 Aug 2002 18:26:10 -0000       1.5
> +++
>
framework/src/java/share/org/apache/cactus/server/runner/XMLFormatter.ja
va
>  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:cactus-dev-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:cactus-dev-
> [EMAIL PROTECTED]>



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

Reply via email to