Re: Database->python->Xml->Xslt->Client

From: Alex Martelli (aleaxit_at_yahoo.com)
Date: 09/18/04


Date: Sat, 18 Sep 2004 10:49:09 +0200

Michel Claveau - abstraction méta-galactique non triviale en fuite
perpétuelle. <unseulmcmcmcmc@msupprimerlepoint.claveauPOINTcom> wrote:

> It is an architecture "en vogue" ; but AMHA, XML is verbose.

Not any more verbose, typically, than HTML doing the presentation of
whatever data the XML is encoding, which I take is the alternative John
(the OP) is comparing again (he didn't actually explain the alternative
architectures he's considering, but that one would appear to be the
default...). If the XML is a high semantic level it can end up quite a
bit more compact than the HTML needed for nice presentation, even when
you factor out a lot of CSS from the latter to rely on the CSS getting
cached.

Fashion apart, I do think the proposed architecture may improve
performance compared to having the server prepare and send all HTML. It
spreads the computational load (if the XML the server is sending is
pretty close to the database's content, at least) and may even reduce
the bandwidth (often not a key bottleneck in an intranet, particularly
these days with gigabit ethernet finally becoming cheap... but sometimes
VPNs and the like do extend an intranet over links where bandwidth CAN
be a problem!-).

Having the server supply raw data and spreading out even more work to
the clients would be more of the same, but would require way fatter
clients, and that carries its own set of issues. What the OP described
can be done easily by decent browsers, today, with no need for fat
clients and all of their many issues.

Alex



Relevant Pages

  • Re: XML Transformation Effectiveness.
    ... > I was actually looking for a server independant app like TiddlyWiki. ... > user to take the html document anywhere with them without being ... > The thing I want to do is very similar, accept I want to add an XML ... XML/XHTML), XHTML is a subset of XML. ...
    (comp.lang.javascript)
  • Re: cloneNode/appendChild and children
    ... It seems rather pointless to use XSLT to convert XML to XML. ... When, for instance, the server has finished sending all users. ... (insert the HTML as the innerHTML of a div to convert it to a DOM ...
    (comp.lang.javascript)
  • Re: Microsoft Word Development on a Web Server
    ... enable the HTML version. ... Some objects will not convert to HTML, you require XML. ... It works fine, but when I publish the page to the server, it won't ... Is it necessary to install Microsoft Office 2003 on the server, ...
    (microsoft.public.mac.office.word)
  • Server Error: Dynamisches XML über aspx
    ... zum kleineren Teil aber aus VoiceXML (das von einem ... anderen Server angefordert wird), ... sondern XML generiert nicht funktioniert (da der Inhalt kein gültiges HTML ... ..NET dynamisches XML zu erzeugen? ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: data transport
    ... in the Java world. ... My irritation with Web-services in Java is from implementing JSE clients not JEE servers. ... A small change to the interface will result in a new WSDL or whatever and your old server or old client will not simply ignore a new extraneous XML element received. ...
    (comp.lang.java.programmer)