Sophie

Sophie

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

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="output-extras" subpage="xquery-method"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: The saxon:xquery serialization method</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: The saxon:xquery serialization method"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>The saxon:xquery serialization method</h1>
      <p><i>Requires Saxon-PE</i></p>
      <p>An additional serialization method <code>saxon:xquery</code> is available. This is intended to be useful when
generating an XQuery query as the output of a query or stylesheet. This method differs from the XML serialization
method in that "&lt;" and "&gt;" characters appearing between curly braces (but not between quotes) in text nodes
and attribute nodes are not escaped. The idea is to allow queries to generated, or to be written within an XML document, and
processed by first serializing them with this output method, then parsing the result with the XQuery parser.
For example, the document <code>&lt;a&gt;{$a &amp;lt; '&amp;lt;'}&lt;/a&gt;</code> will serialize as 
<code>&lt;a&gt;{$a &lt; '&amp;lt;'}&lt;/a&gt;</code>. </p>
      <p>When invoking this method via an API, use the property value "{http://saxon.sf.net/}xquery".</p>
      <p>When using this serialization method, the <code>omit-xml-declaration</code> parameter is automatically
set to "yes".</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="user-defined-atts.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>