spacer

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

home / experts / xml / column18

An XML toolkit for Web servers

Senior Applications Developer
Professional Technical Resources
US-OR-Portland

Justtechjobs.com Post A Job | Post A Resume
Developer News
Microsoft Shows Some Ankle With Visual Studio
Gentoo Linux Cancels Distribution
It's Official: Windows 7 at PDC, WinHEC

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 Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
Controllers: Programming Application Logic - Part 2 · How to Use JavaScript to Validate Form Data · Controllers: Programming Application Logic
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Sprint Launches Mobile WiMAX Network · Albatron Downsizes with the KI780G Mini-ITX Motherboard · Can't Find a Wi-Fi Network? Make Your Own.

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