sboag       00/11/17 13:58:13

  Modified:    java/src/org/apache/xalan/processor
                        TransformerFactoryImpl.java
  Log:
  In newTemplates, make the default for a null base ID be:
  
        String currentDir = System.getProperty("user.dir");;
        baseID = 
"file:///"+currentDir+java.io.File.separatorChar+source.getClass().getName();
  
  Revision  Changes    Path
  1.11      +8 -2      
xml-xalan/java/src/org/apache/xalan/processor/TransformerFactoryImpl.java
  
  Index: TransformerFactoryImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/TransformerFactoryImpl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TransformerFactoryImpl.java       2000/11/16 03:22:21     1.10
  +++ TransformerFactoryImpl.java       2000/11/17 21:58:13     1.11
  @@ -592,12 +592,18 @@
     {
       TemplatesHandler builder = newTemplatesHandler();
       
  +    String baseID = source.getSystemId();
  +    if(null == baseID)
  +    {
  +      String currentDir = System.getProperty("user.dir");;
  +      baseID = 
"file:///"+currentDir+java.io.File.separatorChar+source.getClass().getName();
  +    }
  +    builder.setSystemId(baseID);
  +    
       if(source instanceof DOMSource)
       {
         DOMSource dsource = (DOMSource)source;
         Node node = dsource.getNode();
  -      String baseID = dsource.getSystemId();
  -      builder.setSystemId(baseID);
         return processFromNode(node, baseID);
       }
       
  
  
  

Reply via email to