You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/01/03 11:12:08 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath SourceTreeManager.java

sboag       01/01/03 02:12:08

  Modified:    java/src/org/apache/xpath SourceTreeManager.java
  Log:
  Allow DOMSource to be registered.  Part of bug fix where relative
  URLs weren't being resolved for DOM processing.
  
  Revision  Changes    Path
  1.22      +2 -4      xml-xalan/java/src/org/apache/xpath/SourceTreeManager.java
  
  Index: SourceTreeManager.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/SourceTreeManager.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- SourceTreeManager.java	2001/01/02 03:47:13	1.21
  +++ SourceTreeManager.java	2001/01/03 10:12:07	1.22
  @@ -221,10 +221,8 @@
             "Programmer's Error!  "
             + "putDocumentInCache found reparse of doc: "
             + source.getSystemId());
  -
         return;
       }
  -
       if (null != source.getSystemId())
       {
         m_sourceTree.addElement(new SourceTree(n, source.getSystemId()));
  @@ -241,8 +239,8 @@
     public Node getNode(Source source)
     {
   
  -    if (source instanceof DOMSource)
  -      return ((DOMSource) source).getNode();
  +//    if (source instanceof DOMSource)
  +//      return ((DOMSource) source).getNode();
   
       // TODO: Not sure if the BaseID is really the same thing as the ID.
       String url = source.getSystemId();