Partial example of the XML source file used.
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="xml.xsl" ?>
<!DOCTYPE page SYSTEM "xml.dtd">
<page>
<action>1</action>
<headelements>
<title>Main Page</title>
<stylefile source="xml.css" />
<scriptfile source="xml.js" language="JavaScript" />
</headelements>
<pagetitle>Welcome to the Dragon\'s Lair</pagetitle>
<quote title="THOUGHT FOR THE MOMENT">Anything free is worth what you pay for it.</quote>
<horoscope title="SCORPIO\'S HOROSCOPE FOR TODAY">
Issues of love and partnership are apt to be a source of trouble for you today.
It seems as though your heart is going through a bit of withdrawal in one way
or another. It is probably best for you to spend some time alone and come back
to your own true center. Think about it!
</horoscope>
</page>
Part of the DTD (Document Type Definition) for this XML file:
<!ELEMENT page (action, headelements, body)>
<!ELEMENT action (#PCDATA)>
<!ELEMENT headelements (title, (stylefile | scriptfile)*)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT stylefile (#PCDATA)>
<!ATTLIST stylefile source CDATA #REQUIRED>
<!ELEMENT scriptfile (#PCDATA)>
<!ATTLIST scriptfile source CDATA #REQUIRED>
<!ATTLIST scriptfile language CDATA #IMPLIED>
...