Re: SQL for presentation



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).

.



Relevant Pages

  • Re: dereferencing hashes
    ... If I'm understanding this right each tag of the tree is ... put inside the tree as a hash reference with hash references inside ... i need to be able to pull data out ... in the same place in the HTML document, but this is a little risky if ...
    (perl.beginners)
  • Re: How to get reference to an object
    ... DOM is a tree that can contain different nodes, ... Elements, Attr, Comments, DocumentFragment and Text. ... Are you searching in a HTML document or in an XML document (where the ...
    (microsoft.public.scripting.jscript)
  • Re: SQL for presentation
    ... It's yet common in web application to have an internal tree representing the "hierarchic tag scheme". ... this is called the DOM (Document Object Model). ... Some web template systems also create this tree, then transform it to it's textual representation. ... AFAIK, in any CS101 course or book, a tree is a data structure. ...
    (comp.databases.theory)