I would like to be able use the usecase framework to execute a usecase in the live area, and have the "view" of the usecase be passed through the normal publication pipeline to aggregate menu etc and use the publication page2xhtml.xsl.
I need a solution to this asap... will pay somebody for assistance Michael Ralston -----Original Message----- From: Michael Ralston [mailto:[EMAIL PROTECTED] Sent: Wednesday, 22 November 2006 10:42 AM To: [email protected] Subject: RE: usecases in the live area What I have figured out... The lucene.search usecase defined in modules/lucene/config/cocoon-xconf/usecase-search.xconf uses modules/lucene/usecases/lucene/search.jx It contains this: <cinclude:includexml xmlns:cinclude="http://apache.org/cocoon/include/1.0"> <cinclude:src>cocoon://modules/lucene/search.xml</cinclude:src> </cinclude:includexml> In the sitemap, this is matched by: <map:match pattern="search.xml"> <map:generate src="cocoon:/search/{page-envelope:publication-id}/{page-envelope:area}.xml" /> <map:transform src="fallback://lenya/modules/lucene/xslt/search2html.xsl"> <map:parameter name="url" value="{page-envelope:document-url}"/> <map:parameter name="area" value="{page-envelope:area}"/> <map:parameter name="pub" value="{page-envelope:publication-id}"/> <map:parameter name="root" value="{base-url:{page-envelope:publication-id}:{page-envelope:area}}"/> <map:parameter name="use-request-parameters" value="true"/> </map:transform> <map:transform type="cinclude"/> <map:transform type="link-rewrite"/> <map:serialize type="xml"/> </map:match> The xsl /modules/lucene/xslt/search2html.xsl generates a div id="body" tag, <xsl:template match="search:results"> <div id="body"> <xsl:apply-templates/> </div> </xsl:template> div id=body is what would normally be matched by page2xhtml.xsl, after aggregating in the normal publication sitemap... I don't see how the sitemap can pass the request back to the publication sitemap, the usecase matcher is higher up in the xmap hierarchy. MR ________________________________________ From: Michael Ralston [mailto:[EMAIL PROTECTED] Sent: Wednesday, 22 November 2006 9:51 AM To: [email protected] Subject: usecases in the live area I'm trying to implement some usecases which are executed by visitors to a website, ie in the 'live' area. I've been looking at lucene's search usecase as it seems to be the only usecase which uses the xslt of the publication, rather than the authoring area xslt (ie, the 'Apache Lenya' then blue bar 'Open Source Content Management System'). I don't understand how the lucene usecase picks up the publication xslt, I've looked through all the sitemap files and can't find where it happens. Can anyone give me some pointers? Thanks Michael Ralston --------------------------------------------------------------------- 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]
