How to use xsl:attribute-set element

In this article i am going to explain xsl:attribute-set element
  • 2541

The <xsl:attribute-set> tag is used to create a named set of attributes.It contain zero or more xsl:attribute elements,the <xsl:attribute-set> can be applied as whole to the output document.The <xsl:attribute-set> element is support to IE 6.0 and FF 1.0.

Syntax of xsl:attribute

<xsl:attribute-set name="SOME NAME" use-attribute-sets="LIST OF NAME">

    <!--TEMPLATE---->

    </xsl:attribute>

It have contain two attributes-

  • name

               The name attribute specifies the name of attribute-set.

  • use-attribute-sets

              The user:attributes-sets is white space-separated list of attribute sets.The names of the contributing sets must be separated with white space characters and must not directly or indirectly embed themselves.

Example of Create an attribute set

<xsl:attribute-set name="font">

 

  <xsl:attribute name="SetAttribute">red</xsl:attribute>

  <xsl:attribute name="size">30px</xsl:attribute>

  <xsl:attribute name="color">aqua</xsl:attribute>

 

</xsl:attribute-set>

Further Readings

You may also want to read these related articles :

Ask Your Question

Ask Your Question Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.