src/java.xml/share/classes/com/sun/org/apache/xpath/internal/compiler/Lexer.java

Print this page

        

@@ -635,30 +635,12 @@
       if (s.length() > 0)
         addToTokenQueue(s);
     }
     else
     {
-        // To older XPath code it doesn't matter if
-        // error() is called or errorForDOM3().
-                m_processor.errorForDOM3(XPATHErrorResources.ER_PREFIX_MUST_RESOLVE,
+        m_processor.error(XPATHErrorResources.ER_PREFIX_MUST_RESOLVE,
                                                  new String[] {prefix});  //"Prefix must resolve to a namespace: {0}";
-
-/** old code commented out 17-Sep-2004
-// error("Could not locate namespace for prefix: "+prefix);
-//                m_processor.error(XPATHErrorResources.ER_PREFIX_MUST_RESOLVE,
-//                                       new String[] {prefix});  //"Prefix must resolve to a namespace: {0}";
-*/
-
-      /***  Old code commented out 10-Jan-2001
-      addToTokenQueue(prefix);
-      addToTokenQueue(":");
-
-      String s = pat.substring(posOfNSSep + 1, posOfScan);
-
-      if (s.length() > 0)
-        addToTokenQueue(s);
-      ***/
     }
 
     return -1;
   }
 }