XSLT <xsl:attribute-set> Element

## XSLT Basic

XSLT HOME XSL Languages XSLT Introduction XSLT Browsers XSLT Transform XSLT <template> XSLT <value-of> XSLT <for-each> XSLT <sort> XSLT <if> XSLT <choose> XSLT Apply

## XSLT Advanced

XSLT on the Client XSLT on the Server XSLT Edit XML XSLT Editors XSLT Summary

## XSLT Examples

XSLT Examples

## XSLT References

XSLT Elements XSLT Functions

# XSLT <xsl:attribute-set> Element

Complete XSLT Element Reference

## Definition and Usage

The <xsl:attribute-set> element creates a named set of attributes. The attribute-set can be applied as whole to the output document.

Note: Must be child of <xsl:stylesheet> or <xsl:transform>.

## Syntax

<xsl:attribute-set
name="name" use-attribute-sets="name-list">
<!-- Content:xsl:attribute* -->
</xsl:attribute-set>

## Attributes

Attribute | Value | Description
--- | --- | ---
name | name | Required. Specifies the name of the attribute-set
use-attribute-sets | name-list | Optional. A white space separated list of other attribute-sets to use in the attribute-set

### Example 1

Create an attribute-set that can be applied to any output element:

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

Complete XSLT Element Reference

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE