I have the following in my httpd.conf for axkit:

PerlModule AxKit
AddHandler axkit .xml
AddHandler axkit .xsp
AxCacheDir /tmp/axkit_cache/

I have an index.xml which I'm hoping to use to fetch news from a
sqlite database. My document prologue looks like:

<?xml version="1.0"?>
<?xml-stylesheet href="stylesheets/page_html.xps" type="application/x-xpathscript"?>

<xsp:page
xmlns:xsp="http://apache.org/xsp/core/v1";
xmlns:esql="http://apache.org/xsp/SQL/v2";
>

yet I can't seem to use esql successfully:

<esql:connection>
<esql:driver transactions="yes">SQLite</esql:driver>
<esql:dburl>dbname=content.db</esql:dburl>
<esql:execute-query>
<esql:query>select * from articles</esql:query>
<esql:results>
<para>News! News! News!</para>
</esql:results>
<esql:no-results>
<para>No news (is good news.)</para>
</esql:no-results>
</esql:execute-query>
</esql:connection>

results in the actual xml being dumped into my page's source.

What obvious step am I missing? ;) Or is my xsp code horribly wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to