Xml XSL/FO跳过Choose语句中的值
我试图找出一种跳过XSL模板中某个值的方法。该值位于名为“编辑器”的select=“ID”标记中。我试图跳过Choose when语句中的特定值,但我不确定这是否可行Xml XSL/FO跳过Choose语句中的值,xml,xslt,xslt-1.0,apache-fop,Xml,Xslt,Xslt 1.0,Apache Fop,我试图找出一种跳过XSL模板中某个值的方法。该值位于名为“编辑器”的select=“ID”标记中。我试图跳过Choose when语句中的特定值,但我不确定这是否可行 <xsl:param name="caption"> <xsl:choose> <xsl:when test="Description"><xsl:value-of select
<xsl:param name="caption">
<xsl:choose>
<xsl:when test="Description"><xsl:value-of select="Description" /></xsl:when>
<xsl:otherwise><xsl:value-of select="ID" /></xsl:otherwise>
</xsl:choose>
</xsl:param>
如何让上述逻辑中的xsl语句跳过名为Editor的ID中的值?
<xsl:param name="caption">
<xsl:choose>
<xsl:when test="Description"><xsl:value-of select="Description" /></xsl:when>
<xsl:otherwise><xsl:value-of select="ID[not(. = 'Editor')]" /></xsl:otherwise>
</xsl:choose>
</xsl:param>
“任何不等于'Editor'
的
的值”
因此,如果只有一个
,则会选择1个或0个节点。这就是您的操作方式。。。多谢各位