more bug fixes for the XPath streaming code. Daniel * pattern.c: more bug fixes for the XPath streaming code. Daniel