<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html> <head> <this-is section="extensions" page="functions" subpage="generateid"/> <!-- Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: saxon:generate-id()</title> <meta name="coverage" content="Worldwide"/> <meta name="copyright" content="Copyright Saxonica Ltd"/> <meta name="title" content="Saxonica: XSLT and XQuery Processing: saxon:generate-id()"/> <meta name="robots" content="noindex,nofollow"/> <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/> </head> <body class="main"> <h1>saxon:generate-id()</h1> <p><b>saxon:generate-id($node as node()) => xs:string</b></p> <p>This function returns a string that acts as a unique identifier for the supplied node. The identifier will always consist of ASCII letters and digits and will start with a letter.</p> <p>The function is identical to the XSLT generate-id() function. It is provided as an extension function in the Saxon namespace to make it available in contexts other than XSLT, for example in XQuery.</p> <p><i>This function is obsolescent, since the <code>generate-id()</code> function is available in XPath 3.0 and XQuery 3.0.</i></p> <table width="100%"> <tr> <td> <p align="right"><a class="nav" href="getpseudoattribute.xml">Next</a></p> </td> </tr> </table> </body> </html>