Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

applying style to element tags 1

Status
Not open for further replies.

gregmosu

Programmer
Jul 8, 2002
117
US
How would I go about applying a style to an element tag. This is how I'm displaying links to the page.

<xsl:element name="a">
<xsl:attribute name="href">../templates/<xsl:value-of select="$templates//templates/template/n3/link"/></xsl:attribute>
<xsl:value-of select="$templates//templates/template/n3/name"/>
</xsl:element>

Ordinary, I would be able to do class="href_style" within the anchor tag, but I'm not sure where to put it in the element tag. Any help would be appreciated.

Thanks,
Greg
 
Same way you did the href-attribute:
<xsl:attribute name="class">href_style</xsl:attribute>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top