summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneysx <neysx>2009-01-31 11:57:04 +0000
committerneysx <neysx>2009-01-31 11:57:04 +0000
commitca98c00b71c729b55fd2e81b5d57d58751006d0c (patch)
tree30eaf07bef4f69d91fafdf061a7c221def7aa02b
parent#204402 & #252157 Reorg menu & display GLSA/new packages/blog entries on fron... (diff)
downloadwww-redesign-ca98c00b71c729b55fd2e81b5d57d58751006d0c.tar.gz
www-redesign-ca98c00b71c729b55fd2e81b5d57d58751006d0c.tar.bz2
www-redesign-ca98c00b71c729b55fd2e81b5d57d58751006d0c.zip
Simplify DTD and use shared parts
-rw-r--r--xml/htdocs/dtd/metadoc.dtd134
1 files changed, 6 insertions, 128 deletions
diff --git a/xml/htdocs/dtd/metadoc.dtd b/xml/htdocs/dtd/metadoc.dtd
index 32cfe8f1..20e73b26 100644
--- a/xml/htdocs/dtd/metadoc.dtd
+++ b/xml/htdocs/dtd/metadoc.dtd
@@ -1,7 +1,10 @@
+<!ENTITY % common SYSTEM "common.dtd">
+
+%common;
+
<!ELEMENT metadoc (version,members,categories,files,docs)>
<!ATTLIST metadoc lang CDATA #REQUIRED
parent CDATA #IMPLIED>
-<!ELEMENT version (#PCDATA)>
<!ELEMENT members (lead*,member*)>
<!ELEMENT lead (#PCDATA)*> <!-- <lead>nickname</lead> -->
<!ELEMENT member (#PCDATA)*>
@@ -28,7 +31,6 @@
<!ELEMENT dynamic (version?, title, intro?, (listing|catid*|overview))>
<!ATTLIST dynamic metadoc CDATA #REQUIRED>
-<!ELEMENT title (#PCDATA)*>
<!ELEMENT intro (section)*> <!-- Section stuff copy/pasted from guide.dtd -->
<!ELEMENT listing (list)*>
<!ELEMENT list (#PCDATA)*>
@@ -36,130 +38,6 @@
<!ELEMENT overview EMPTY>
-<!ENTITY % inline.class "b|brite|c|e|path|img|br|mail|uri">
-<!ENTITY % pre.class "comment|i">
-<!ENTITY % block.class "box|figure|fig|note|impo|warn|pre|p|table|ul|ol">
-
-<!ELEMENT section (title?, body)>
-<!ATTLIST section id CDATA #IMPLIED>
-<!ELEMENT body (%block.class;|glsa-latest|glsaindex)*>
-<!ELEMENT figure EMPTY>
-<!ATTLIST figure caption CDATA #IMPLIED
- short CDATA #IMPLIED
- link CDATA #REQUIRED>
-<!ELEMENT fig EMPTY>
-<!ATTLIST fig short CDATA #IMPLIED
- linkto CDATA #IMPLIED
- link CDATA #REQUIRED>
-<!ELEMENT img EMPTY>
-<!ATTLIST img src CDATA #REQUIRED>
-<!ELEMENT br (#PCDATA)>
-<!ELEMENT note (#PCDATA|%inline.class;)*>
-<!ELEMENT impo (#PCDATA|%inline.class;)*>
-<!ELEMENT warn (#PCDATA|%inline.class;)*>
-<!ELEMENT pre (#PCDATA|%pre.class;)*>
-<!ATTLIST pre caption CDATA #REQUIRED>
-<!ELEMENT p (#PCDATA|%inline.class;)*>
-<!ELEMENT table (tcolumn*, tr+)>
-<!ELEMENT tcolumn EMPTY>
-<!ATTLIST tcolumn width CDATA #REQUIRED>
-<!ELEMENT tr (th|ti)+>
-<!ELEMENT th (#PCDATA|%inline.class;)*>
-<!ELEMENT ti (#PCDATA|%inline.class;|%block.class;)*>
-<!ELEMENT ul (li+)>
-<!ELEMENT ol (li+)>
-<!ELEMENT li (#PCDATA|%inline.class;|ul|ol)*>
-
-<!--STYLE TAGS-->
-<!ELEMENT b (#PCDATA|%inline.class;)*>
-<!ELEMENT brite (#PCDATA|%inline.class;)*>
-<!ELEMENT box (#PCDATA|%inline.class;)*>
-<!ELEMENT c (#PCDATA|%inline.class;)*>
-<!ELEMENT comment (#PCDATA|%pre.class;)*>
-<!ELEMENT e (#PCDATA|%inline.class;)*>
-<!ELEMENT i (#PCDATA|%pre.class;)*>
-<!ELEMENT path (#PCDATA|%inline.class;)*>
-
-<!--LINK TAGS-->
-<!ELEMENT mail (#PCDATA)*>
-<!ATTLIST mail link CDATA #IMPLIED>
-<!ELEMENT uri (#PCDATA)*>
-<!ATTLIST uri link CDATA #IMPLIED>
-
+<!ELEMENT section (include | (title?, body+))>
-<!ENTITY half "&#x00BD;"> <!-- VULGAR FRACTION ONE HALF -->
-<!ENTITY frac12 "&#x00BD;"> <!-- VULGAR FRACTION ONE HALF -->
-<!ENTITY frac14 "&#x00BC;"> <!-- VULGAR FRACTION ONE QUARTER -->
-<!ENTITY frac34 "&#x00BE;"> <!-- VULGAR FRACTION THREE QUARTERS -->
-<!ENTITY frac18 "&#x215B;"> <!-- -->
-<!ENTITY frac38 "&#x215C;"> <!-- -->
-<!ENTITY frac58 "&#x215D;"> <!-- -->
-<!ENTITY frac78 "&#x215E;"> <!-- -->
-<!ENTITY sup1 "&#x00B9;"> <!-- SUPERSCRIPT ONE -->
-<!ENTITY sup2 "&#x00B2;"> <!-- SUPERSCRIPT TWO -->
-<!ENTITY sup3 "&#x00B3;"> <!-- SUPERSCRIPT THREE -->
-<!ENTITY plus "&#x002B;"> <!-- PLUS SIGN -->
-<!ENTITY plusmn "&#x00B1;"> <!-- PLUS-MINUS SIGN -->
-<!ENTITY lt "&#38;#60;"> <!-- LESS-THAN SIGN -->
-<!ENTITY equals "&#x003D;"> <!-- EQUALS SIGN -->
-<!ENTITY gt "&#x003E;"> <!-- GREATER-THAN SIGN -->
-<!ENTITY divide "&#x00F7;"> <!-- DIVISION SIGN -->
-<!ENTITY times "&#x00D7;"> <!-- MULTIPLICATION SIGN -->
-<!ENTITY curren "&#x00A4;"> <!-- CURRENCY SIGN -->
-<!ENTITY pound "&#x00A3;"> <!-- POUND SIGN -->
-<!ENTITY dollar "&#x0024;"> <!-- DOLLAR SIGN -->
-<!ENTITY cent "&#x00A2;"> <!-- CENT SIGN -->
-<!ENTITY yen "&#x00A5;"> <!-- YEN SIGN -->
-<!ENTITY num "&#x0023;"> <!-- NUMBER SIGN -->
-<!ENTITY percnt "&#x0025;"> <!-- PERCENT SIGN -->
-<!ENTITY amp "&#38;#38;"> <!-- AMPERSAND -->
-<!ENTITY ast "&#x2217;"> <!-- ASTERISK OPERATOR -->
-<!ENTITY commat "&#x0040;"> <!-- COMMERCIAL AT -->
-<!ENTITY lsqb "&#x005B;"> <!-- LEFT SQUARE BRACKET -->
-<!ENTITY bsol "&#x005C;"> <!-- REVERSE SOLIDUS -->
-<!ENTITY rsqb "&#x005D;"> <!-- RIGHT SQUARE BRACKET -->
-<!ENTITY lcub "&#x007B;"> <!-- LEFT CURLY BRACKET -->
-<!ENTITY horbar "&#x2015;"> <!-- HORIZONTAL BAR -->
-<!ENTITY verbar "&#x007C;"> <!-- VERTICAL LINE -->
-<!ENTITY rcub "&#x007D;"> <!-- RIGHT CURLY BRACKET -->
-<!ENTITY micro "&#x00B5;"> <!-- MICRO SIGN -->
-<!ENTITY ohm "&#x2126;"> <!-- OHM SIGN -->
-<!ENTITY deg "&#x00B0;"> <!-- DEGREE SIGN -->
-<!ENTITY ordm "&#x00BA;"> <!-- MASCULINE ORDINAL INDICATOR -->
-<!ENTITY ordf "&#x00AA;"> <!-- FEMININE ORDINAL INDICATOR -->
-<!ENTITY sect "&#x00A7;"> <!-- SECTION SIGN -->
-<!ENTITY para "&#x00B6;"> <!-- PILCROW SIGN -->
-<!ENTITY middot "&#x00B7;"> <!-- MIDDLE DOT -->
-<!ENTITY larr "&#x2190;"> <!-- LEFTWARDS DOUBLE ARROW -->
-<!ENTITY rarr "&#x2192;"> <!-- RIGHTWARDS DOUBLE ARROW -->
-<!ENTITY uarr "&#x2191;"> <!-- UPWARDS ARROW -->
-<!ENTITY darr "&#x2193;"> <!-- DOWNWARDS ARROW -->
-<!ENTITY copy "&#x00A9;"> <!-- COPYRIGHT SIGN -->
-<!ENTITY reg "&#x00AE;"> <!-- REG TRADE MARK SIGN -->
-<!ENTITY trade "&#x2122;"> <!-- TRADE MARK SIGN -->
-<!ENTITY brvbar "&#x00A6;"> <!-- BROKEN BAR -->
-<!ENTITY not "&#x00AC;"> <!-- NOT SIGN -->
-<!ENTITY sung "&#x2669;"> <!-- -->
-<!ENTITY excl "&#x0021;"> <!-- EXCLAMATION MARK -->
-<!ENTITY iexcl "&#x00A1;"> <!-- INVERTED EXCLAMATION MARK -->
-<!ENTITY quot "&#x0022;"> <!-- QUOTATION MARK -->
-<!ENTITY apos "&#x0027;"> <!-- APOSTROPHE -->
-<!ENTITY lpar "&#x0028;"> <!-- LEFT PARENTHESIS -->
-<!ENTITY rpar "&#x0029;"> <!-- RIGHT PARENTHESIS -->
-<!ENTITY comma "&#x002C;"> <!-- COMMA -->
-<!ENTITY lowbar "&#x005F;"> <!-- LOW LINE -->
-<!ENTITY hyphen "&#xE4F8;"> <!-- -->
-<!ENTITY period "&#x002E;"> <!-- FULL STOP -->
-<!ENTITY sol "&#x002F;"> <!-- SOLIDUS -->
-<!ENTITY colon "&#x003A;"> <!-- COLON -->
-<!ENTITY semi "&#x003B;"> <!-- SEMICOLON -->
-<!ENTITY quest "&#x003F;"> <!-- QUESTION MARK -->
-<!ENTITY iquest "&#x00BF;"> <!-- INVERTED QUESTION MARK -->
-<!ENTITY laquo "&#x00AB;"> <!-- LEFT-POINTING DOUBLE ANGLE QUOTATION MARK -->
-<!ENTITY raquo "&#x00BB;"> <!-- RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK -->
-<!ENTITY lsquo "&#x2018;"> <!-- -->
-<!ENTITY rsquo "&#x2019;"> <!-- RIGHT SINGLE QUOTATION MARK -->
-<!ENTITY ldquo "&#x201C;"> <!-- -->
-<!ENTITY rdquo "&#x201D;"> <!-- RIGHT DOUBLE QUOTATION MARK -->
-<!ENTITY nbsp "&#x00A0;"> <!-- NO-BREAK SPACE -->
-<!ENTITY shy "&#x00AD;"> <!-- SOFT HYPHEN -->
+<!ELEMENT body (include | (%block.class;)+)>