This test is NOT OK. 'haystack' does NOT start with 'hay'. '' = 'hay' '' = 'stack' '' = 'abcdefgh' '' = 'ijklmnop' The number of root elements in the input document is (should be 1). See attribute. 3 3 No parameters needed here! The context element here is named "" ( * ) + = ( * ) + =