You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@apache.org on 2002/03/08 18:31:16 UTC
cvs commit: xml-axkit/demo/xsp .htaccess error.html
matts 02/03/08 09:31:16
Added: demo .htaccess axkit.conf index.html
demo/axpoint .htaccess error.html
demo/stylesheets error.xsl style.css
demo/xpathscript .htaccess error.html
demo/xslfo .htaccess error.html
demo/xslt .htaccess error.html index.xml stylesheet.xsl
demo/xslt-sablot .htaccess error.html
demo/xsp .htaccess error.html
Log:
Initial stab at a demo directory structure for AxKit (to replace the horribly outdated example directory)
Revision Changes Path
1.1 xml-axkit/demo/.htaccess
Index: .htaccess
===================================================================
DirectoryIndex index.xml index.html
## AxKit handles .xml, .xsp, .axp (axpoint) and .dkb (docbook) files
AddHandler axkit .xml
AddHandler axkit .xsp
AddHandler axkit .axp
AddHandler axkit .dkb
## Text files handled by default-handler (I forget why I need this)
AddHandler default-handler .txt
#####################################################################
## Debugging Options
## Maximum debugging
AxLogDeclines On
AxDebugLevel 10
## Specify the stylesheet to be executed on errors
AxErrorStylesheet text/xsl /axkit/stylesheets/error.xsl
#####################################################################
#####################################################################
## Output Translation Options
## Do we apply output translations (after all XML processing)?
## - this includes things like gzipping, encoding translation,
## and user defined translations (e.g. for adding banner ads)
AxTranslateOutput On
## Do we gzip the output? (makes things v.fast, you want this)
AxGzipOutput On
#####################################################################
#####################################################################
## Caching Options
## CHANGEME if you want caching elsewhere
AxCacheDir /tmp/axkit.demo.cache
## We turn caching OFF for this demo because user may not have write
## access to the server
AxNoCache On
######################################################################
1.1 xml-axkit/demo/axkit.conf
Index: axkit.conf
===================================================================
## AxKit demo config file
## To enable this, add to your httpd.conf:
#
# Include /opt/axkit/demo/axkit.conf
#
## Making sure you fix up the path, and the path below appropriately
## Needs to be in top level httpd.conf or in a Include file
## This WILL NOT WORK in a .htaccess file.
PerlModule AxKit
## CHANGE THIS to the location of your demo files
Alias /axkit/ /opt/axkit/demo/
<Location /axkit>
AllowOverride All
</Location>
1.1 xml-axkit/demo/index.html
Index: index.html
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>AxKit Demo Page</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/axkit/stylesheets/style.css">
</head>
<body>
<h1>AxKit Demos</h1>
<p>
This page links to a set of demos for each technology in the AxKit toolchest.
Please bear in mind that some of the demos may not work depending on what modules
you happen to have installed. You can try each demo, and if it does not work,
you will see an error page informing you of what you will need to install.
</p>
<p>
<ul>
<li><a href="xslt/">XSLT demos, using XML::LibXSLT</a></li>
<li><a href="xslt-sablot/">XSLT demos, using XML::Sablotron</a></li>
<li><a href="xsp/">XSP (eXtensible Server Pages) demos</a></li>
<li><a href="xpathscript/">XPathScript demos</a></li>
<li><a href="axpoint/">AxPoint demos</a></li>
<li><a href="xslfo/">XSL-FO demos</a></li>
</ul>
</p>
</body>
1.1 xml-axkit/demo/axpoint/.htaccess
Index: .htaccess
===================================================================
## Load the module mapping:
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
## Set the error document
ErrorDocument error.html
AxAddRootProcessor text/xsl stylesheet.xsl page
1.1 xml-axkit/demo/axpoint/error.html
Index: error.html
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Error Loading Demo</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/axkit/stylesheets/style.css">
</head>
<body>
<h1>Error loading demo...</h1>
<p>
</p>
</body>
1.1 xml-axkit/demo/stylesheets/error.xsl
Index: error.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:output method="html"/>
<xsl:template match="bt">
<tr>
<xsl:if test="position() mod 2">
<xsl:attribute name="bgcolor">#eeeeee</xsl:attribute>
</xsl:if>
<td>
<xsl:value-of select="@level"/>
</td>
<xsl:apply-templates/>
</tr>
</xsl:template>
<xsl:template match="file|line">
<td>
<xsl:apply-templates/>
</td>
</xsl:template>
<xsl:template match="/">
<html>
<head>
<title>Server Error</title>
<style type="text/css">
h2, h3, h4, p, i, td, th
{
font-family: Verdana, Helvetica, sans-serif;
}
th
{
color: white;
}
</style>
</head>
<body bgcolor="white">
<h2>Server Error</h2>
<p>
The following error occurred: <xsl:value-of select="/error/msg"/>
</p>
<h3>Stack Trace:</h3>
<table border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="blue"><th>Level</th><th>File</th><th>Line #</th></tr>
<xsl:apply-templates select="/error/stack_trace/*"/>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
1.1 xml-axkit/demo/stylesheets/style.css
<<Binary file>>
1.1 xml-axkit/demo/xpathscript/.htaccess
Index: .htaccess
===================================================================
## Load the module mapping:
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
## Set the error document
ErrorDocument error.html
AxAddRootProcessor text/xsl stylesheet.xsl page
1.1 xml-axkit/demo/xpathscript/error.html
Index: error.html
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Error Loading Demo</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/axkit/stylesheets/style.css">
</head>
<body>
<h1>Error loading demo...</h1>
<p>
</p>
</body>
1.1 xml-axkit/demo/xslfo/.htaccess
Index: .htaccess
===================================================================
## Load the module mapping:
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
## Set the error document
ErrorDocument error.html
AxAddRootProcessor text/xsl stylesheet.xsl page
1.1 xml-axkit/demo/xslfo/error.html
Index: error.html
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Error Loading Demo</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/axkit/stylesheets/style.css">
</head>
<body>
<h1>Error loading demo...</h1>
<p>
</p>
</body>
1.1 xml-axkit/demo/xslt/.htaccess
Index: .htaccess
===================================================================
## Load the module mapping:
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
## Set the error document
ErrorDocument error.html
AxAddRootProcessor text/xsl stylesheet.xsl page
1.1 xml-axkit/demo/xslt/error.html
Index: error.html
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Error Loading Demo</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/axkit/stylesheets/style.css">
</head>
<body>
<h1>Error loading demo...</h1>
<p>
</p>
</body>
1.1 xml-axkit/demo/xslt/index.xml
Index: index.xml
===================================================================
<page>
Some content here please.
</page>
1.1 xml-axkit/demo/xslt/stylesheet.xsl
Index: stylesheet.xsl
===================================================================
<xsl:stylesheet>
Needs writing.
</xsl:stylesheet>
1.1 xml-axkit/demo/xslt-sablot/.htaccess
Index: .htaccess
===================================================================
## Load the module mapping:
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
## Set the error document
ErrorDocument error.html
AxAddRootProcessor text/xsl stylesheet.xsl page
1.1 xml-axkit/demo/xslt-sablot/error.html
Index: error.html
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Error Loading Demo</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/axkit/stylesheets/style.css">
</head>
<body>
<h1>Error loading demo...</h1>
<p>
</p>
</body>
1.1 xml-axkit/demo/xsp/.htaccess
Index: .htaccess
===================================================================
## Load the module mapping:
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
## Set the error document
ErrorDocument error.html
AxAddRootProcessor text/xsl stylesheet.xsl page
1.1 xml-axkit/demo/xsp/error.html
Index: error.html
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Error Loading Demo</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/axkit/stylesheets/style.css">
</head>
<body>
<h1>Error loading demo...</h1>
<p>
</p>
</body>