You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@apache.org on 2001/05/31 14:31:05 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/generation FileGenerator.java

dims        01/05/31 05:31:05

  Modified:    src/org/apache/cocoon/generation FileGenerator.java
  Log:
  Need to set the system id for example to resolve DTD's.
  
  Revision  Changes    Path
  1.6       +4 -3      xml-cocoon2/src/org/apache/cocoon/generation/FileGenerator.java
  
  Index: FileGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/FileGenerator.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FileGenerator.java	2001/05/29 06:13:47	1.5
  +++ FileGenerator.java	2001/05/31 12:31:03	1.6
  @@ -39,7 +39,7 @@
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.5 $ $Date: 2001/05/29 06:13:47 $
  + * @version CVS $Revision: 1.6 $ $Date: 2001/05/31 12:31:03 $
    */
   public class FileGenerator extends ComposerGenerator
   implements Cacheable, Recyclable {
  @@ -113,8 +113,9 @@
               parser = (Parser)this.manager.lookup(Roles.PARSER);
   
               parser.setConsumer(super.xmlConsumer);
  -
  -            parser.parse(new InputSource(inputSource.getInputStream()));
  +            InputSource is = new InputSource(inputSource.getInputStream());
  +            is.setSystemId(inputSource.getSystemId());
  +            parser.parse(is);
           } catch (IOException e) {
               getLogger().error("FileGenerator.generate()", e);
               throw new ResourceNotFoundException("FileGenerator could not find resource", e);
  
  
  

----------------------------------------------------------------------
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