The 'match' attribute of a template requires a subset of XPath.
You can only match along the child or attribute axes.
Predicates are not restricted.
You can have multiple patterns separated by '|' to match several patterns.
Example:
contents/p slide[@show='true'] @href a/@href graphic[ancestors::section]