<xsl:attribute> - XSLT: Extensible Stylesheet Language Transformations 编辑
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes
The <xsl:attribute>
element creates an attribute in the output document, using any values that can be accessed from the stylesheet. The element must be defined before any other output document element inside the output document element for which it establishes attribute values. But it may be after or inside elements that won't be part of the output (like <xsl:choose>
or <xsl:apply-templates>
etc.).
Syntax
<xsl:attribute name=NAME namespace=URI> TEMPLATE </xsl:attribute>
Required Attributes
name
- Specifies the name of the attribute to be created in the output document. The name must be a valid QName.
Optional Attributes
namespace
- Defines the namespace URI for this attribute in the output document. You cannot set the related namespace prefix with this element.
Type
Instruction, appears within a template or an <xsl:attribute-set>
element.
Defined
XSLT, section 7.1.3.
Gecko support
Supported.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论