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

The Finished DTD

The fruit of your hard labor throughout these three chapters on Modularization can now be summed up in a single file, Listing 16.4, the Recipe Markup Language DTD file.

Code Listing 16.4. The Recipe Markup Language DTD

<!-- …………………………………………………………….. -->
<!-- Recipe DTD  ………………………………………………… -->
<!-- file: recipe-1_0.dtd
-->

<!-- This is the DTD driver for Recipe 1.0.

     Please use this formal public identifier to identify it:

         "-//WebGeek//DTD XHTML Recipe 1.0//EN"
     And this namespace for recipe-unique elements:
    xmlns:recipe="http://www.webgeek.com/xmlns/recipe"
-->
<!ENTITY % XHTML.version "-//WebGeek//DTD XHTML Recipe 1.0//EN" >
<!ENTITY % Recipe-qname.mod
        SYSTEM "recipe-qname-1.mod" >
%Recipe-qname.mod;
<!-- no new namespaces needed -->
<!ENTITY NS.prefixed.extras.attrib "" >
<!-- Define the Content Model file for the framework to use -->
<!ENTITY % xhtml-model-1.mod "recipe-model-1.mod">
<!-- reserved for future use with document profiles -->
<!ENTITY % XHTML.profile  "" >
<!-- Bi-directional text support is not included here
-->
<!ENTITY % XHTML.bidi             "IGNORE" >
<!-- The events module should be included here if you need it. In this
     skeleton it is IGNOREd.
-->
<!ENTITY % xhtml-events.module "IGNORE" >
<!-- Modular Framework Module  …………………………….. -->
<!ENTITY % xhtml-framework.module "INCLUDE" >
<![%xhtml-framework.module;[
<!ENTITY % xhtml-framework.mod
     PUBLIC "-//W3C//ENTITIES XHTML 1.1 Modular Framework 1.0//EN"
            "xhtml11-framework-1.mod" >
%xhtml-framework.mod;]]>
<!-- Text Module (required)  …………………………. -->
<!ENTITY % xhtml-text.module "INCLUDE" >
<![%xhtml-text.module;[
<!ENTITY % xhtml-text.mod
     PUBLIC "-//W3C//ELEMENTS XHTML 1.1 Text 1.0//EN"
            "xhtml11-text-1.mod" >
%xhtml-text.mod;]]>
<!-- Hypertext Module (required) …………………………… -->
<!ENTITY % xhtml-hypertext.module "INCLUDE" >
<![%xhtml-hypertext.module;[
<!ENTITY % xhtml-hypertext.mod
     PUBLIC "-//W3C//ELEMENTS XHTML 1.1 Hypertext 1.0//EN"
            "xhtml11-hypertext-1.mod" >
%xhtml-hypertext.mod;]]>
<!-- Lists Module (required)  ……………………………… -->
<!ENTITY % xhtml-list.module "INCLUDE" >
<![%xhtml-list.module;[
<!ENTITY % xhtml-list.mod
     PUBLIC "-//W3C//ELEMENTS XHTML 1.1 Lists 1.0//EN"
            "xhtml11-list-1.mod" >
%xhtml-list.mod;]]>
<!-- Recipe Module ………………………………………. -->
<!ENTITY % Recipe-elements.mod
    SYSTEM "recipe-elements-1.mod" >
%Recipe-elements.mod;
<!-- XHTML Images module ………………………………….. -->
<!ENTITY % xhtml-image.mod
    PUBLIC "-//W3C//ELEMENTS XHTML Images 1.0//EN"
        "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-image-1.mod" >
%xhtml-image.mod;

<!-- Document Metainformation Module ……………………….. -->
<!ENTITY % xhtml-meta.mod
    PUBLIC "-//W3C//ELEMENTS XHTML Metainformation 1.0//EN"
        "xhtml-meta-1.mod" >
%xhtml-meta.mod;

<!-- XHTML Stylesheet Module ………………………………. -->
<!ENTITY %xhtml-style.mod
    PUBLIC "-//W3C//ELEMENTS XHTML Stylesheets 1.0//EN"
        "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-style-1.mod" >
%xhtml-style.mod;

<!-- Document Structure Module (required)  ………………….. -->
<!ENTITY % xhtml-struct.module "INCLUDE" >
<![%xhtml-struct.module;[
<!ENTITY % xhtml-struct.mod
     PUBLIC "-//W3C//ELEMENTS XHTML 1.1 Document Structure 1.0//EN"
            "xhtml11-struct-1.mod" >
%xhtml-struct.mod;]]>
<!-- end of Recipe DTD  ……………………………………………. -->
<!-- …………………………………………………………….. -->


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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