Complete XSLT Element Reference
The <xsl:attribute> element is used to add attributes to elements.
Note: The <xsl:attribute> element replaces existing attributes with equivalent names.
| Attribute | Value | Description |
|---|---|---|
| name | attributename | Required. Specifies the name of the attribute |
| namespace | URI | Optional. Defines the namespace URI for the attribute |
Add a source attribute to the picture element:
Add a source attribute to the picture element and fill it with values from "images/name" :
Create an attribute-set that can be applied to any output element:
Complete XSLT Element Reference
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|