spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column18

An XML toolkit for Web servers

Lead Software Engineer
Professional Technical Resources
US-OR-Portland

Justtechjobs.com Post A Job | Post A Resume
Developer News
Sir Tim Talks Up Linked Open Data Movement
From L.A. to Vegas With 100GbE
Salesforce Rolls Out Big Summer '08 Update

A lot of software is available today for processing XML data. And most of it is free of charge. This article describes an easy way to XML-enable your Web server. Just follow these four simple steps:

  1. Install Java on your Web server
  2. Enable servlets
  3. Install a Java XSL processor
  4. Install an XML-HTTP servlet

Server-side XML

A big discussion came up recently on the advantages and shortcomings of client-side vs. server-side XML processing. A matter of fact is that XML support varies widely in today's Web browsers. The situation is actually worse than with HTML 4 because this standard is covered in two documents at the W3C, namely the HTML and CSS specifications. On the other hand XML consists of various technologies built on top of each other, for instance XPath and XSL, which can be implemented fully, partially or not at all in any given product.

My recommendation is to use client-side XML only in tightly controlled intranet environments, where for instance only Internet Explorer 5 is used (in only the same sub-version, and only on one platform ...). In all other case you are much better off in processing XML on the server and then use the well-known browser-detection techniques to tailor the output to the capabilities of the client. This can go from passing through the full XML all the way to completely transforming it into DHTML. By the way, XSL-T is a good technology for producing these transformations.

Server-side Java

Most Web-servers, including the venerable machine that you get these pages from, run with Common Gateway Interface (CGI) and Server-Side Includes (SSI). While these are proven and well-working technologies they have one difficulty: Every server environment is unique and therefore quite difficult to reproduce on another machine, especially if this machine runs on another platform.

I use a Windows laptop to create, stage and preview my column, and spent quite some time and effort on creating a situation where my machine produced the same results as the Web Reference server. Many tools that are readily available on UNIX don't come with Mac, or Windows, or are only available as separate packages. Even differences between UNIX installations such as different paths to a shell program or the Perl interpreter can cause CGIs to fail.

This is where Java shines: Installing a Java virtual machine creates a uniform runtime environment on any platform for which a JVM exists. The included set of APIs works the same everywhere.

Let's install Java on your Web server.

http://www.internet.com



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
Book Review: Head First JavaScript · Web Hosting Control Panels · Use Your Blog for Fast Search Engine Rankings
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
NetApp's Virtual Storage Strategy Crystallizes · F/MC Watch: A Cisco-Centric Approach · Olympic Time Trials Use Wi-Fi Mesh

Produced by Michael Claßen
All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/xml/column18/index.html
Created: Aug 27, 2000
Revised: Aug 27, 2000