I have two newbie questions concerning AxKit and hope that someone can help me:
Question 1: I don't get Xpath-Script running. When I call examples/ex.xsp in the browser, the Source is returned and not executed: <?xml version="1.0"?> <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core" xmlns="uri://axkit.org/NS/MyHomePage" language="Perl"> <page> <body> <heading>Hello World</heading> It is now: <xsp:expr>scalar localtime</xsp:expr> </body> </page> </xsp:page> ----- cutting from httpd.conf (VirtualHost) ------------- AddHandler axkit .xml AddHandler axkit .xsp AddHandler cgi-script .cgi .pl AxTranslateOutput On AxOutputCharset iso-8859-1 # Setup style type mappings AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP ---------------------------------------------------------- Question 2: Stylesheet selection via param, like: /index.xml?style=print I found this example in the axkit.org page, but didn't get behind, how the selection ist done. I saw in axkit.org/docs/xsp/guide.dkb that there are two stylesheets defined: ----------------------------------------------------------- <?xml-stylesheet href="/stylesheets/docbook_screen.xps" type="application/x-xpathscript" title="default"?> <?xml-stylesheet href="/stylesheets/docbook_print.xps" type="application/x-xpathscript" title="print" alternate="yes"?> ----------------------------------------------------------- But how and where is the selection handled? I like AxKit, it's - relatively - easy to install and easy to use for xsl-transformation. But I think more time should be spend on documentation. That would help to make AxKit easier to use for beginners. Yours Joachim Seibert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
