Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
<xsl:if test="condition">
|
||||
<!-- executed if XPath expression evaluates to true -->
|
||||
</xsl:if>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<xsl:choose>
|
||||
<xsl:when test="condition1">
|
||||
<!-- included if condition1 evaluates to true (like C `if`) -->
|
||||
</xsl:when>
|
||||
<xsl:when test="condition2">
|
||||
<!-- included if all previous conditions evaluated to false and
|
||||
condition2 evaluates to true (like C `else if`) -->
|
||||
</xsl:when>
|
||||
<--
|
||||
...
|
||||
-->
|
||||
<xsl:otherwise>
|
||||
<!-- included if all previous conditions evaluated to false
|
||||
(like C `else`) -->
|
||||
<!-- (The `otherwise` element is optional) -->
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<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