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
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|