You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Michael Ralston <mi...@ralston.id.au> on 2006/11/23 07:58:47 UTC

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

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:michael@ralston.id.au] 
Sent: Wednesday, 22 November 2006 10:42 AM
To: user@lenya.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</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:michael@ralston.id.au] 
Sent: Wednesday, 22 November 2006 9:51 AM
To: user@lenya.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-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


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

Posted by so...@apache.org.
I would love to take your money, but I think I already posted the
instructions you want at:
http://solprovider.com/lenya/usecase

This question belongs on the User ML.  You may receive more answers there.

solprovider

On 11/23/06, Michael Ralston <mi...@ralston.id.au> wrote:
> 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
>
> From: Michael Ralston [mailto:michael@ralston.id.au]
> Sent: Wednesday, 22 November 2006 9:51 AM
> To: user@lenya.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-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org