Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > b3bdfe6d859a3d6920ff2c44b38e9a6f > files > 358

saxon-manual-9.4.0.9-2.mga7.noarch.rpm

<?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 &amp;nbsp; in HTML output.
 To do this, write:</p>
      <div class="codeblock"
           style="border: solid thin; background-color: #B1CCC7; padding: 2px">
         <pre>
            <code>&lt;saxon:entity-ref name="nbsp"/&gt;</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>&amp;#160;</code> or <code>&amp;#xa0;</code> in the stylesheet. By
default, with HTML output, this will be serialized as <code>&amp;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>