
How about this? Corrections welcome. ========================================= <!ELEMENT block (blockRow+)> <!ELEMENT blockRow (cell+)> <!ATTLIST blockRow position (1 | 2 | 3) #REQUIRED> <!ELEMENT cell EMPTY> <!ATTLIST cell display (false | true) #REQUIRED> <!ATTLIST cell value NMTOKEN #FIXED "X"> <!ELEMENT grid (gridRow+)> <!ELEMENT gridRow (block+)> <!ATTLIST gridRow position NMTOKEN #REQUIRED> <!ELEMENT puzzle (grid)> ========================================= On Thu, Apr 29, 2010 at 9:04 AM, Kiti Chigiri Christopher <kiti.chigiri@gmail.com> wrote:
hi skunk(ette)s
I came across this interesting XML document that maps into a Sudoku puzzle,
<snip> .... Examine the XML document attached that represents a Sudoku Problem. You are required to write the DTD associated with this XML document so that it can be validated. State clearly any assumptions you make. </snip>
happy coding :-)
P.S : This is a 3rd year B.Sc Software Engineering exam question
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards, Brian Ngure