fixed namespaces in document/@select

also fixed schema to allow for expect[@type='custom']/document (it didn't actually work earlier)