Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XSLT <xsl:attribute-set> elements


May 28, 2021 XSL T


Table of contents


XSLT -lt;xsl:attribute-set-gt; element

The XSLT-lt;xsl:attribute-set-gt; element allows you to create a property set!


XSLT <xsl:attribute-set> elements Complete XSLT element reference manual

Definitions and usages

The element creates a named set of properties. This property set (attribute-set) can be applied to the output document as a whole.

Note: It must be a child node of slt;xsl:stylesheet> or slt;xsl:transform>


Grammar

<xsl:attribute-set
name="name" use-attribute-sets="name-list">

<!-- Content:xsl:attribute* -->

</xsl:attribute-set>

Property

Attributes value describe
name name Required.The name of the attribute-set is specified.
use-attribute-sets name-list Optional.The list of other property sets used in this property set (Attribute-Set) is separated by spaces.

Instance 1

Create a set of properties that can be applied to any output element (attribute-set):

<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 <xsl:attribute-set> elements Complete XSLT element reference manual