svn commit: r647021 - in /lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl: ElementImpl.java TextValueXmlNode.java
[email protected] Fri, 11 Apr 2008 00:34:58 -0000
Newsgroups
gmane.comp.cms.lenya.cvs
Message-ID
<[email protected] >
Author: andreas
Date: Thu Apr 10 17:34:55 2008
New Revision: 647021
URL: http://svn.apache.org/viewvc?rev=647021&view=rev
Log:
Start XPath child count with 1.
Modified:
lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/ElementImpl.java
lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/TextValueXmlNode.java
Modified: lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/ElementImpl.java
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/ElementImpl.java?rev=647021&r1=647020&r2=647021&view=diff
==============================================================================
--- lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/ElementImpl.java (original)
+++ lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/ElementImpl.java Thu Apr 10 17:34:55 2008
@@ -57,7 +57,7 @@
path.append("/");
path.append(getLocalName());
if (pos > -1) {
- path.append("[" + pos + "]");
+ path.append("[" + (pos + 1) + "]");
}
return path.toString();
}
Modified: lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/TextValueXmlNode.java
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/TextValueXmlNode.java?rev=647021&r1=647020&r2=647021&view=diff
==============================================================================
--- lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/TextValueXmlNode.java (original)
+++ lenya/sandbox/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/TextValueXmlNode.java Thu Apr 10 17:34:55 2008
@@ -62,7 +62,7 @@
StringBuffer buffer = new StringBuffer();
buffer.append(getParent().getPath() + "/" + getNodeType() + "()");
if (pos > -1) {
- buffer.append("[" + pos + "]");
+ buffer.append("[" + (pos + 1) + "]");
}
return buffer.toString();
}