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...@locus.apache.org on 2000/08/08 03:33:33 UTC
cvs commit: xml-xalan/src/org/apache/xalan/xslt XSLTEngineImpl.java
sboag 00/08/07 18:33:33
Modified: src/org/apache/xalan/xslt XSLTEngineImpl.java
Log:
Check for a DTMProxy before you tell the user that they can't input a node with the DTMLiaison!
Revision Changes Path
1.65 +3 -2 xml-xalan/src/org/apache/xalan/xslt/XSLTEngineImpl.java
Index: XSLTEngineImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/XSLTEngineImpl.java,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- XSLTEngineImpl.java 2000/05/31 08:33:49 1.64
+++ XSLTEngineImpl.java 2000/08/08 01:33:33 1.65
@@ -822,10 +822,11 @@
if(null != inputSource.getNode())
{
- if(getXMLProcessorLiaison() instanceof org.apache.xalan.xpath.dtm.DTMLiaison)
+ sourceTree = inputSource.getNode();
+ if((getXMLProcessorLiaison() instanceof org.apache.xalan.xpath.dtm.DTMLiaison) &&
+ !(sourceTree instanceof org.apache.xalan.xpath.dtm.DTMProxy))
error(XSLTErrorResources.ER_CANT_USE_DTM_FOR_INPUT); //"Can't use a DTMLiaison for a input DOM node... pass a org.apache.xalan.xpath.xdom.XercesLiaison instead!");
- sourceTree = inputSource.getNode();
}
else
{