You're right.  I'll admit that I am by no means an HTML expert and that many 
of the things I described here can probably be done as long as you are 
looking for output for an HTML browser.  My problem is that I'm not trying to 
use the HTML code as a browser would, but instead parse it to display on the 
command line in the fashion that I am looking for (not the same as what lynx 
would do).  Feel free to take a look at the wiki to see more details of the 
CLI project.

Wesley

On Thursday 08 June 2006 10:54 am, Ted Powell wrote:
> On Thu, Jun 08, 2006 at 09:02:36AM -0400, Wesley Bland wrote:
> > As you may have seen this summer I'm working on making a CLI for the
> > OSCAR Installer.  As I have moved into the configurator step (Step 2), I
> > have run into a major problem.  HTML is very difficult to parse into a
> > command line format. [...]
>
> The configurator I'm familiar with uses a graphics toolkit rather than
> HTML, so this is necessarily just a general comment on HTML (which I'm
> very familiar with).
>
> > For example, logically, to use a radio button, a label is necessary.
> >  However, in HTML there is no way to connect a label to a button because
> > the label could be to the left, right, above, or below the button.
>
> Physical location on the web page is not an issue. If the page is done
> right, the <label> will have a "for" attribute that matches the radio
> button's "id" attribute.
>
> >                                                           Other problems
> > arise when trying to connect things like checkboxes, which have no way to
> > be tied together.
>
> Yes they do, the <fieldset> and <legend> tags.
>
> Again, this is a general comment on HTML, prompted by the assertion "in
> HTML there is no way". In your specific case, you are at the mercy of
> the code that generates the web page, which may or may not link and
> group things properly. But in HTML there _is_ a way, and the author of
> the web page(s) in question should be using it.
>
> For further information, see:
>
>     HTML & XHTML: The Definitive Guide
>     Chuck Musciano & Bill Kennedy
>     O'REILLY
>
>     Chapter 9: Forms
>     Section 9.10: Labeling and Grouping Form Elements
>
> I'm still using the fourth edition, from 2000, so the chapter and
> section numbering may be different now.

-- 
Wesley Bland
576-5508
[EMAIL PROTECTED]


_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to