cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rica...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp XSPTemplate.java
Date Sat, 08 Jan 2000 16:27:06 GMT
ricardo     00/01/08 08:27:06

  Modified:    src/org/apache/cocoon/processor/xsp XSPTemplate.java
  Log:
  Added support for base URI in library template stylesheets
  
  Revision  Changes    Path
  1.5       +12 -4     xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPTemplate.java
  
  Index: XSPTemplate.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPTemplate.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XSPTemplate.java	2000/01/08 13:03:45	1.4
  +++ XSPTemplate.java	2000/01/08 16:27:05	1.5
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSPTemplate.java,v 1.4 2000/01/08 13:03:45 stefano Exp $ -- 
  +/*-- $Id: XSPTemplate.java,v 1.5 2000/01/08 16:27:05 ricardo Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -60,7 +60,7 @@
   
   /**
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version $Revision: 1.4 $ $Date: 2000/01/08 13:03:45 $
  + * @version $Revision: 1.5 $ $Date: 2000/01/08 16:27:05 $
    */
   public class XSPTemplate {
     protected String languageName;
  @@ -69,10 +69,12 @@
     
     private Transformer transformer;
     private Parser parser;
  +  private String templateBase;
   
  -  public XSPTemplate(Transformer transformer, Parser parser) {
  +  public XSPTemplate(Transformer transformer, Parser parser, String templateBase) {
       this.transformer = transformer;
       this.parser = parser;
  +    this.templateBase = templateBase;
     }
   
     public void setLanguageName(String languageName) {
  @@ -112,6 +114,12 @@
   
       // FIXME: we should change these nulls to something meaningful to allow
       // the transformers to do includes and imports.
  -    return this.transformer.transform(document, null, stylesheet, null, this.parser.createEmptyDocument());
  +    return this.transformer.transform(
  +      document,
  +      (String) parameters.get("filename"),
  +      stylesheet,
  +      this.templateBase,
  +      this.parser.createEmptyDocument()
  +    );
     }
   }
  
  
  

Mime
View raw message