最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

XSLT <xsl:attribute> 元素

定義和用法

<xsl:attribute> 元素用于向元素添加屬性。

注釋:<xsl:attribute> 元素會(huì)替換名稱相同的已有屬性。

語(yǔ)法

<xsl:attribute name="attributename" namespace="uri">
  <!-- Content:template -->
</xsl:attribute>

屬性

屬性 描述
name attributename 必需。規(guī)定屬性的名稱。
namespace URI 可選。為屬性定義命名空間的 URI。

實(shí)例

例子 1

向 picture 元素添加 source 屬性:

<picture>
  <xsl:attribute name="source"/>
</picture>

例子 2

向 picture 元素添加 source 屬性,并使用 "images/name" 中的值為其賦值:

<picture>
  <xsl:attribute name="source">
    <xsl:value-of select="images/name" />
  </xsl:attribute>
</picture>

例子 3

創(chuàng)建能夠應(yīng)用到任何輸出元素的屬性集:

<xsl:attribute-set name="font">
  <xsl:attribute name="fname">Arial</xsl:attribute>
  <xsl:attribute name="size">14px</xsl:attribute>
  <xsl:attribute name="color">red</xsl:attribute>
</xsl:attribute-set>
进贤县| 比如县| 梧州市| 靖江市| 新平| 荥阳市| 蒙山县| 安阳市| 东海县| 闽清县| 邓州市| 大埔县| 晋宁县| 亳州市| 东阿县| 蓬莱市| 平顺县| 双流县| 麻江县| 彝良县| 怀宁县| 舞钢市| 金堂县| 且末县| 阳春市| 隆子县| 阿拉善左旗| 义马市| 宜兰市| 庄河市| 朔州市| 山东| 新乡县| 和龙市| 卢氏县| 进贤县| 穆棱市| 延吉市| 田林县| 故城县| 安吉县|