The <xsl:choose> element is used in conjunction with <xsl:when> and <xsl:otherwise> to express multiple conditional tests. <xsl:choose>元素通过<xsl:when>和<xsl:otherwise>一起配合是用来表达多种条件语句。 The <xsl:choose> Element <xsl:choose>元素 Syntax 语法 <xsl:choose> <xsl:when test="...
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> ...
Child elements xsl:otherwise, xsl:whenRemarksThe <xsl:when> children of the <xsl:choose> element are tested in order from top to bottom until a test attribute on one of these elements accurately describes conditions present in the source data or an <xsl:otherwise> element is reached. Once ...
The <xsl:when> children of the <xsl:choose> element are tested, in order from top to bottom, until a test attribute on one of these elements accurately describes conditions in the source data, or until an <xsl:otherwise> element is reached. Once an <xsl:when> or <xsl:otherwise> ...
Try +Saxon or xsltproc. + + uri.xsd is a library of XML type restrictions +that correspond to different components of a URI, so they can be accurately described (e.g., in a WADL param element). + + Feedback is preferred on the +W3C http description list....
<xsl:value-of select="weight"/> <xsl:choose> <xsl:when test="//weight[@unit = 'gram']"> g </xsl:when> <xsl:when test="//weight[@unit = 'kilogram']"> Kg </xsl:when> <xsl:otherwise> <xsl:if test="//weight > 1"> Tonnes </xsl:if> <xsl:if tes...
($database,'video') or contains($database,'pdf') or string-length($autnsummary) < 1 "> <context-summary><xsl:value-of select="$summaryr" /></context-summary> </xsl:when> <xsl:otherwise> <context-summary><xsl:value-of select="autn:summary" /></context-summary> </xsl:otherwise>...
Child elements xsl:otherwise, xsl:when Remarks The <xsl:when> children of the <xsl:choose> element are tested in order from top to bottom until a test attribute on one of these elements accurately describes conditions present in the source data or an <xsl:otherwise> element is reached. Once...