Saxon's XQuery parser apparently does not accept a direct constructor
following a leading slash in a path expression, as in

    document{<a/>}/(/<b/>)

The resulting expression may not be particularly useful, but isn't it
valid per the grammar in the XQuery recommendation?

Best regards,
Gunther


 
Software AG – Sitz/Registered office: Uhlandstraße 12, 64297 Darmstadt, Germany, – Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/ Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), David Broadbent, Mark Edwards, Dr. Peter Kürpick,Arnd Zinnhardt; - Aufsichtsratsvorsitzender/ Chairman of the Supervisory Board: Frank F. Beelitz - http://www.softwareag.com