cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r428402 - /cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java
Date Thu, 03 Aug 2006 13:29:15 GMT
Author: cziegeler
Date: Thu Aug  3 06:29:10 2006
New Revision: 428402

URL: http://svn.apache.org/viewvc?rev=428402&view=rev
Log:
src can be null

Modified:
    cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java

Modified: cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java?rev=428402&r1=428401&r2=428402&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java
(original)
+++ cocoon/trunk/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java
Thu Aug  3 06:29:10 2006
@@ -114,10 +114,10 @@
     throws ProcessingException, SAXException, IOException {
 
         super.setup(resolver, objectModel, src, parameters);
-        if ( src == null ) {
-            throw new ProcessingException("JXTemplateGenerator: 'src' attribute is missing.");
+        // src can be null if this generator is triggered by the jxt transformer (through
the TransformerAdapter)
+        if ( src != null ) {
+            this.startDocument = scriptManager.resolveTemplate(src);
         }
-        this.startDocument = scriptManager.resolveTemplate(src);
 
         this.expressionContext = FlowObjectModelHelper.getFOMExpressionContext(objectModel,
parameters);
         this.definitions = new HashMap();



Mime
View raw message