W3C home > Mailing lists > Public > www-html@w3.org > July 2003

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

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Wed, 23 Jul 2003 15:24:44 -0400
To: www-html@w3.org
Message-ID: <1058988284.b9e58400cmoschini@myrealbox.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:56 GMT