• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

A Home Page DTD

Listing 14.2 shows an example of a simple XML document used to show a sample home page. In this section, I will build on this example to demonstrate how to put together a simple DTD.

Code Listing 14.2. Home.xml—Home Page XML Document

<?xml version="1.0"?>
<home.page>
   <head>
      <title>
         My Home Page
      </title>
      <banner source="topbanner.jpg"/>
   </head>
   <body>
      <main.title>
         Welcome to My Home Page
      </main.title>
      <rule/>
      <text>
         <para>
            Sorry, this home page is still under construction.
            Please come back soon!
         </para>
      </text>
   </body>
   <footer source="foot.jpg"/>
</home.page>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint