Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
|
|
@ -1,12 +1,17 @@
|
|||
<xsl:choose>
|
||||
<xsl:when test="condition1">
|
||||
<!-- executed if condition1 evaluates to true -->
|
||||
<!-- included if condition1 evaluates to true (like C `if`) -->
|
||||
</xsl:when>
|
||||
<xsl:when test="condition2">
|
||||
<!-- executed if condition2 evaluates to true -->
|
||||
<!-- included if all previous conditions evaluated to false and
|
||||
condition2 evaluates to true (like C `else if`) -->
|
||||
</xsl:when>
|
||||
<-- etc. -->
|
||||
<--
|
||||
...
|
||||
-->
|
||||
<xsl:otherwise>
|
||||
<!-- optional catch-all processing, like C's else or default -->
|
||||
<!-- included if all previous conditions evaluated to false
|
||||
(like C `else`) -->
|
||||
<!-- (The `otherwise` element is optional) -->
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,11 @@
|
|||
@attrib = 'false'
|
||||
position() != last()
|
||||
not( false() )
|
||||
boolean( $param )
|
||||
<xsl:if test="@attrib = 'foo'">...</xsl:if>
|
||||
<xsl:if test="position() != last()">...</xsl:if>
|
||||
<xsl:if test="not(false())">...</xsl:if>
|
||||
|
||||
<!-- Some XPath expressions must be escaped. -->
|
||||
<xsl:if test='contains(node, "stuff") and (position() > first())'>...</xsl:if>
|
||||
|
||||
<!-- The following two examples are synonymous because the test attribute is
|
||||
implicitly converted to boolean. -->
|
||||
<xsl:if test="boolean($expr)">...</xsl:if>
|
||||
<xsl:if test="$expr">...</xsl:if>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue