xsl:choose, xsl:comment, xsl:copy, xsl:copy-of, xsl:element, xsl:fallback, xsl:for-each, xsl:if, xsl:message, xsl:number,xsl:param, xsl:processing-instruction, xsl:text, xsl:value-of, xsl:variable, output elements
Xsl:choose、xsl:when以及xsl:otherwise的作用类似程序设计语言中的switch、case以及default的作用。其中的xsl:when可以多次出现,而xsl:otherwise则是可以选择的,而且最多可以出现一次。 四、xsl:value-of:获取选择节点的值作为文本插入到输出信息中。 1、声明方式: <xsl:value-of select = Expression disable-output-...
xsl:choose / xsl:when / xsl:otherwise 同<xsl:if>元素相似,<xsl:choose>按顺序检查各种不同条件,在所有的其他条件都不满足的情况下执行默认操作,语法如下: <xsl:choose> <xsl:whenselect="expression"> </xsl:when> <xsl:whenselect="expression"> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xs...
level="single|multiple|any" from="expression" value="expression" format="formatstring" letter-value="alphabetic|traditional" grouping-separator="character" grouping-size="number"/> <xsl:otherwise>元素为<xsl:choose>元素指定一个默认的动作,这个动作当<xsl:when>的条件不满足的时候发生 <xsl:output>元素...
The <xsl:choose> element is used in conjunction with <xsl:when> and <xsl:otherwise> to express multiple conditional tests.If no <xsl:when> is true, the content of <xsl:otherwise> is processed.If no <xsl:when> is true, and no <xsl:otherwise> element is present, nothing is created....
xsl:choose元素由一个或一个以上的xsl:when元素和可选的xsl:otherwise元素组成。 <xsl:choose> <xsl:when test="逻辑表达式"> <!-- 内容: 模板 --> </xsl:when> <xsl:otherwise> <!-- 内容: 模板 --> </xsl:otherwise> </xsl:choose>
The <xsl:choose> element is used in conjunction with <xsl:when> and <xsl:otherwise> to express multiple conditional tests.The <xsl:choose> ElementSyntax<xsl:choose> <xsl:when test="expression"> ... some output ... </xsl:when> <xsl:otherwise> ... some output ... </xsl:otherwise> ...
This sample contains a lot of commonly used structures, including a couple of templates, attributes and some control structures such as for-each, sort and the choose and if conditionals. When the XSLT engine processes this, it will iterate over the "section" elements, working through each "vol...
choose Used in conjunction with <when> and <otherwise> to express multiple conditional tests comment Creates a comment node in the result tree copy Creates a copy of the current node (without child nodes and attributes) copy-of Creates a copy of the current node (with child nodes and attribu...
choose Used in conjunction with <when> and <otherwise> to express multiple conditional tests comment Creates a comment node in the result tree copy Creates a copy of the current node (without child nodes and attributes) copy-of Creates a copy of the current node (with child nodes and attribu...