Never mind, I figured it out myself. I had to use {../1}.
Regards,
Jacob
-----Original Message-----
From: Jacob Arnold [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 9:56 AM
To: '[EMAIL PROTECTED]'
Subject: Descriptor Sitemap Wildcard Difficulty
I'm using a fairly generic sitemap match to handle my edit forms. I'd like
to redirect the user back to the edit page after they've submitted the form,
but the "edit-{1}.xsp" wildcard within the action doesn't seem to work. I
get the error message:
java.io.FileNotFoundException:
d:\jakarta-tomcat-4.1.12\webapps\cocoon\encode\docs\accounting\edit-.xsp
(The system cannot find the file specified)
I'm using Cocoon 2.0.3 and my sitemap fragment is below. Any ideas?
Thanks,
Jacob
<map:match pattern="accounting/edit-*.html">
<map:act set="process">
<map:parameter name="descriptor" value="descriptors/{1}.xml"/>
<map:aggregate element="document">
<map:part src="cocoon:/menu.xml" strip-root="true"/>
<!-- The problem seems to be in the following line. -->
<map:part src="cocoon:/accounting/edit-{1}.xsp" strip-root="true"/>
</map:aggregate>
<map:transform src="stylesheets/encode-html.xsl"/>
<map:serialize/>
</map:act>
<map:aggregate element="document">
<map:part src="cocoon:/menu.xml" strip-root="true"/>
<map:part src="cocoon:/accounting/edit-{1}.xsp" strip-root="true"/>
</map:aggregate>
<map:transform src="stylesheets/encode-html.xsl"/>
<map:serialize/>
</map:match>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>