I have an XPath query which is doing what I want, namely selecting a union of \'surname\' & \'given-names\' with the given predicates (It\'s actually either/or that I ne
First, this is valid XPath 2.0:
/header/authors/(surname|given-names)[./text() and @id='1']
Second, this XPath 1.0:
/header/authors/*[self::surname|self::given-names][text()][@id='1']