I do not think that regular expression syntax is available in this context, even in XSLT 2.0. But you do not need it in this case.
<xsl:apply-templates select="report_item/*[ends-with(name(), 'adj')]"/>
*
matches any node
[pred]
performs a node test against a selector (in this case *
) (where pred
is a predicate evaluated in the context of the selected node)
name()
returns the name of the element tag (for this purpose it should be equivalent to local-name
).
ends-with()
is a built-in XPath string function.
harpo source share