XML Server Getting Started    
Part 2. Programming XML Server Pages. 
Introduction  
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 
 belongs to 
xsp
namespace declared in the opening HTML tag via 
XMLNS
 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 
encapsulated 
within 
 implementation). The IMPORT statement declares the file  copyright.htc  as a place where browser 
shoud look to resolve references to 
xsp:
 objects. There can be more then one IMPORT statement associated with one 
namespace. 
 2000 2002 Computer Technology Inc. All rights reserved. 
Page 9 




J2EE Web Hosting Tundra XML Server Pages J2EE Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.