删除"." 之前的前缀(点)



对于一个变量,比如

varCode = kvnownananna.ThisistheStringRequired.iobabvoabnv

我需要删除CCD_ 1(点(&删除第二个.(点(后的后缀

只需要获取";ThisistheStringRequired";。

我们如何在xsl-fo-template中做到这一点?

<xsl:variable name="newVar" select="replace($varCode, '.*.(.*)..*', '$1')"/>

<xsl:variable name="newVar" select="tokenize($varCode, '.')[2]"/>

尝试:

<xsl:value-of select="substring-before(substring-after($varCode, '.'), '.')"/>

最新更新