Index: SRC/ORG/APACHE/xpath/res/XPATHErrorResources.java =================================================================== RCS file: /home/cvs/xalan3/xml-xalan/java/src/org/apache/xpath/res/XPATHErrorResources.java,v retrieving revision 1.2 diff -u -r1.2 XPATHErrorResources.java --- SRC/ORG/APACHE/xpath/res/XPATHErrorResources.java 2002/08/02 10:40:20 1.2 +++ SRC/ORG/APACHE/xpath/res/XPATHErrorResources.java 2002/11/25 17:34:56 @@ -97,7 +97,7 @@ public static final String WARNING_SUFFIX = "WR"; // /** Field MAX_CODE */ -// public static final int MAX_CODE = 84; // this is needed to keep track of the number of messages +// public static final int MAX_CODE = 86; // this is needed to keep track of the number of messages // // /** Field MAX_WARNING */ // public static final int MAX_WARNING = 11; // this is needed to keep track of the number of warnings @@ -464,6 +464,9 @@ // Variable accessed before it is bound! public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85; + + /** Invalid string-pad count */ + public static final int ER_INVALID_STRING_PAD_COUNT = 86; // Warnings... Index: SRC/ORG/APACHE/xpath/res/XPATHErrorResources.properties =================================================================== RCS file: /home/cvs/xalan3/xml-xalan/java/src/org/apache/xpath/res/XPATHErrorResources.properties,v retrieving revision 1.1 diff -u -r1.1 XPATHErrorResources.properties --- SRC/ORG/APACHE/xpath/res/XPATHErrorResources.properties 2002/06/21 16:05:21 1.1 +++ SRC/ORG/APACHE/xpath/res/XPATHErrorResources.properties 2002/11/25 17:34:57 @@ -176,6 +176,8 @@ ER0084=2 or 3 # ER_VARIABLE_ACCESSED_BEFORE_BIND ER0085=Variable accessed before it is bound! +# ER_INVALID_STRING_PAD_COUNT +ER0086=Invalid string-pad count. # WG_LOCALE_NAME_NOT_HANDLED WR0001=locale name in the format-number function not yet handled! Index: SRC/ORG/APACHE/xpath/parser/SimpleNode.java =================================================================== RCS file: /home/cvs/xalan3/xml-xalan/java/src/org/apache/xpath/parser/SimpleNode.java,v retrieving revision 1.13 diff -u -r1.13 SimpleNode.java --- SRC/ORG/APACHE/xpath/parser/SimpleNode.java 2002/08/02 10:35:55 1.13 +++ SRC/ORG/APACHE/xpath/parser/SimpleNode.java 2002/11/25 17:34:57 @@ -91,6 +91,7 @@ new FuncNormalizeSpace()); m_builtInFunctions.put(new QName("translate"), new FuncTranslate()); m_builtInFunctions.put(new QName("concat"), new FuncConcat()); + m_builtInFunctions.put(new QName("string-pad"), new FuncStringPad()); m_builtInFunctions.put( new QName("system-property"), new FuncSystemProperty());