Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 6b3585ea67ce3e79c9049b5b33294cdd > files > 614

docbook-style-dsssl-doc-1.79-16.mga7.noarch.rpm

<RefEntry id="absolute-child-number">
<!-- This file is generated automatically from the DSSSL source. -->
<!-- Do not edit this file! -->
<?html-filename absolute-child-number.html>

<RefMeta>
  <RefEntryTitle>absolute-child-number</RefEntryTitle>
  <RefMiscInfo Role="file">dblib.dsl</RefMiscInfo>
</RefMeta>

<RefNameDiv>
  <RefName>absolute-child-number</RefName>
  <RefPurpose>Returns the absolute child number of the specified node</RefPurpose>
</RefNameDiv>

<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
(absolute-child-number #!optional (nd (current-node)))
</Synopsis>
</RefSynopsisDiv>

<RefSect1><Title>Description</Title>

<para>
Returns the child number, regardless of gi, of <literal>snl</literal> within its
parent.
</para>
<para>
Isn't there a better way to get this?
</para>
<variablelist>
<varlistentry><term>snl</term>
<listitem>
<para>
The node (singleton node list) whose child number is desired.
</para>
</listitem>
</varlistentry>
</variablelist>

</RefSect1>

<RefSect1><Title>Author</Title>

<para>
Norman Walsh, &lt;ndw@nwalsh.com&gt;
</para>
</RefSect1>
<RefSect1><Title>Source Code</Title>

<ProgramListing>
(define (absolute-child-number #!optional (nd (current-node)))
  ;; Returns the absolute child number of the specified node
  (+ (node-list-length (preced nd)) 1))
</ProgramListing>
</RefSect1>

</RefEntry>