title: Node position in XPath
body: <p>Suppose I got the following xml:</p>
  
  <pre><code>&lt;avdc:DbDocument Version="14.1.0.4[E14104-11]" CreationTime="2015-06-09T10:44:47" xmlns:avdc="http://www.aveva.com/xml/DbDocument" xmlns:udet="http://www.aveva.com/xml/udet" xmlns:uda="http://www.aveva.com/xml/uda"&gt;
      &lt;avdc:Project Name="SUR"&gt;
          &lt;avdc:Mdb Name="ALL"&gt;
              &lt;avdc:Database Type="9" TypeName="Engineering" Name="TAGSADMIN/DOCSREGI" Number="500" ExtractNumber="1" World="=8692/0" /&gt;
          &lt;/avdc:Mdb&gt;
      &lt;/avdc:Project&gt;
      &lt;udet:ENGDOC TYPE="ENGITE" REF="=16884/3" ACTTYPE=":ENGDOC" OWNER="=16884/2" OWNERREF="=16884/2" NAME="" DESC="" SCSYSF="" uda:ENGDOCNO="2100-0012FM5280-112-0001" uda:ENGDOCREF="" uda:ENGDOCFILE="" uda:ENGDOCAREA="" uda:ENGDOCSUBAREA="" uda:ENGDOCDATEITB="2015-06-03T21:00:00Z" /&gt;
      &lt;udet:ENGDOC TYPE="ENGITE" REF="=16884/4" ACTTYPE=":ENGDOC" OWNER="=16884/2" OWNERREF="=16884/23" NAME="" DESC="" SCSYSF="" uda:ENGDOCNO="2100-0012FM5280-112-0002" uda:ENGDOCREF="" uda:ENGDOCFILE="" uda:ENGDOCAREA="" uda:ENGDOCSUBAREA="" uda:ENGDOCDATEITB="2015-06-03T21:00:00Z" /&gt;
      &lt;udet:ENGDOC TYPE="ENGITE" REF="=16884/5" ACTTYPE=":ENGDOC" OWNER="=16884/2" OWNERREF="=16884/23" NAME="" DESC="" SCSYSF="" uda:ENGDOCNO="2100-0012FM5280-112-0002" uda:ENGDOCREF="" uda:ENGDOCFILE="" uda:ENGDOCAREA="" uda:ENGDOCSUBAREA="" uda:ENGDOCDATEITB="2015-06-03T21:00:00Z" /&gt;
  &lt;/avdc:DbDocument&gt;
  </code></pre>
  
  <p>How can I exctract row numbers for each udet:ENGDOC elements?
  Say <strong>1</strong> - for first, <strong>2</strong> - for second, etc.
  I've tried to play around with position() function but this didn't help.</p>
  
  <p>Many thanks!</p>