我如何才能 select 仅使用 xpath 的 paren 包围的 4 位数字?

How can I select only the 4 digit numbers surrounded by paren's using xpath?

如果我有:

<list>
<item>ABCD<item>
<item>(EFGH)<item>
<item>(4567)<item>
<item>(123)<item>
<item>(56789)<item>
<item>6789<item>
<item>ABC<item>
</list>

并且只想取回括号括起来的 4 位数字值 - (4567),我可以在我的 xslt 中使用什么 xpath 表达式?

<xsl:for-each select="//list/item[EXPRESSION_HERE]" >
<result><xsl:value-of select="." /></result>
</xsl:for-each>

怎么样:

/list/item[translate(., '123456789', '000000000') = '(0000)']