In XSLT 2.0 you can refer to global variables within a match pattern, but the syntax is simpler than your guess:
rather than
Also, the semantics are not what you appear to be expecting: a variable referenced on the lhs of "/" must contain a node-set, not a fragment of an XPath expression.