下面是我的xml文档。
<para>As set out in paragraph 2.006 above it is also possible that a Hong Kong Court may appoint an overseas liquidator to act in a Hong Kong liquidation provided that the court is satisfied as to his suitability to act. </para>在这里,我想检查“”前是否有空格。在2之前(“.”前两位),我使用下面的语句来获取它,但无法获取它,但它不起作用。请告诉我如何修改这个。
<xsl:if test=" contains(substring-before(substring(current(),2,1),'.'),' ')"/>谢谢
发布于 2013-04-26 21:41:33
看起来这就是你喜欢做的:
<xsl:if test=" contains(
substring (current(),
string-length(
substring-before(current(), '.')
) -1,2)
,' ')">这将测试第一个点之前的最后两个字符“。如果它们包含一个空格。(我不确定是否应该对最后两个或三个字符进行测试。但这很容易适应)
https://stackoverflow.com/questions/16236786
复制相似问题