You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Pratik Das <Pr...@skytechsolutions.co.in> on 2004/08/31 12:59:03 UTC

selecting transform xsl based on document id

Can I set up a pipeline so that I can select the transform xsl based on a 
wild card match of document id or any part of url. I want something like 
this:

      <map:match pattern="lenyabody-*/*/*/*/**">
       <map:aggregate ....
        <map:select pattern="*" >
         <map:when test="act">
            <map:transform src="xslt/a.xsl"/>
         </map:when>
         <map:when test="def">
            <map:transform src="xslt/b.xsl"/>
         </map:when>
         <map:when test="ghy">
            <map:transform src="xslt/c.xsl"/>
         </map:when>
         <map:otherwise>
            <map:transform src="xslt/default.xsl"/>
         </map:otherwise>
      </map:match>

regards
Pratik




"Gregor J. Rothfuss" <gr...@apache.org> 
08/31/2004 01:42 AM
Please respond to
"Lenya Users List" <le...@cocoon.apache.org>


To
Lenya Users List <le...@cocoon.apache.org>
cc

Subject
Re: Hide Documents in Navigation?






Torsten Schlabach wrote:

> Dear Developer Community,
> 
> 
> 
> I just wanted to get your view about this:
> 
> 
> 
> We have a project where we have a need to have documents in our 
publication
> that should not be built into the menu. These documents will be accessed 
in
> other ways, such as direct links in documents that are part of the
> navigation or via includes. But of course the editors need to have a way 
of
> creating and accessing these documents.
> 
i think there already is such an attribute, but it is not exposed in the 
  UI. edith or christian would know more.

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

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



Re: Hide Documents in Navigation

Posted by Roger Stupf <ro...@unicom.unizh.ch>.
>  > I just wanted to get your view about this:
>  >
>  >  
>  >
>  > We have a project where we have a need to have documents in our 
> publication
>  > that should not be built into the menu. These documents will be 
> accessed in
>  > other ways, such as direct links in documents that are part of the
>  > navigation or via includes. But of course the editors need to have 
> a way of
>  > creating and accessing these documents.
>  >
>  i think there already is such an attribute, but it is not exposed in 
> the
>   UI. edith or christian would know more.

Hi Gregor/Christian/Edith

We also have use cases for this (e.g. if you have a form in your page 
that creates an confirmation page that you want to write in Lenya but 
not being visible in the navigation)?

Can you tell us more about the "hiding attribute"?

Thank you and Aloha
Roger

----------------------------------------
Universität Zürich
unicommunication
Roger Stupf
Leiter Abteilung Online
Gloriastrasse 18a
8001 Zürich
+41 1 634 44 17
roger.stupf@unicom.unizh.ch
----------------------------------------

Re: selecting transform xsl based on document id

Posted by Andreas Hartmann <an...@apache.org>.
Pratik Das wrote:

> 
> Can I set up a pipeline so that I can select the transform xsl based on 
> a wild card match of document id or any part of url. I want something 
> like this:

Yes, this is possible.

BTW:

- This is a Cocoon question, please use the Cocoon users list.
- Please start a new thread (not "reply to") when you start a new topic.
- Please don't send HTML mails.

-- Andreas


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