<?xml version="1.0"?>
<!DOCTYPE texinfo PUBLIC "-//GNU//DTD TexinfoML V4.12//EN" "http://www.gnu.org/software/texinfo/dtd/4.12/texinfo.dtd">
<texinfo xml:lang="en">

<setfilename>node-expand.xml</setfilename>

<!-- Makeinfo should expand non-macros such as @@ and @value -->
<!-- in node names and node references, including menus. -->
<!-- This file deliberately references "Node 1" both via -->
<!-- @value and directly; this should not trigger any errors, -->
<!-- as long as -commands-in-node-names is used. -->
<!-- Index entries should all be expanded as well. -->

<setvalue name="node1">Node 1</setvalue>


<node>
<nodename>Top</nodename>
<nodenext>(dir)</nodenext>
<nodeprev>(dir)</nodeprev>
<nodeup>(dir)</nodeup>
<unnumbered>
<title>Expansion in Node Names</title>


<menu>
<menuentry>
<menunode> Node 1  </menunode>
<menutitle> Node 1  </menutitle>
<menucomment>
</menucomment>
</menuentry><menuentry>
<menunode> @node `2'</menunode>
<menutitle> @node `2'</menutitle>
<menucomment>
</menucomment>
</menuentry><menuentry>
<menunode> ``node'' with---tricks</menunode>
<menutitle> &ldquo;node&rdquo; with&mdash;tricks</menutitle>
<menucomment>
</menucomment>
</menuentry></menu>

<para>See <xref><xrefnodename>@node `2'</xrefnodename></xref>.
</para>
</unnumbered>
</node>
<node>
<nodename>Node 1</nodename>
<nodenext>@node `2'</nodenext>
<nodeprev>Top</nodeprev>
<nodeup>Top</nodeup>
<chapter>
<title>Chapter 1</title>

<para><indexterm index="cp">entry for chapter 1</indexterm>This is chapter 1.
See <xref><xrefnodename>@node `2'</xrefnodename></xref>.
</para>
<setvalue name="sec1">Section 1.1</setvalue>

<menu>
<menuentry>
<menunode> Section 1.1</menunode>
<menutitle> Section 1.1</menutitle>
<menucomment>
</menucomment>
</menuentry></menu>

</chapter>
</node>
<node>
<nodename>Section 1.1</nodename>
<nodeprev>Node 1</nodeprev>
<nodeup>Node 1</nodeup>
<!--  node-name,  next,  previous,  up -->

<para><indexterm index="cp">entry for section 1.1</indexterm>This is section 1.1.
</para>
</node>
<node>
<nodename>@node `2'</nodename>
<nodenext>``node'' with---tricks</nodenext>
<nodeprev>Node 1</nodeprev>
<nodeup>Top</nodeup>
<!--  node-name,  next,  previous,  up -->
<chapter>
<title>Node 2</title>

<para><indexterm index="cp">entry for chapter 2</indexterm>This is chapter 2.
See <xref><xrefnodename>Node 1</xrefnodename></xref>.  See <xref><xrefnodename>Node 1</xrefnodename></xref>.
See <xref><xrefnodename>``node'' with---tricks</xrefnodename><xrefinfoname>Node with some tricks</xrefinfoname></xref>.
</para>
</chapter>
</node>
<node>
<nodename>``node'' with---tricks</nodename>
<nodeprev>@node `2'</nodeprev>
<nodeup>Top</nodeup>

<para><indexterm index="cp">tricks</indexterm>Another node.
</para>
<printindex>cp</printindex>

</node>
</texinfo>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-indent-step:1
sgml-indent-data:nil
End:
-->
