Sophie

Sophie

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

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

<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>XPathSelector</title>
      <meta name="keywords" content="Saxon.Api.XPathSelector class">
      <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
   </head>
   <body>
      <div style="width:20%; float:left; background-color:#c1cede; overflow:auto; height:100%">
         <h2>Saxon.Api</h2>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="DocumentBuilder.html">DocumentBuilder</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="DomDestination.html">DomDestination</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="DynamicContext.html">DynamicContext</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="DynamicError.html">DynamicError</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="EmptyEnumerator.html">EmptyEnumerator</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="ExtensionFunctionCall.html">ExtensionFunctionCall</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="ExtensionFunctionDefinition.html">ExtensionFunctionDefinition</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="NullDestination.html">NullDestination</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="Processor.html">Processor</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="QName.html">QName</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="SchemaManager.html">SchemaManager</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="SchemaValidator.html">SchemaValidator</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="Serializer.html">Serializer</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="StaticContext.html">StaticContext</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="StaticError.html">StaticError</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="TextWriterDestination.html">TextWriterDestination</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XPathCompiler.html">XPathCompiler</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XPathExecutable.html">XPathExecutable</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XPathSelector.html">XPathSelector</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XQueryCompiler.html">XQueryCompiler</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XQueryEvaluator.html">XQueryEvaluator</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XQueryExecutable.html">XQueryExecutable</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmAnyFunctionType.html">XdmAnyFunctionType</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmAnyItemType.html">XdmAnyItemType</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmAnyNodeType.html">XdmAnyNodeType</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmAtomicType.html">XdmAtomicType</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmAtomicValue.html">XdmAtomicValue</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmDestination.html">XdmDestination</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmEmptySequence.html">XdmEmptySequence</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmFunctionItem.html">XdmFunctionItem</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmItem.html">XdmItem</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmItemType.html">XdmItemType</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmNode.html">XdmNode</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmNodeKind.html">XdmNodeKind</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmSequenceType.html">XdmSequenceType</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XdmValue.html">XdmValue</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XmlDestination.html">XmlDestination</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XsltCompiler.html">XsltCompiler</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XsltExecutable.html">XsltExecutable</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Class&nbsp;<a href="XsltTransformer.html">XsltTransformer</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Enum&nbsp;<a href="RecoveryPolicy.html">RecoveryPolicy</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Enum&nbsp;<a href="SchemaValidationMode.html">SchemaValidationMode</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Enum&nbsp;<a href="TreeModel.html">TreeModel</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Enum&nbsp;<a href="WhitespacePolicy.html">WhitespacePolicy</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Enum&nbsp;<a href="XdmAxis.html">XdmAxis</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Interface&nbsp;<a href="IMessageListener.html">IMessageListener</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Interface&nbsp;<a href="IQueryResolver.html">IQueryResolver</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Interface&nbsp;<a href="IResultDocumentHandler.html">IResultDocumentHandler</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Interface&nbsp;<a href="IXdmEnumerator.html">IXdmEnumerator</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Interface&nbsp;<a href="IXmlLocation.html">IXmlLocation</a></p>
         </div>
         <div style="position:relative; height:4pt">
            <p>Interface&nbsp;<a href="SchemaResolver.html">SchemaResolver</a></p>
         </div>
      </div>
      <div style="width:5%; float:left; background-color:#e4eef0; overflow:auto; height:100%">
         &nbsp;
         
      </div>
      <div style="float:left; width:75%; overflow:auto; height:100%;">
         <h2><font size="-1">Saxon.Api</font><br>Class&nbsp;XPathSelector
         </h2>
         <hr>
         <dl>
            <dt><pre>public class&nbsp;XPathSelector</pre></dt>
            <dt> implements IEnumerable</dt>
         </dl>
         <dl>
            <dd>
               <p>
                  An <code>XPathSelector</code> represents a compiled and loaded XPath expression ready for execution.
                  The <code>XPathSelector</code> holds details of the dynamic evaluation context for the XPath expression.
                  
               </p>
               
               <p>An <code>XPathSelector</code> should not be used concurrently in multiple threads. It is safe,
                  however, to reuse the object within a single thread to evaluate the same XPath expression
                  several times.
                  Evaluating the expression does not change the context that has been established.
               </p>
               
               <p>An <code>XPathSelector</code> is always constructed by running the <code>Load</code> method of
                  an <code>XPathExecutable</code>.
               </p>
               
            </dd>
         </dl>
         <hr><a name="property_summary"></a><table border="1" width="100%" cellpadding="3" cellspacing="0" summary="">
            <tr border="#ccccff" class="TableHeadingColor">
               <th align="left" colspan="2"><font size="+2"><b>Property Summary</b></font></th>
            </tr>
            <tr bgcolor="white" class="TableRowColor">
               <td align="right" valign="top" width="1%"><code>&nbsp;<a href="XdmItem.html">XdmItem</a></code></td>
               <td><code><b><a href="#ContextItem">ContextItem</a></b></code><p>
                     The context item for the XPath expression evaluation.
                     
                  </p>
               </td>
            </tr>
            <tr bgcolor="white" class="TableRowColor">
               <td align="right" valign="top" width="1%"><code>&nbsp;XmlResolver</code></td>
               <td><code><b><a href="#InputXmlResolver">InputXmlResolver</a></b></code><p>
                     The <code>XmlResolver</code> to be used at run-time to resolve and dereference URIs
                     supplied to the <code>doc()</code> function.
                     
                  </p>
               </td>
            </tr>
         </table>&nbsp;<a name="method_summary"></a><table border="1" width="100%" cellpadding="3" cellspacing="0" summary="">
            <tr border="#ccccff" class="TableHeadingColor">
               <th align="left" colspan="2"><font size="+2"><b>Method Summary</b></font></th>
            </tr>
            <tr bgcolor="white" class="TableRowColor">
               <td align="right" valign="top" width="1%"><code>&nbsp;void</code></td>
               <td><code><b><a href="#SetVariable(Saxon.Api.QName,Saxon.Api.XdmValue)">SetVariable</a></b>(<a href="QName.html">QName</a>&nbsp;name, <a href="XdmValue.html">XdmValue</a>&nbsp;value)</code><p>
                     Set the value of a variable
                     
                  </p>
               </td>
            </tr>
            <tr bgcolor="white" class="TableRowColor">
               <td align="right" valign="top" width="1%"><code>&nbsp;<a href="XdmValue.html">XdmValue</a></code></td>
               <td><code><b><a href="#Evaluate()">Evaluate</a></b>()</code><p>
                     Evaluate the expression, returning the result as an <code>XdmValue</code> (that is,
                     a sequence of nodes and/or atomic values).
                     
                  </p>
               </td>
            </tr>
            <tr bgcolor="white" class="TableRowColor">
               <td align="right" valign="top" width="1%"><code>&nbsp;<a href="XdmItem.html">XdmItem</a></code></td>
               <td><code><b><a href="#EvaluateSingle()">EvaluateSingle</a></b>()</code><p>
                     Evaluate the XPath expression, returning the result as an <code>XdmItem</code> (that is,
                     a single node or atomic value).
                     
                  </p>
               </td>
            </tr>
            <tr bgcolor="white" class="TableRowColor">
               <td align="right" valign="top" width="1%"><code>&nbsp;<a href="http://msdn.microsoft.com/en-us/library/system.collections.ienumerator(VS.80).aspx">IEnumerator</a></code></td>
               <td><code><b><a href="#GetEnumerator()">GetEnumerator</a></b>()</code><p>
                     Evaluate the expression, returning the result as an <code>IEnumerator</code> (that is,
                     an enumerator over a sequence of nodes and/or atomic values).
                     
                  </p>
               </td>
            </tr>
         </table>&nbsp;<a name="property_detail"></a><table border="1" width="100%" cellpadding="3" cellspacing="0" summary="">
            <tr border="#ccccff" class="TableHeadingColor">
               <th align="left" colspan="2"><font size="+2"><b>Property Detail</b></font></th>
            </tr>
         </table><a name="ContextItem"></a><h3>ContextItem</h3><pre>public&nbsp;<a href="XdmItem.html">XdmItem</a>&nbsp;<b>ContextItem</b>&nbsp;{get; set; }</pre><dl>
            <dd>
               <p>
                  The context item for the XPath expression evaluation.
                  
               </p>
               <p> This may be either a node or an atomic
                  value. Most commonly it will be a document node, which might be constructed
                  using the <code>Build</code> method of the <code>DocumentBuilder</code> object.
                  
               </p>
            </dd>
         </dl>
         <hr><a name="InputXmlResolver"></a><h3>InputXmlResolver</h3><pre>public&nbsp;XmlResolver&nbsp;<b>InputXmlResolver</b>&nbsp;{get; set; }</pre><dl>
            <dd>
               <p>
                  The <code>XmlResolver</code> to be used at run-time to resolve and dereference URIs
                  supplied to the <code>doc()</code> function.
                  
               </p>
            </dd>
         </dl>
         <hr><a name="method_detail"></a><table border="1" width="100%" cellpadding="3" cellspacing="0" summary="">
            <tr border="#ccccff" class="TableHeadingColor">
               <th align="left" colspan="2"><font size="+2"><b>Method Detail</b></font></th>
            </tr>
         </table><a name="SetVariable(Saxon.Api.QName,Saxon.Api.XdmValue)"></a><h3>SetVariable</h3><pre>public&nbsp;void&nbsp;<b>SetVariable</b>(<a href="QName.html">QName</a>&nbsp;name,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="XdmValue.html">XdmValue</a>&nbsp;value)</pre><dl>
            <dd>
               <p>
                  Set the value of a variable
                  
               </p><b>Parameters:</b><dl>
                  <dt><code>name</code> - 
                  </dt>
                  <dd>The name of the variable. This must match the name of a variable
                     that was declared to the XPathCompiler. No error occurs if the expression does not
                     actually reference a variable with this name.
                  </dd>
               </dl>
               <dl>
                  <dt><code>value</code> - 
                  </dt>
                  <dd>The value to be given to the variable.</dd>
               </dl>
            </dd>
         </dl>
         <hr><a name="Evaluate()"></a><h3>Evaluate</h3><pre>public&nbsp;<a href="XdmValue.html">XdmValue</a>&nbsp;<b>Evaluate</b>()</pre><dl>
            <dd>
               <p>
                  Evaluate the expression, returning the result as an <code>XdmValue</code> (that is,
                  a sequence of nodes and/or atomic values).
                  
               </p>
               <p>
                  Although a singleton result <i>may</i> be represented as an <code>XdmItem</code>, there is
                  no guarantee that this will always be the case. If you know that the expression will
                  return at
                  most one node or atomic value, it is best to use the <code>EvaluateSingle</code> method, which 
                  does guarantee that an <code>XdmItem</code> (or null) will be returned.
                  
               </p>
               <dl>
                  <dt>returns</dt>
                  <dd>
                     An <code>XdmValue</code> representing the results of the expression. 
                     
                  </dd>
               </dl>
            </dd>
         </dl>
         <hr><a name="EvaluateSingle()"></a><h3>EvaluateSingle</h3><pre>public&nbsp;<a href="XdmItem.html">XdmItem</a>&nbsp;<b>EvaluateSingle</b>()</pre><dl>
            <dd>
               <p>
                  Evaluate the XPath expression, returning the result as an <code>XdmItem</code> (that is,
                  a single node or atomic value).
                  
               </p>
               <dl>
                  <dt>returns</dt>
                  <dd>
                     An <code>XdmItem</code> representing the result of the expression, or null if the expression
                     returns an empty sequence. If the expression returns a sequence of more than one item,
                     any items after the first are ignored.
                     
                  </dd>
               </dl>
            </dd>
         </dl>
         <hr><a name="GetEnumerator()"></a><h3>GetEnumerator</h3><pre>public&nbsp;<a href="http://msdn.microsoft.com/en-us/library/system.collections.ienumerator(VS.80).aspx">IEnumerator</a>&nbsp;<b>GetEnumerator</b>()</pre><dl>
            <dd>
               <p>
                  Evaluate the expression, returning the result as an <code>IEnumerator</code> (that is,
                  an enumerator over a sequence of nodes and/or atomic values).
                  
               </p>
               <dl>
                  <dt>returns</dt>
                  <dd>
                     An enumerator over the sequence that represents the results of the expression.
                     Each object in this sequence will be an instance of <code>XdmItem</code>. Note
                     that the expression may be evaluated lazily, which means that a successful response
                     from this method does not imply that the expression has executed successfully: failures
                     may be reported later while retrieving items from the iterator. 
                     
                  </dd>
               </dl>
            </dd>
         </dl>
         <hr>
      </div>
   </body>
</html>