Scripting and XML
SimonStL at classic.msn.com
Mon Oct 20 01:00:13 BST 1997
>I expect that a few years from now this convention of putting markup and
>scripting cheek to cheek will have died out. It is just another face of
>the logical markup vs. presentational markup war. The trend is from
>inline to external, just as with presentation.
I agree with you on presentation, but I'll argue quite heartily that scripting
is becoming an integral part of content.
>object model finally allows you to refer to document elements from
>*outside* your document so that you have *less need* to directly mix
>scripts and code. Using DOM I can create a client-side program that
>takes an XML instance as input and returns XML as output. I can't do
>textual replacement (which must, by definition, be "inline"). The DOM
>model is structural processing (which can be done "remotely").
Which _can_ be done remotely - but that isn't to say that remote control is
always the best solution. OOP ticked off a lot of people when it first
appeared for suggesting that data and code might work better as a unit than as
take knocks for a similar offense. I'm not completely sure where you're
As much as I hate to use them as an example, Microsoft's scriptlets are a
strong step in the opposite direction of what you would like to see.
Scriptlets combine a small amount of code and some markup to create an
interface component that can be added easily to a page. If anything, the
trend (in my feeble opinion) is toward further mixing of code and markup, not
less. Scriptlets can be quick hacks, or they can be elaborate interface
As I said before, we'll see what people actually do with the stuff soon
Dynamic HTML: A Primer
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev