欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

XSLT <xsl:fallback> 元素

定義和用法

<xsl:fallback> 元素規(guī)定了在 XSL 處理程序不支持 XSL 元素時(shí),所執(zhí)行的替代代碼。

語法

<xsl:fallback>

<!-- Content: template -->

</xsl:fallback>

屬性

None

實(shí)例

例子 1

本例本來是要使用一個(gè)虛構(gòu)的 <xsl:loop> 元素來循環(huán)遍歷每個(gè) "title" 元素。如果 XSL 處理器不支持該元素(它確實(shí)不支持),則會(huì)使用 <:xsl:for-each> 元素取而代之:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="catalog/cd">  
  <xsl:loop select="title">  
    <xsl:fallback>
      <xsl:for-each select="title">  
        <xsl:value-of select="."/>
      </xsl:for-each>  
    </xsl:fallback>  
  </xsl:loop>
</xsl:template>

</xsl:stylesheet>