XSLT 学习二 各个标记元素

1。<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

2.<xsl:template match="/">  <html></html>

3.<xsl:for-each select="catalog/cd">

 4 <xsl:sort select="artist"/>

 5. <xsl:if test="price &gt; 10">

  6.<td><xsl:value-of select="title"/></td>

XSLT <xsl:choose> 元素用于结合 <xsl:when> 和 <xsl:otherwise> 来表达多重条件测试。  相当于case wen  then end

<xsl:apply-templates> 元素可把一个模板应用于当前的元素或者当前元素的子节点。

原文地址:https://www.cnblogs.com/TNSSTAR/p/2680302.html