Hi,
I will test it out, I know in the past it has been a little catchy, something to do with having to hit refresh on each new document, else it maintains the old one. Also I paste the contents in rather than use the file upload.
For the first document I entered :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "test.dtd">
It asks me for the DTD referenced in the xml, so I paste your code into the box and click validate.
I get back the following report:
Code:
Errors in file test.dtd:
66: 23 The attribute type is required in the declaration of attribute "lang" for element "form".
test.dtd
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!ENTITY % uri "CDATA">
4 <!ENTITY % script "CDATA">
5 <!ENTITY % stylesheet "CDATA">
6 <!ENTITY % text "CDATA">
7 <!ENTITY % languagecode "NAME" >
8 <!ENTITY % coreattrs
9 "id ID #IMPLIED
10 class CDATA #IMPLIED
11 style %stylesheet; #IMPLIED
12 title %text; #IMPLIED" >
13 <!ENTITY % i18n
14 "lang %languagecode; #IMPLIED
15 dir (ltr|rtl) #IMPLIED" >
16 <!ENTITY % events
17 "onclick %script; #IMPLIED
18 ondblclick %script; #IMPLIED
19 onmousedown %script; #IMPLIED
20 onmouseup %script; #IMPLIED
21 onmouseover %script; #IMPLIED
22 onmousemove %script; #IMPLIED
23 onmouseout %script; #IMPLIED
24 onkeypress %script; #IMPLIED
25 onkeydown %script; #IMPLIED
26 onkeyup %script; #IMPLIED" >
27 <!ENTITY % attrs "%coreattrs; %i18n; %events;">
28 <!ENTITY % contenttype "CDATA" >
29 <!ENTITY % contenttypes "CDATA" >
30 <!ENTITY % charset "CDATA" >
31 <!ENTITY % charsets "CDATA" >
32 <!ENTITY % methodtype '(get|post)'>
33
34 <!ELEMENT script (%script;)>
35 <!ATTLIST script
36 charset %charset; #IMPLIED
37 type %contenttype; #REQUIRED
38 src %uri; #IMPLIED
39 defer (defer) #IMPLIED
40 event CDATA #IMPLIED
41 for %uri; #IMPLIED >
42 <!ELEMENT forumhome (header)>
43 <!--
44 ===============
45 Start header group
46 ===============
47 -->
48 <!ELEMENT header (logo_section,navigation_section)>
49 <!-- ========================== -->
50 <!ELEMENT logo_section (logo,logo_right)>
51 <!-- ************************************** -->
52 <!ELEMENT logo EMPTY>
53 <!ELEMENT logo_right (#PCDATA)>
54 <!-- ========================== -->
55 <!ELEMENT navigation_section (forum_location_section,form)>
56 <!ELEMENT forum_location_section (location_link)*>
57 <!ELEMENT location_link (#PCDATA)>
58 <!ATTLIST location_link href CDATA #REQUIRED
59 show (new | replace | embed ) 'new'
60 actuate (user | auto ) 'user'
61 xlink CDATA #FIXED 'simple'
62 e-dtype NMTOKEN #FIXED 'string'
63 a-dtype NMTOKENS 'href uri' >
64
65 <!ELEMENT form (script)*>
66 <!ATTLIST form %attrs; %coreattrs; %i18n; %events;
67 action %uri; #REQUIRED
68 enctype %contenttype; "application/x-www-form-urlencoded"
69 method %methodtype; 'get' #REQUIRED
70 accept %contenttypes; #IMPLIED
71 name CDATA #IMPLIED
72 onsubmit %script; #IMPLIED
73 onreset %script; #IMPLIED
74 accept-charset %charsets; #IMPLIED>
75
76 <!ELEMENT loginform (label,button)>
77 <!ATTLIST loginform action CDATA #REQUIRED
78 target CDATA #IMPLIED>
79 <!--
80 ===============
81 End header group
82 ===============
83 -->
indicating the error : 66: 23 The attribute type is required in the declaration of attribute "lang" for element "form".
Which would indicate line 66 char 23 in DTD file.
Hope that helps.
I wonder if it is a browser thing with xmlvalidation.com, I used IE6 sp2 to get that result.
Regards
Gav
Bookmarks