<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet href="../make-menu.xsl" type="text/xsl"?><html> <head> <this-is section="extensions" page="attributes" subpage=""/> <!-- Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: Extension attributes (XSLT only)</title> <meta name="coverage" content="Worldwide"/> <meta name="copyright" content="Copyright Saxonica Ltd"/> <meta name="title" content="Saxonica: XSLT and XQuery Processing: Extension attributes (XSLT only)"/> <meta name="robots" content="noindex,nofollow"/> <link rel="stylesheet" href="../saxondocs.css" type="text/css"/> </head> <body class="main"> <h1>Extension attributes (XSLT only)</h1> <p>An extension attribute is an extra attribute on an XSLT-defined element. These attributes are all in the Saxon namespace <code>http://saxon.sf.net/</code>. This namespace needs to be declared in a namespace declaration, but it does not need to be listed in the <code>extension-element-prefixes</code> attribute.</p> <p>For example, the <code>saxon:assignable</code> attribute can be set as follows:</p> <div class="codeblock" style="border: solid thin; background-color: #B1CCC7; padding: 2px"> <pre> <code><xsl:variable name="counter" saxon:assignable="yes" xmlns:saxon="http://saxon.sf.net/"> </code> </pre> </div> <p>The extension attributes provided with the Saxon product are as follows:</p> <ul> <li> <p><a class="bodylink" href="attributes/assignable.xml">saxon:assignable</a>: marks a variable as updateable</p> </li> <li> <p><a class="bodylink" href="attributes/explain.xml">saxon:explain</a>: requests display of optimized expression tree</p> </li> <li> <p><a class="bodylink" href="attributes/memo-function.xml">saxon:memo-function</a>: marks a function as a memo function</p> </li> <li> <p><a class="bodylink" href="attributes/read-once.xml">saxon:read-once</a>: enables serial processing of source documents</p> </li> <li> <p><a class="bodylink" href="attributes/threads.xml">saxon:threads</a>: enables parallel processing of xsl:for-each instructions</p> </li> </ul> <table width="100%"> <tr> <td> <p align="right"><a class="nav" href="attributes/assignable.xml">Next</a></p> </td> </tr> </table> </body> </html>