Dynamically generating HTML pages with XMLC (1/4) - exploring XML | WebReference

Dynamically generating HTML pages with XMLC (1/4) - exploring XML

Dynamically generating HTML pages with XMLC

Various technologies are currently used on Web sites for dynamically generating HTML pages. The most popular are still CGI-based solutions using Perl, PHP or more recently Python to inject program snippets into HTML templates. With the growing popularity of Java servlets and the "invention" of Java Server Pages (JSP), a translation of Microsoft's Active Server Pages (ASP) concept, Java can now do much of the same.

While these technologies are well-employed and proven, they have a number of shortcomings:

The XMLC Approach

XMLC is a product of Lutris Technologies , integrated with their popular open-source Enhydra Application Server, but also available separately. XMLC provides an object-oriented mechanism for creating dynamic content from static HTML and XML documents. XMLC converts a HTML or XML document to a Java class. The compiled pages are represented using the DOM (Document Object Model). The generated class is then used by Java code to create dynamic HTML.

This approach moves a technology that is already well-established in your favorite Web browser on to the server-side of the Web equation. I presume most of you are familiar with the DOM model in the browser, and using JavaScript or VBScript to manipulate the exposed HTML document. XMLC gives you the exact same model on top of Java servlets.

XMLC Advantages

The advantages for using XMLC for content development are: While XMLC is particularly helpful for generating dynamic HTML/XML pages on a server for display in a browser, XMLC is a good choice for any application that requires manipulation of pre-parsed XML files.

XMLC is perfect for the following development process.


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

URL: http://www.webreference.com/xml/column23/index.html
Created: Nov 05, 2000
Revised: Nov 05, 2000