Sophie

Sophie

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

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

<RefEntry id="component-descendant-node-list">
<!-- This file is generated automatically from the DSSSL source. -->
<!-- Do not edit this file! -->
<?html-filename component-descendant-node-list.html>

<RefMeta>
  <RefEntryTitle>component-descendant-node-list</RefEntryTitle>
  <RefMiscInfo Role="file">dblib.dsl</RefMiscInfo>
</RefMeta>

<RefNameDiv>
  <RefName>component-descendant-node-list</RefName>
  <RefPurpose>Find all 'inputnd's within an ancestor element</RefPurpose>
</RefNameDiv>

<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
(component-descendant-node-list inputnd complist)
</Synopsis>
</RefSynopsisDiv>

<RefSect1><Title>Description</Title>

<para>
Finds the first ancestor of <literal>inputnd</literal> in <literal>complist</literal> and then returns
a node list of all the <literal>inputnd</literal>s within (that are descendants of) 
that ancestor.</para>


</RefSect1>

<RefSect1><Title>Author</Title>

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

<ProgramListing>
(define (component-descendant-node-list inputnd complist)
  ;; Find all 'inputnd's within an ancestor element
  (let ((nd (ancestor-member inputnd complist)))
    (select-elements (descendants nd) (gi inputnd))))
</ProgramListing>
</RefSect1>

</RefEntry>