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

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

<RefNameDiv>
  <RefName>sgml-root-element</RefName>
  <RefPurpose>Returns the node that is the root element of the current document</RefPurpose>
</RefNameDiv>

<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
(sgml-root-element #!optional (grove-node (current-node)))
</Synopsis>
</RefSynopsisDiv>

<RefSect1><Title>Description</Title>

<para>
Returns the node that 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 #!optional (grove-node (current-node)))
  ;; Returns the node that is the root element of the current document
  (node-property 'document-element (node-property 'grove-root grove-node)))
</ProgramListing>
</RefSect1>

</RefEntry>
