<?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html> <head> <this-is section="extensions" page="instructions" subpage="entity-ref"/> <!-- Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: saxon:entity-ref</title> <meta name="coverage" content="Worldwide"/> <meta name="copyright" content="Copyright Saxonica Ltd"/> <meta name="title" content="Saxonica: XSLT and XQuery Processing: saxon:entity-ref"/> <meta name="robots" content="noindex,nofollow"/> <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/> </head> <body class="main"> <h1>saxon:entity-ref</h1> <p>The saxon:entity-ref element is useful to generate entities such as &nbsp; in HTML output. To do this, write:</p> <div class="codeblock" style="border: solid thin; background-color: #B1CCC7; padding: 2px"> <pre> <code><saxon:entity-ref name="nbsp"/></code> </pre> </div> <p><b>Note:</b> the preferred way to produce a non-breaking space character in the output is simply to write <code>&#160;</code> or <code>&#xa0;</code> in the stylesheet. By default, with HTML output, this will be serialized as <code>&nbsp;</code>, though the way it is serialized doesn't actually matter as far as the HTML browser is concerned.</p> <p><code>saxon:entity-ref</code> is permitted only in contexts where <code>disable-output-escaping</code> would be permitted: that is, when writing to a serialized output destination.</p> <table width="100%"> <tr> <td> <p align="right"><a class="nav" href="finally.xml">Next</a></p> </td> </tr> </table> </body> </html>