Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > b3bdfe6d859a3d6920ff2c44b38e9a6f > files > 3123

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="xsl-elements" page="processing-instruction" subpage=""/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: xsl:processing-instruction</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: xsl:processing-instruction"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>xsl:processing-instruction</h1>
      <p>The <code>xsl:processing-instruction</code> element can appear anywhere within an 
<code>xsl:template</code>.
 It causes an XML processing
instruction to be output.</p>
      <p>There is a mandatory <code>name</code> attribute which gives the name of the PI. This attribute is interpreted
as an <i>attribute value template</i>, so it may contain string expressions within curly braces.</p>
      <p>The data part of the PI may be given either by a <code>select</code> attribute or by an enclosed
sequence constructor. If the <code>select</code> attribute is used and the value is a sequence, then
the items in the sequence are output space-separated.</p>
      <p>For example:</p>
      <div class="codeblock"
           style="border: solid thin; background-color: #B1CCC7; padding: 2px">
         <pre>
            <code>&lt;xsl:processing-instruction name="submit-invoice"&gt;version="1.0"&lt;/xsl:processing-instruction&gt;</code>
         </pre>
      </div>
      <p>Note that special characters occurring within the PI text will <i>not</i>
be escaped.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="result-document.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>