--- src/org/apache/xerces/xpointer/ShortHandPointer.java.ORI	2007-09-15 00:27:04.000000000 +0200
+++ src/org/apache/xerces/xpointer/ShortHandPointer.java	2009-01-13 19:34:36.000000000 +0100
@@ -159,7 +159,13 @@
                 if (normalizedValue != null) {
                     break;
                 }
-                // 4. No externally determined ID's
+
+                // 4. Use xml:id ---
+                
+                if ("xml:id".equals(attributes.getQName(i))) {
+                    normalizedValue = attributes.getValue(i).trim();
+                    break;
+                }
             }
         }
         
@@ -291,4 +297,4 @@
     public void setSchemeData(String schemeData) {
         // NA
     }
-}
\ No newline at end of file
+}
