DTD Formatting: Attribute list Alignment

From
Deborah Aleyne Lapeyre <>
Date
2004-08-24T19:37:01+00:00
ID
a05200f19bd513e7ce366@[10.83.254.233]
Thread
DTD Formatting: Attribute list Alignment
Ask yourself, quickly, how many attributes are these and
how many are CDATA?


<!ATTLIST foo
   foo-type
     CDATA
     #IMPLIED
   %dtd-vers;
   xml:lang
     NMTOKEN
     "en"
   status
     (live |
      dead |
      phooie)
     "dead"
   foo-customization
     CDATA
     #REQUIRED
>

Now ask yourself the same question:

<!ATTLIST  foo
              foo-type   CDATA                          #IMPLIED
              %dtd-vers;
              xml:lang   NMTOKEN                            "EN"
              status     (live | dead | phooie)           "dead"
              foo-customization
                         CDATA                         #REQUIRED
>

or even this way:

<!ATTLIST  foo
              foo-type       CDATA                     #IMPLIED
              %dtd-vers;
              xml:lang       NMTOKEN                   "EN"
              status        (live | dead | phooie)     "dead"
              foo-customization
                             CDATA                     #REQUIRED
>

--dal
-- 
======================================================================
Deborah Aleyne Lapeyre               mailto:
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9633
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
   Mulberry Technologies: A Consultancy Specializing in XML and SGML
======================================================================