Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > b3bdfe6d859a3d6920ff2c44b38e9a6f > files > 299

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="functions" subpage="columnnumber"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: saxon:column-number(node)</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: saxon:column-number(node)"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>saxon:column-number(node)</h1>
      <p><b>saxon:column-number() ==&gt; xs:integer</b></p>
      <p><b>saxon:column-number($node as node()) ==&gt; xs:integer</b></p>
      <p>This function returns the column number of a selected element within the XML document (or external entity)
that contains it. If the argument is supplied, it must be a node; if the argument is omitted, the context item is used,
in which case the context item must be a node. If line and column numbers are not maintained for the current
document, the function returns -1.</p>
      <p>To ensure that line and column numbers are maintained, use the -l (letter ell)
option on the command line.</p>
      <p>Note that the value returned is dependent on information supplied by the XML parser. For an element node, SAX parsers generally report
the line and column position of the "&gt;" character at the end of the start tag. StAX parsers by contrast report the position of the "&lt;"
character at the start of the start tag. SAX parsers report line and column numbers only for element nodes, so for
any other kind of node, the returned value will be -1.</p>
      <p>See also <a class="bodylink" href="../../extensions/functions/linenumber.xml">saxon:line-number()</a>.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="compile-query.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>