Sophie

Sophie

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

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

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

<RefMeta>
  <RefEntryTitle>sgml-root-element?</RefEntryTitle>
  <RefMiscInfo Role="file">dblib.dsl</RefMiscInfo>
</RefMeta>

<RefNameDiv>
  <RefName>sgml-root-element?</RefName>
  <RefPurpose>Test if a node is the root element</RefPurpose>
</RefNameDiv>

<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
(sgml-root-element? node)
</Synopsis>
</RefSynopsisDiv>

<RefSect1><Title>Description</Title>

<para>
Returns <literal>#t</literal> if node is the root element of the current document.</para>


</RefSect1>

<RefSect1><Title>Author</Title>

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

<ProgramListing>
(define (sgml-root-element? node)
  ;; Test if a node is the root element
  (node-list=? node (sgml-root-element node)))
</ProgramListing>
</RefSect1>

</RefEntry>