This is neat work but basically you're still writing HTML with an embedded
programming language.
Programming with SXML can remove this impedance mismatch.
The following code
http://zowie.metnet.navy.mil/~spawar/JMV-TNG/Code/get-obs.scm
implements essentially a Web service. The same (SXML) form is
converted either into an HTML form, or into a request language
sentence, which is later converted into an XML reply. Thus both the
user interface to solicit a request, and the fulfillment of the
request are SXML transformations, of the same form with different
stylesheets. The script above is fully operational, and can tell you
the weather at any interesting point in the globe:
http://zowie.metnet.navy.mil/cgi-bin/oleg/get-obs
Disclaimer: the
script is meant to be used for demonstrational purposes only.
|