我有这段 XML 并想在之后立即获得号码Chapter
<para>Insolvency Rules, r 12.12, which gives the court a broad discretion, unfettered by the English equivalent of the heads of Order 11, r 1(1) (which are now to be found, in England, in CPR, Chapter 6, disapplied in the insolvency context by Insolvency Rules, r 12.12(1)). </para>
当我使用这个 XSLT 转换时
<xsl:value-of select="translate(substring-after(current(),'Chapter'), translate(substring-after(current(),'Chapter'),'0123456789',''), '')"/>
我得到这个输出
612121
Butut 我只想要6
.
请让我知道我应该怎么做。
我不想使用类似的声明
<xsl:value-of select="substring-before(substring-after(current(),'Chapter'), ,',')"/>
因为每个实例的章节编号都会有所不同,介于 1 到 15 之间。