国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

XSLT <xsl:attribute> 元素

2018-02-12 15:23 更新

XSLT <xsl:attribute> 元素

你可以通過 <xsl:attribute> 元素添加元素的屬性!


XSLT 元素參考手冊 完整的 XSLT 元素參考手冊

定義和用法

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

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


語法

<xsl:attribute name="attributename" namespace="uri">

<!-- Content:template -->

</xsl:attribute>

屬性

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

實例 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>

XSLT 元素參考手冊 完整的 XSLT 元素參考手冊
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號