Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12
2010 01 02 03 04 05 06 07 08 09 10 11 12
2011 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological   next       previous   Thread   next  

dynamically generated xml doesn't work. Toby White
  • From: Toby White <tow21@xxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: dynamically generated xml doesn't work.
  • Date: Tue, 23 Aug 2005 20:28:41 +0100
  • Organization: University of Cambridge
  • User-agent: Debian Thunderbird 1.0.2 (X11/20050602)


  • I've got modxslt working quite happily with static
    webpages. Unfortunately, I can't seem to get it
    working at all for dynamically generated webpages.

    The relevant bits of my httpd.conf look like this:

    AddHandler cgi-script .cgi .sh .pl .py
    AddType application/x-httpd-cgi .py
    AddType application/x-httpd-cgi .sh

    <Directory /var/www/siesta/>
    Options ExecCGI FollowSymlinks
    </Directory>

    <IfModule modxslt.c>
    XSLTTmpDir /tmp/mod-xslt2
    <Directory /var/www/siesta>
    XSLTEngine on
    AddHandler mod-xslt .xml
    XSLTAddFilter application/x-httpd-cgi
    XSLTAddFilter text/x-python
    XSLTAddFilter text/x-sh
    XSLTAddFilter application/xml
    XSLTAddForce text/x-python
    XSLTAddForce text/x-sh
    XSLTAddForce application/x-httpd-cgi
    XSLTAddForce application/xml
    </Directory>
    # LogFormat "%v %h %l %u %t \"%r\" %>s %b (%{mod-xslt-tmp}n)" mxslt_format
    # CustomLog /var/log/apache/mod-xslt/mod-xslt2.log mxslt_format
    </IfModule>

    (overkill on XSLTAddFilter/XSLTAddForce, I'm sure - just
    trying to get this to work)

    Now: if I try and retrieve http://my.domain/siesta/h2o.xml
    (a static file) then it is retrieved, processed with xslt
    correctly and returned to me without a problem.

    If I create a two line shell script, test.sh

    #!/bin/sh

    echo Content-Type: text/xml
    echo
    cat h2o.xml

    then if I try and retrieve
    http://my.domain/siesta/test.sh

    then the shell script is correctly executed, but modxslt
    is never triggered - the contents of h2o.xml are passed
    straight through to my user agent.

    I've tried this both with version 2004112100 (debian
    package) and 2005072700 - no difference in behaviour.

    What am I missing?

    --
    Dr. Toby White
    Dept. of Earth Sciences, Downing Street, Cambridge CB2 3EQ. UK
    Email: <tow21@xxxxxxxxx>

      Powered by Sympa