Re: SQL for presentation
From: Bruno Desthuilliers <bdesth.quelquechose_at_free.quelquepart.fr>
Date: Thu, 06 Jul 2006 22:29:51 +0200
Message-ID: <44ad718c$0$21312$626a54ce_at_news.free.fr>
>
>
> Of course it is. And I don't doubt that one can generate HTML from
> collections of such -- as I mentioned: I've done this with two
> databases. And I've written plenty of Javascript.
>
> So, yes, an HTML document is a structure. But HTML isn't very
> rigorous and.in no way is the structure of an HTML document
> comparable to the structure of the relational model
Date: Thu, 06 Jul 2006 22:29:51 +0200
Message-ID: <44ad718c$0$21312$626a54ce_at_news.free.fr>
J M Davitt a écrit :
> Bruno Desthuilliers wrote:
>
>> J M Davitt a écrit : >> (snip) >> >>> >>>> In web applications, the presentation - HTML - is a data structure. >>> >>> HTML is a markup language. I would hesitate to call it a >>> structure simply because it has a hierarchic tag scheme. >> >> It's yet common in web application to have an internal tree >> representing the "hierarchic tag scheme". In Javascript, this is >> called the DOM (Document Object Model). Some web template systems also >> create this tree, then transform it to it's textual (HTML) >> representation. AFAIK, in any CS101 course or book, a tree is a data >> structure.
>
>
> Of course it is. And I don't doubt that one can generate HTML from
> collections of such -- as I mentioned: I've done this with two
> databases. And I've written plenty of Javascript.
>
> So, yes, an HTML document is a structure. But HTML isn't very
> rigorous and.in no way is the structure of an HTML document
> comparable to the structure of the relational model
Indeed. HTML data structure is an heterogenous tree - something that is note easy to express in a SQL DBMS (BTW, if anyone has a usable SQL schema for a HTML document, I'd be very interested). Received on Thu Jul 06 2006 - 22:29:51 CEST