<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, <ndw@nwalsh.com> </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>