List Info

Thread: usecases in the live area (will pay someone for assistance!)




usecases in the live area (will pay someone for assistance!)
user name
2006-11-23 06:58:47
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:michaelralston.id.au] 
Sent: Wednesday, 22 November 2006 10:42 AM
To: userlenya.apache.org
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</c
include:src>
</cinclude:includexml>

In the sitemap, this is matched by:

<map:match pattern="search.xml">
  <map:generate
src="cocoon:/search/{page-envelope:publication-id}/{pag
e-envelope:area}.xml"
/>
  <map:transform
src="fallback://lenya/modules/lucene/xslt/search2html.x
sl">
    <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-e
nvelope: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:michaelralston.id.au] 
Sent: Wednesday, 22 November 2006 9:51 AM
To: userlenya.apache.org
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: user-unsubscribelenya.apache.org
For additional commands, e-mail: user-helplenya.apache.org



------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )