Less than 100 lines of commented code — ASP using VBScript — controls all the navigation and HTML page displays within the site. Similar scripts are also provided for ASP using C#, PHP, JSP, Java Filters, and ColdFusion.

The elegance of this architecture is that one script file manages the entire site. Whether the site grows from 20 pages to 200, the same script handles every request — no new scripts are ever needed for new content pages.

What the Script Does

The single management script performs these tasks on every page request:

1. Reads the URL request — determines which section and which sub-page the user has requested by reading URL query string parameters.

2. Locates the XML content file — maps the request to the appropriate XML file in the correct section subdirectory.

3. Selects the correct XSL stylesheet — chooses between the home page stylesheet and the section page stylesheet based on the type of request.

4. Performs the transformation — invokes the server's XML parser and XSLT processor to transform the XML with the XSL and produce HTML output.

5. Sends the HTML to the browser — streams the resulting HTML page directly to the user's browser as a standard HTTP response.

Available Implementations

The complete script is available in six server-side languages, all included in the downloadable source code packages:

ASP (VBScript) — primary implementation
ASP.NET (C#) — .NET Framework implementation
PHP — using the PHP XSL extension
JSP — using Java's javax.xml.transform API
Java Filter — servlet filter implementation
ColdFusion — using <cfxml> and <cfxslt> tags

Download ASP (VBScript) Version

← Back to Directory Structure    Continue to Two XSL Files →