Re: WD-xhtml2-20030506: <qst>ions and <ans>wers

I agree these ought to be block elements.

> This begins to get messy, but I'd suggest that the
> structure here is really:

<qa>
  <qst>.....?</qst>
  <ans>
  <qa>
    <qst>Did...that?</qst>
    <ans>....</ans>
  </qa>
  </ans>
</qa>

I actually think this is an excellent model and would be a useful addition to the spec. Note that using the qa wrapper means you can have multiple questions with 1 answer if you like, or multiple answers to one question - both are valid cases and here, semantically valid. You could unfortunately end up with multiple of both, which a confused HTML'er may do - is it possible to specify in the DTD that it's 1+ of one but 1 of the other OR 1 of one and 1+ of the other?

This would provide a lot of interesting opportunities for UAs, including easily "Googling" the answers to questions, and validating a document to find there's a question you haven't answered ("Error: qa element without at least 1 ans element").

-Chris "SoopahMan" Moschini
http://hiveminds.info/
http://soopahman.com/

Received on Wednesday, 23 July 2003 15:24:45 UTC