WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts

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

  Thread Tools Display Modes
Old 18th March 14, 04:05 PM   #1
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:

<!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
		  type NOTATION (bmp | gif | jpeg) "gif"> // needles spaces betweeen "|" , gif instead of bmp?
buziol is offline   Reply With Quote

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 02:10 AM.

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 - 2018, Jelsoft Enterprises Ltd.