You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@apache.org on 2002/06/27 16:50:54 UTC
cvs commit: xml-xalan/java/src/org/apache/xpath/axes AxesWalker.java LocPathIterator.java
mmidy 2002/06/27 07:50:54
Modified: java/src/org/apache/xpath/axes AxesWalker.java
LocPathIterator.java
Log:
Pull out hard coded messages
Revision Changes Path
1.24 +4 -1 xml-xalan/java/src/org/apache/xpath/axes/AxesWalker.java
Index: AxesWalker.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/axes/AxesWalker.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- AxesWalker.java 22 Mar 2002 01:04:42 -0000 1.23
+++ AxesWalker.java 27 Jun 2002 14:50:54 -0000 1.24
@@ -69,6 +69,9 @@
import org.apache.xpath.compiler.Compiler;
import org.apache.xpath.patterns.NodeTest;
+import org.apache.xpath.res.XPATHErrorResources;
+import org.apache.xalan.res.XSLMessages;
+
/**
* Serves as common interface for axes Walkers, and stores common
* state variables.
@@ -261,7 +264,7 @@
if (DTM.NULL == root)
{
throw new RuntimeException(
- "\n !!!! Error! Setting the root of a walker to null!!!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_SETTING_WALKER_ROOT_TO_NULL, null)); //"\n !!!! Error! Setting the root of a walker to null!!!");
}
resetProximityPositions();
1.35 +3 -1 xml-xalan/java/src/org/apache/xpath/axes/LocPathIterator.java
Index: LocPathIterator.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/axes/LocPathIterator.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- LocPathIterator.java 22 Mar 2002 01:04:42 -0000 1.34
+++ LocPathIterator.java 27 Jun 2002 14:50:54 -0000 1.35
@@ -73,6 +73,8 @@
import org.apache.xpath.compiler.Compiler;
import org.apache.xpath.objects.XNodeSet;
import org.apache.xpath.objects.XObject;
+import org.apache.xpath.res.XPATHErrorResources;
+import org.apache.xalan.res.XSLMessages;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;
@@ -617,7 +619,7 @@
public int previousNode()
{
throw new RuntimeException(
- "This NodeSetDTM can not iterate to a previous node!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESETDTM_CANNOT_ITERATE, null)); //"This NodeSetDTM can not iterate to a previous node!");
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org