• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exercize for the aspirants

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,
I just created myself a problem to solve. Although not very difficult, it turned out not to be so easy.....Thought would share with my Co-Ranch XML Aspirants
Q. Design a DTD AND Schema for a family which contains Husband and/or wife in any order following 0 or more children. Husband and wife should occur 0 or 1 times.
I could arrive at a legthy round about solution, but trying to arive at a more precise solution.
[ May 14, 2003: Message edited by: daisy brown ]
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds interesting.
Just to make sure I follow your description - any children are supposed to be first then the wife/husband (or husband/wife), right?
Hmm, does this lead to an "empty" family? Is a family required to have a husband or a wife?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No it cant b an empty family(An empty family doesnt make sense either)...
Husband and/or wife element(s) should be present and if they occur they can occur maximum once.
In a family the first element can be husband or wife. second can be wife or husband or child or none. children can be 0 or more.
Hope I am clear now.
[ May 14, 2003: Message edited by: daisy brown ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic