


                Un documento SGML de ejemplo con DTD incluida 
                      (material original de Jon Bosak)

 <!DOCTYPE HTMLLite [
 <!ELEMENT HTMLLite O O (H1|P)* >
 <!ELEMENT (H1|P) - - (#PCDATA|EM|STRONG)* >
 <!ELEMENT (EM|STRONG) - - (#PCDATA)>
 ]>
 <HTMLLite>
 <H1>This is a heading</H1>
 <P>This is text</P>
 <P>This is <em>bold</em></P>
 <P>This is <strong>strong</strong></P>
 </HTMLLite>



                      La hoja de estilo correspondiente

 <!DOCTYPE style-sheet system "style-sheet.dtd" >
 <!-- you must have James Clark's style-sheet.dtd for this parse to
correctly. -->

 (element HTMLLite (make simple-page-sequence))

 (element H1
   (make paragraph
         font-family-name: "Times New Roman"
         font-weight: 'bold
         font-size: 20pt
         line-spacing: 22pt
         space-before: 15pt
         space-after: 10pt
         start-indent: 6pt
         first-line-start-indent: -6pt
         quadding: 'center
         keep-with-next?: #t))

 (element P (make paragraph       
         font-family-name: "Times New Roman"
         font-size: 12pt
         line-spacing: 13.2pt
         space-before: 6pt
         start-indent: 6pt       
 quadding: 'start))

 (element EM (make sequence
     font-posture: 'italic))

 (element STRONG (make sequence
     font-weight: 'bold))
