Example DTD with target namespace
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
<?xml version="1.0" encoding="UTF-8"?> <!--element and attribute declarations--> <!ELEMENT t:tournament (t:players, t:rounds, t:description?)> <!ATTLIST t:tournament start-date NMTOKEN #REQUIRED end-date NMTOKEN #REQUIRED registration-deadline NMTOKEN #REQUIRED xmlns:t CDATA #REQUIRED xmlns CDATA #FIXED "http://www.mets-blog.com/about" xsi:schemaLocation CDATA "http://www.mets-blog.com/about tournament.xsd" xmlns:xsi CDATA "http://www.w3.org/2001/XMLSchema-instance" > <!ELEMENT t:players (t:player*)> <!ELEMENT t:player ((t:date-of-birth , t:gender)? | (t:gender , t:date-of-birth)?)> <!ATTLIST t:player username ID #IMPLIED ref IDREF #IMPLIED > <!ELEMENT t:date-of-birth (#PCDATA)> <!ELEMENT t:gender (#PCDATA)> <!ELEMENT t:rounds (t:round)+> <!ELEMENT t:round (t:game*)> <!ATTLIST t:round number NMTOKEN #REQUIRED > <!ELEMENT t:game (t:players, t:game-history)> <!ELEMENT t:description (#PCDATA | t:em | t:p)*> <!ELEMENT t:game-history ((t:move)+)> <!ATTLIST t:game-history date NMTOKEN #REQUIRED status (planned | finished | stopped | running | 0 | 1 | 2 | 3 ) #REQUIRED duration NMTOKEN #IMPLIED winner IDREF #REQUIRED > <!ELEMENT t:move EMPTY> <!ATTLIST move player IDREF #REQUIRED dots NMTOKEN #REQUIRED start-point NMTOKEN #REQUIRED end-point NMTOKEN #REQUIRED > <!ELEMENT t:em (#PCDATA)> <!ELEMENT t:p (#PCDATA | t:em | t:p)*> |