使用XSLT 1.0。
<xsl:for-each select="*">
<xsl:variable name="xxxx" select="@name" />
<xsl:if test="../../../../fieldMap/field[@name=$xxxx]">...
<xsl:if test="position() != last()">////this is not work correctly as last() nu
我想从节点<hello>获取文本,不包括它的子节点。我知道/element/hello/text()应该起作用,但它不起作用。
<element>
<hello><b>Exclude me</b> but not me <b>I'm excluded :(</b> I'm included</hello>
</element>
我的输出仅为:but not me。如果我移除第一个节点,那么所有操作都会按设想进行,并且解析第二个文本节点(包括我在内)。,本机处理器的行为