You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2002/07/25 16:00:32 UTC

cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/language/generator ProgramGeneratorImpl.java

vgritsenko    2002/07/25 07:00:32

  Modified:    src/java/org/apache/cocoon/components/language/generator
                        ProgramGeneratorImpl.java
  Log:
  Include all warnings and errors reported by the XSLT engine into the
  TransformerException if transformation fails or terminated by the
  stylesheet.
  Compensate for the Xalan incremental processing bug.
  
  Revision  Changes    Path
  1.19      +10 -1     xml-cocoon2/src/java/org/apache/cocoon/components/language/generator/ProgramGeneratorImpl.java
  
  Index: ProgramGeneratorImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/generator/ProgramGeneratorImpl.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ProgramGeneratorImpl.java	13 Jun 2002 09:28:15 -0000	1.18
  +++ ProgramGeneratorImpl.java	25 Jul 2002 14:00:31 -0000	1.19
  @@ -439,6 +439,15 @@
   
           // Generate code
           String code = markupLanguage.generateCode(is, normalizedName, programmingLanguage, resolver);
  +        if (code == null || code.length() == 0) {
  +            // FIXME(VG): Xalan with incremental-processing=true does not propagate exceptions
  +            // from working thread to main thread. See
  +            // http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8033
  +            throw new ProcessingException("Failed to generate program code (this may happen " +
  +                    "if you use Xalan in incremental processing mode). " +
  +                    "Please check log file and/or console for errors.");
  +        }
  +
           String encoding = markupLanguage.getEncoding();
   
           // Format source code if applicable
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org