XML Server Getting Started
Part 2. Programming XML Server Pages.
For the last six years, evolution of Internet browsers went from simple viewers of static HTML pages to hosting environment
for the number of technologies including scripting, plug ins, virtual reality applets, component authoring, etc. In that sense
browsers became powerful virtual machines for development of sophisticated user interfaces. XMLSP uses quite a few of
new technologies incorporated in modern browsers namely DHTML Behaviors, XML and WebServices as foundation of
the advanced business applications. As it is shown in the following topics programming of XML Server Pages is taking full
advantage of those technologies.
XML Server Pages Tags: quick start
The XML Server Page is a regular HTML page with XMLSP controls on it. In turn, XMLSP controls are either Internet
Explorer (IE) behavior based custom tags or behavior based
Cascading Style Sheets (CSS)
classes to be applied to regular
HTML tags. Of course, all XMLSP elements on the page have to be declared for the browser before being used.
For instance, the following page renders a company copyright statement. The XMLSP tag
namespace declared in the opening HTML tag via
attribute. It inserts horizontal ruler and link to the company's
copyright page with custom wording at the very bottom of the containing page:
In our example custom
tag helps to avoid typical HTML clutter of the hosting page (naturally,
functionality could have been replaced with couple of HTML objects the same ones that are
implementation). The IMPORT statement declares the file copyright.htc as a place where browser
shoud look to resolve references to
objects. There can be more then one IMPORT statement associated with one
2000 2002 Computer Technology Inc. All rights reserved.