XSLT(4) control statement
来源:互联网 发布:推广网站源码 编辑:程序博客网 时间:2024/04/28 20:32
<xsl:if>
The if statement is Necessary when you want to test if a sequence is empty or not.
<xsl:if test="expression">
...some output if the expression is true...
</xsl:if>
...some output if the expression is true...
</xsl:if>
<xsl:choose>
<xsl:choose>
<xsl:when test="expression">
... some output ...
</xsl:when>
<xsl:otherwise>
... some output ....
</xsl:otherwise>
</xsl:choose>
<xsl:when test="expression">
... some output ...
</xsl:when>
<xsl:otherwise>
... some output ....
</xsl:otherwise>
</xsl:choose>
<xsl:for-each>
<xsl:for-each select="expression">
... some output ...
</xsl:for-each>
... some output ...
</xsl:for-each>
Sequences of integers with to operator
You can create an integer sequence with the to operator
1 to 5
<xsl:for-each select="1 to 5"><br /></xsl:for-each>
Filtering illegal characters
Some characters needs to be escape
Greater than( > ) needs to be escaped as >
Less than( < ) needs to be escaped as <
- XSLT(4) control statement
- 1-Control Statement
- ksh control statement
- 4、流程控制语句——Flow Control Statement
- 4、流程控制语句——Flow Control Statement
- XSLT
- XSLT
- XSLT
- XSLT
- XSLT
- XSLT
- xslt
- XSLT
- XSLT
- xslt
- XSLT
- xslt
- xslt
- 使用 Statspack报错的解决方法
- JavaScript 学习计划
- Quartz+Spring
- Asio与shared_ptr的一些注意事项
- Interview Q&A - 三只蚂蚁不相撞的概率是多少?
- XSLT(4) control statement
- Quartz 1.8.5
- asp.net 上传图片处理 水印 缩略图
- Android入门:用HttpClient模拟HTTP的GET和POST请求
- 基于boost 线程并行技术实现消息队列方式[记录]
- 如何提高VS2010的性能,VS2010不再卡
- 人月神话摘录(2)
- iOS Web 网站开发必备 图标 放大级别 全屏等设置
- 中国压缩传感资源(China Compressive Sensing Resources)