LXP 0.8.0 HOWTO

John Worsley

Joshua Drake

This document is an excerpt from Command Prompt, Inc's book Practical PostgreSQL, published by O'Reilly. It is an introduction and usage guide to LXP (mod_lxp), an application server designed as an Apache Module. It enables specially interpreted server-side programmatic mark-up tags, and SQL database connectivity.

For more information on LXP, contact either the author, or visit Command Prompt, Inc. For more information on Practical PostgreSQL, you may visit the following websites:


Table of Contents
1. LXP
Why use LXP?
Core Features
Content Inclusion and Management
Direct SQL Methods and PostgreSQL Connectivity
Fingerless
Installing and Configuring LXP
Installing LXP
Nuts & Bolts: Configuring lxp.conf
Understanding LXP Mark-Up
LXP Tags
LXP Regions
LXP Variables and Objects
Naming Conventions
Using Variables and Objects
CGI Arguments
CGI Arrays
Direct SQL objects
Global LXP objects
Using Cookies with LXP
Setting Cookies
Accessing Cookie Values
Tag Parsing
Variable Substitution
Object Variable Value Substitution
Entity substitution
Using <varparser>
Branching Logic
The <if> and <ifnot> Tags
Using <ifcookie> and <ifnotcookie>
The <else>, <elseif> and <elseifnot> Tags
Loop Iteration
Content Inclusion
Including LXP Files
Including Flat Files
Including Token-Delimited Files
Including XML, RSS and RDF Files
Including External Content Types
Including SQL Content
Displaying Foreign Tags with <xtag>