<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="entry.xsl"?>
<entry>
<title>October 31, 2005</title>

<extlink>
<mylink>index.xml</mylink>
<linktext>
Index file
</linktext>
</extlink>

<para id="p1">
<subtitle>Today is Halloween</subtitle>
<body>
It was a beautiful day. In fact it is still warm tonight. This
has been a quiet observance. This is probably because it fell
on a Monday this year.
</body>
</para>

<para id="p2">
<subtitle>Added simple links to the XML document</subtitle>
<body>
I succeeded in adding simple links to the stylesheet for this
page within a browser. It uses the "subtitle" element, the heading
for several paragraph. A paragraph, "para" element, can have a
subtitle as an option, so under one subtitle there can be more
than one paragraphs. The subtitle is a subelement of the first
paragraph, really, and several that follow do not have subtitles.
</body>
</para>

<para>
<body>
When a subtitle exists, an entry with its contents is made for
a Table of Contents, a bulleted list at the top of the document,
and a forward link is created there. It appears as blue underlined text.
The title headings are rendered as before, but are also named
links. The browser navigates to the subtitle pointed to from the
TOC, puts it at the top of the browser screen, exactly as the anchored
internal links from HTML. which is what the style sheet is implementing.
The advantage of all of this is that internal link generation is
automatic. I have also added a "toplink" element in the XML which kicks off
a template in the style sheet that creates the "top" link back to
the top of the document. The only mechanical thing I have to do is to move the
empty "toplink" element around to do some pagination.
</body>
</para>

<toplink/>

<para id="p3">
<subtitle>The style for this rendition of the XML</subtitle>
<body>
I was able to do farily sophistocated formatting in a few commands
including setting colors, font sizes, style, and fully justify the
text of the paragraphs. I was able to set the background color to
pink, the font color to navy, quite pretty, really, and set right
and left margins and font sizes for the XML elements.
</body>
</para>

<para id="p4">
<subtitle>I got links to work</subtitle>
<body>
The simple anchored links supported by HTML can be driven off the XLT
style sheet. I have done simple static links, not the kind I could
make from XML elements, but the syntax form for the simple links does
work. I have seen the example in the text book I have, but it did not
work on my system. So, I tried the static links and did get them to
work, both external and internal. I have a link from the bottom of
the page generated by this XML to the top of the page, an internal
link. It should work. ... It doess. I then got the
TOC and the links to it to work. I took  the subtitle element , if it
exists and put it in two places, make a TOC entry as the link target,
and make the named link from the subtitle, itself. Like I had to do by
hand in ordinary HTML.
</body>
</para>

<toplink/>

</entry>
