Author: nddelima
Date: Tue Jun 20 15:00:24 2006
New Revision: 415823
URL: http://svn.apache.org/viewvc?rev=415823&view=rev
Log:
Fixing JIRA Bug #1134: http://issues.apache.org/jira/browse/XERCESJ-1134
Modified:
xerces/java/trunk/src/org/apache/xerces/xpointer/ElementSchemePointer.java
Modified:
xerces/java/trunk/src/org/apache/xerces/xpointer/ElementSchemePointer.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/xpointer/ElementSchemePointer.java?rev=415823&r1=415822&r2=415823&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/xpointer/ElementSchemePointer.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/xpointer/ElementSchemePointer.java
Tue Jun 20 15:00:24 2006
@@ -341,15 +341,17 @@
// Donot check for empty elements if the empty element is
// a child of a found parent element
- //if (!fIsElementFound) {
- if (checkMatch()) {
- fIsElementFound = true;
+ if (checkMatch()) {
+ if (!fIsElementFound) {
fWasOnlyEmptyElementFound = true;
} else {
- fIsElementFound = false;
+ fWasOnlyEmptyElementFound = false;
}
- //}
-
+ fIsElementFound = true;
+ } else {
+ fIsElementFound = false;
+ fWasOnlyEmptyElementFound = false;
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]