mmidy 00/09/29 09:24:22
Modified: java/src/org/apache/xalan/templates TemplateList.java
Log:
Make sure we don't match root and attribute nodes for wildcard match patterns.
Revision Changes Path
1.7 +3 -2
xml-xalan/java/src/org/apache/xalan/templates/TemplateList.java
Index: TemplateList.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/TemplateList.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- TemplateList.java 2000/09/27 21:48:02 1.6
+++ TemplateList.java 2000/09/29 16:24:21 1.7
@@ -349,8 +349,9 @@
// We also have to consider wildcard matches.
if((null == nextMatchPat) &&
!matchPat.m_targetString.equals("*")
- /*&&
- ((Node.ELEMENT_NODE == targetNodeType) ||
+ && (Node.DOCUMENT_NODE != targetNodeType)
+ && (Node.ATTRIBUTE_NODE != targetNodeType)
+ /* ((Node.ELEMENT_NODE == targetNodeType) ||
(Node.TEXT_NODE == targetNodeType) ||
(Node.ATTRIBUTE_NODE == targetNodeType) ||
(Node.PROCESSING_INSTRUCTION_NODE == targetNodeType))*/