Fix #1264: support namespaced attribute selectors.