xml-xalan-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sb...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/processor TransformerFactoryImpl.java
Date Sun, 11 Mar 2001 21:50:27 GMT
sboag       01/03/11 13:50:27

  Modified:    java/src/org/apache/xalan/processor
                        TransformerFactoryImpl.java
  Log:
  Call getAbsoluteURI(String url) for the source URL.
  Fix for problem found when
  investigating http://nagoya.apache.org/bugzilla/show_bug.cgi?id=906.
  This tries to force us always having an absolute URL in the processing
  stack as the base URL, which should be OK, I hope.
  
  Revision  Changes    Path
  1.26      +12 -1     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.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- TransformerFactoryImpl.java	2001/03/05 19:54:43	1.25
  +++ TransformerFactoryImpl.java	2001/03/11 21:50:27	1.26
  @@ -729,6 +729,17 @@
           //  and not accessible: just leave baseID as null (-sb & -sc)
         }
       }
  +    else
  +    {
  +      try
  +      {
  +        baseID = SystemIDResolver.getAbsoluteURI(baseID);
  +      }
  +      catch(TransformerException te)
  +      {
  +        throw new TransformerConfigurationException(te);
  +      }
  +    }
   
       builder.setSystemId(baseID);
   
  @@ -765,7 +776,7 @@
             factory.setNamespaceAware(true);
   
   
  -		  javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();
  +                  javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();
   
             reader = jaxpParser.getXMLReader();
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message