We must agree to differ - a pet peeve of mine is that people use HTML as a data structure language rather than as a page mark up language (cf TeX) :-) . HTML has absolutely nothing to do with data structuring - it (with CSS) only determines what goes where on a page. We are trying to use a language which is neither XML (structural) or PostScript (true page mark up) which is why it needs XML and CSS. The problem is that while HTML undoubtedly has some structural information such as paras, headings, lists etc., these are about the only ones it has. It also mixes in pure style constructs such as italic (which tell you nothing about the structure and why they are italic). To be really useful we need to have extra structural tags in the HTML such as author, date, version, footnote, inline note, citation ... - the list is obviously not insubstantial depending on the structure you are representing. Since HTML is not extendable (that was why XML was done) we have a problem. Not until XML + sensible style sheets are used instead of HTML will there be a solution that satisfies both of us. This is why Cocoon is so important - it is all a question of information flow (or some might say, entropy). I can take too much information (in XML) and deliver it in a variety of formats (HTML, PDF etc) by losing information that I do not want. But I cannot go the other way around. For example start with HTML or PDF and produce XML that is the structure that the author intended. Although by clever use of classes etc. you might end up with sufficient XML granularity to achieve this, butI believe that this is against the spirit of the whole thing. So, the question is, does it matter about divs and spans? I believe not because I would not dream of taking HTML and try and do something useful with it (screen scrapping for example) other than displaying it on a browser. If required to interpret the data it is best to deliver it in a form that is amenable to this: raw or processed XML. btw I did look at Firefox output with no style and it looked fine. I agree you could not see the headings (they looked like paras) but it certainly was not unreadable. I would totally agree with you if I had used positional information for the flow, rather than simple vertical stacking. Previous sites that I used Cocoon for always had a facility to output the data for a variety of browsers including Lynx which is styleless. Ultimately it is all a question of how you view HTML. There probably is no "correct" answer to this (cf the big-endian, little-endian holy wars of processor and bus design in the 1980s). Let us hope that XML comes sooner rather than later to the Web. My opinion is that since we are using HTML as page markup it does not really matter using divs and spans, because we get very little other benefit from using <p> and <h1> etc. However it is not something I would stake my life on. It is all a m,atter of personal preference I guess. Thanks for the appreciation of the software though. - Hugh On 7 Aug 2006, at 16:45, Jason Johnston wrote:
================================= Dr H.S. Field-Richards MIEE MIEEE CEng BSc PhD www.hopvine-music.com |
- Re: [OT] Abuse of div and span (was: Cocoon written in... Hugh Field-Richards
- Re: [OT] Abuse of div and span (was: Cocoon writt... Jason Johnston
- Re: [OT] Abuse of div and span (was: Cocoon w... Hugh Field-Richards
- Re: [OT] Abuse of div and span (was: Coco... Jason Johnston
- Re: [OT] Abuse of div and span (was: ... Hugh Field-Richards
- RE: [OT] Abuse of div and span (was: Cocoon w... Geert Josten
- Re: [OT] Abuse of div and span [EMAIL PROTECTED]
- RE: [OT] Abuse of div and span (was: Cocoon writt... Martijn C. Vos
- RE: [OT] Abuse of div and span (was: Cocoon w... Derek Hohls
- Re: [OT] Abuse of div and span (was: Coco... Jonas Lundberg