- xpath.c: Thomas Broyer suggested a better patch for the / arg
Daniel
diff --git a/xpath.c b/xpath.c
index cabb3af..90ebe1b 100644
--- a/xpath.c
+++ b/xpath.c
@@ -7085,8 +7085,10 @@
 		xmlXPathCompRelativeLocationPath(ctxt);
 	    } else if (CUR == '/') {
 		NEXT;
-		/* SKIP_BLANKS; */
-		if ((CUR != 0) && (CUR != ')') && (CUR != ','))
+		SKIP_BLANKS;
+		if ((CUR != 0 ) &&
+		    ((IS_LETTER(CUR)) || (CUR == '_') || (CUR == '.') ||
+		     (CUR == '@') || (CUR == '*')))
 		    xmlXPathCompRelativeLocationPath(ctxt);
 	    }
 	}