I was playing with AxKit::XSP::Wiki recently and came across a similar problem. I solved it by changing wikitags.xsl to the following:

<xsl:template match="edit">
<xsl:variable name="action">
<xsl:choose>
<xsl:when test="contains($request.uri,'/view/')">
<xsl:value-of select="substring-before($request.uri,'/view/')" />
<xsl:text>/edit/</xsl:text>
<xsl:value-of select="substring-after($request.uri,'/view/')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$request.uri" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<form action="{$action}" method="POST" enctype="application/x-www-form-urlencoded">
....
</xsl:template>


Additionally, you need to add "AxAddPlugin Apache::AxKit::Plugin::AddXSLParams::Request" to your Apache configuration (which should be enough to put a value into $request.uri).

HTH,
/dave

On Jan 18, 2005, at 2:50 PM, ian wrote:

Hi,
I've just set up AxKit on a small server to experiment. I've installed the AxKit::XSP::Wiki module and copied the "webstuff" contents over so that it shows up under /wiki/ on the server. I initially had trouble with having Apache::AxKit::StyleChooser::PathInfo in the server config. It stripped out the path_info and stopped the Wiki "view" script from getting its location. It kept going around in a 302-redirect loop. You might want to mention that somewhere in the docs.


Anyway, the Wiki is starting to work. The problem now is that I can't edit pages. I've traced it down to this piece of XSLT in wikitags.xsl:

<form action="{substring-before($request.uri,'/view/')}/edit/{substring- after($request.uri, '/view/')}" method="POST" enctype="application/x-www-form-urlencoded">

I got it to print the value of request.uri using an <xsl:value-of> tag. It doesn't contain anything. So the action url of the form is "/edit/" instead of "/wiki/edit/whatever".

Can anyone help?
bye

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



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



Reply via email to