June 1999
Intermediate to advanced
540 pages
21h 39m
English
<xsl:attribute>
<xsl:attribute name="
name
" >...</xsl:attribute>
Adds an attribute with the given name to an element in the result tree.
There can only be one attribute with a given name added to a specific
element. The contents of the <xsl:attribute> element form the
value of the attribute:
<xsl:element name="book" > <xsl:attribute name="title">Moby Dick</xsl:attribute> <xsl:text>This is about a whale</xsl:text> </xsl:element>
This creates the following element in the result tree:
<book title="Moby Dick" >This is about a whale</book>
Read now
Unlock full access