WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > HTML & XHTML > DTD file needs validation

Reply
  Thread Tools Display Modes
Old 18th March 14, 03:05 PM   #1
buziol
WLC Member
 
Join Date: Mar 2014
Posts: 1
Default DTD file needs validation

Hi, I have a short dtd file and it has about 15 errors. I have to find and describe them. Maybe someone could check my tryings and validate them? Thanks a lot.

Here is the code:


Code:
<!ENTITY % note "(tip | warning | remark)">  // there are needles brackets and spaces between "|"
<!ENTITY % content "(#PCDATA | icon | menu | ref | iconbmp)*"> //  thereare needles brackets and spaces between "|"

<!ELEMENT topic (title, bar, procedure, bar?, %note;)> // repeat of bar is invalid, %note; should be in brackets
<!ATTLIST topic id ID #IMPLIED> //should be #REQUIRED instead of #IMPLIED?

<!ELEMENT title (#PCDATA)> // correct
<!ATTLIST title keyword CDATA> // there are no description of atribute behave??

<!ELEMENT procedure (step+)> // correct

<!ELEMENT step (action, (%note;)*> // there are no bracket after "*"

<!ELEMENT action %content;> // %content; should be in brackets

<!ELEMENT tip %content;> // %content; should be in bracket
<!ATTLIST tip for (amateur|expert) "amateur"> // correct

<!ELEMENT warning % note;> // needles  space between "%", and "note",  %note; should be in brackets

<!ELEMENT remark %note;> // wyrazenie %note; should be in brackets

<!ELEMENT icon (#PCDATA)> // correct

<!ELEMENT menu (#PCDATA | shortcut)+> // needles  spaces between "|"

<!ELEMENT ref (#PCDATA)> // correct
<!ATTLIST ref link idref #REQUIRED> // ref and link should be reversed? and #IMPLIED instead of #REQUIRED ?

<!ELEMENT shortcut (#PCDATA)> // correct

<!ELEMENT tip (#PCDATA)> // correct

<!ELEMENT iconbmp EMPTY>  // correct
<!ATTLIST iconbmp src ENTITY #REQUIRED
		  type NOTATION (bmp | gif | jpeg) "gif"> // needles spaces betweeen "|" , gif instead of bmp?
buziol is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:37 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyrightę 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.