Hey there,
I have an urgent question about DTD and since I couldn't find any DTD forums, I thought I'd take my chances and post it here:
I'm supposed to write a DTD for defining the structure of a receipt document, and one of the elements should be:
"The list of items purchased is made up of at least one, but not more than three, purchased items."
and the second one:
"The list of items purchased is made up of at least two, but not more than four, purchased items."
(I think they're basically the same)
I was thinking the answer might be something like:
<!ELEMENT items_purchased_list -- (purchased_items, purchased_items, purchased_items?, purchased_items?)>
(for the more than 2, and less than 4)
I know it's probably a simple and stupid question, but I couldn't find the answer anywhere, it will be one of the questions I'll have to answer tomorrow (Monday 21st) and it's freaking me out. I'd appreciate any suggestions.
cheers
daniel
I have an urgent question about DTD and since I couldn't find any DTD forums, I thought I'd take my chances and post it here:
I'm supposed to write a DTD for defining the structure of a receipt document, and one of the elements should be:
"The list of items purchased is made up of at least one, but not more than three, purchased items."
and the second one:
"The list of items purchased is made up of at least two, but not more than four, purchased items."
(I think they're basically the same)
I was thinking the answer might be something like:
<!ELEMENT items_purchased_list -- (purchased_items, purchased_items, purchased_items?, purchased_items?)>
(for the more than 2, and less than 4)
I know it's probably a simple and stupid question, but I couldn't find the answer anywhere, it will be one of the questions I'll have to answer tomorrow (Monday 21st) and it's freaking me out. I'd appreciate any suggestions.
cheers
daniel