Does anyone have any more information about the browser selector?
Specifically, how to pass its value into a pipeline as a parameter to
the XSLT?
///Peter
On 19/12/13 15:51, Peter Flynn wrote:
On 19/12/13 12:46, Christopher Schultz wrote:
Peter,
On Dec 19, 2013, at 4:24, Peter Flynn
On 19/12/13 12:46, Christopher Schultz wrote:
Peter,
On Dec 19, 2013, at 4:24, Peter Flynn wrote:
Let me try again in a shorter post :-)
1. Has anyone ever used the browser selector?
2. Can it be used to pass the *value* to a transformation as a parameter
without resorting to map:when
Peter,
> On Dec 19, 2013, at 4:24, Peter Flynn wrote:
>
> Let me try again in a shorter post :-)
>
> 1. Has anyone ever used the browser selector?
>
> 2. Can it be used to pass the *value* to a transformation as a parameter
> without resorting to map:when, instead
Let me try again in a shorter post :-)
1. Has anyone ever used the browser selector?
2. Can it be used to pass the *value* to a transformation as a parameter
without resorting to map:when, instead of just doing selection?
///Peter
I can't see how to get the value of the browser selector into a
parameter inside a map:transform in my sitemap.xmap.
The example I found shows how to push different transforms according to
the value, eg
...etc...
but that's a very long-wind
Wednesday, December 12, 2012 9:42 PM
> To: users
> Subject: Path selector - Cocoon 2.2.
>
> Hello all,
>
> I am looking to select a path for a directory depending on language prefix.
> For example, let's say I have
>
> C:\repo\english\dir_1
>
> C:\repo\english\dir_
All you need is a correct matcher:
-Original Message-
From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com]
Sent: Wednesday, December 12, 2012 9:42 PM
To: users
Subject: Path selector - Cocoon 2.2.
Hello all,
I am looking to select a path for a directory depending on
? In other words,
use if else ? Is there a current selector that helps in this ??
Thank you
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org
erializer/' with key='map' which
might explain why the service selector can't find this serializer.
But that's just guessing on my part.
Robby
From: Robby Pelssers [mailto:robby.pelss...@ciber.com]
Sent: Friday, December 04, 2009 4:07 PM
To: users@cocoon.ap
and key 'map' is not defined
in this service selector. (Key='AvalonServiceSelector')
at
org.apache.cocoon.serialization.ZipArchiveSerializer.addEntry(ZipArchiveSerializer.java:333)
at
org.apache.cocoon.serialization.ZipArchiveSerializer.start
http://thread.gmane.org/gmane.text.xml.cocoon.devel/68380
Read the thread. Good thoughts.
You are correct that Matchers are just a special case of a Selector so
the Selector interface is better than the Matcher interface for your
goals. Selectors already have multiple conditions and "otherwi
e X/c/** and X/** (excluding
X/c/**) different?
(At least if the contained components are not "final" (serialize,
read))
("X" is an arbitrary path, not having any single path component "c";
while "c" is a simple path component (no "/"))
Using c
On Mar 17, 2008, at 5:17 PM, Mark Lundquist wrote:
You might find this interesting:
http://thread.gmane.org/gmane.text.xml.cocoon.devel/68380/focus=68408
whoops, I meant just this:
http://thread.gmane.org/gmane.text.xml.cocoon.devel/68380
:-)
-
gt; not "final" (serialize, read)
>
> Cocoon has no URI selector, wildcard or otherwise, probably as some kind
> of deliberate design choice.
>
> This kind of problem is easily solved with Perl-compatible regexps, but
> Cocoon uses the inefficient and less powerful Jakarta Rege
Rainer Pruy wrote:
wildcard *matcher* is one of the most used components with cocoon,
I'd reckon. But what to do, when one needs to handle X/c/** and X/**
(excluding X/c/**) different? At least if the contained components
are not "final" (serialize, read)
Cocoon has
"not" to just inverse the first condition with
> the wildcard matcher (while the selector just has an otherwise). Rainer
> might confirm my understanding :-)
That is it exactly.
Most suggestions depend in the end on having mutually exclusive patterns.
>
>> Solprovider sugg
Rainer had
his problems, there is no "not" to just inverse the first condition with
the wildcard matcher (while the selector just has an otherwise). Rainer
might confirm my understanding :-)
Solprovider suggested to use resources but I would go with several different
internal pipel
Rainer Pruy pisze:
> Thanks,
> yes, I am aware of nesting.
>
> To get closer to my question, just assume (may not have been stated clearly
> by me with initial post):
>
> - the condition "does not contain C" is not stated easily in terms of wildcard
> (just consider: what is the "not" of patte
But what to do, when one needs to handle X/c/** and X/** (excluding
> X/c/**) different?
> >> (At least if the contained components are not "final" (serialize, read))
> >>
> >> ("X" is an arbitrary path, not having any single path component &q
ot; (serialize, read))
>>
>> ("X" is an arbitrary path, not having any single path component "c";
>> while "c" is a simple path component (no "/"))
>>
>> Using combinations of wildcard macher and simple selector does work, but
al" (serialize, read))
>
> ("X" is an arbitrary path, not having any single path component "c";
> while "c" is a simple path component (no "/"))
>
> Using combinations of wildcard macher and simple selector does work, but is
> quite ve
What about placing a matcher for "X/c/**" above/before "X/**"? Or is my thought
too simple?
Jasha
-Original Message-
From: Rainer Pruy [mailto:[EMAIL PROTECTED]
Sent: Thu 21-2-2008 14:49
To: users@cocoon.apache.org
Subject: Is there an "url wildcard&qu
e? Perhaps if you have a better
option
you could suggest it to the developers.
Derek
>>> On 2008/02/21 at 04:22, in message <[EMAIL PROTECTED]>,
Rainer Pruy <[EMAIL PROTECTED]> wrote:
Derek,
thanks for your answer.
Yes, I'm pretty aware of the possibility of writing my
Derek,
thanks for your answer.
Yes, I'm pretty aware of the possibility of writing my own selector.
A solution based on existing "regexp-header" seemed not really to be easier or
cleaner than what I'm using up to now.
I just am curious whether I did "miss the obvio
Rainer
I am sure you will get a better answer than this :)
but, off the top of my head, could you not implement
a selector, inside your general case matcher, which could
make use of regular expressions to handle any degree
of complexity - see:
http://cocoon.apache.org/2.1/userdocs/regular
ained components are not "final" (serialize, read))
("X" is an arbitrary path, not having any single path component "c";
while "c" is a simple path component (no "/"))
Using combinations of wildcard macher and simple selector does work, but is
quit
Christian Sengstock gmail.com> writes:
> Maybe someone hacked out !what! the browser selector does and can tell?
It's too long ago that I used it to tell from mind how it works, but from the
documentation [1] I'd assume that it is always A, B and C and only the order of
the whe
Hi all,
we're working with cocoon 2.1.8.
We use(d) the browser selector to handle different views for different devices.
We always had a lot of problems with the browser selector because it's
just not logical what he does ;)
Maybe someone hacked out !what! the browser selector does an
Alexander,
The solution with the cookie input module works perfectly.
Thanks a lot,
Lionel
Alexander Daniel a ecrit le 1/05/07 2:54:
Is there a way to use the cookie-selector to check if a cookie exist,
whatever value it has.
No there isn't. The CookieSelector class returns false w
Is there a way to use the cookie-selector to check if a cookie
exist, whatever value it has.
No there isn't. The CookieSelector class returns false when a cookie
does not exist, i.e. map:otherwise will be executed. You would need
to know all possible values of the cookie to be sure
Hi,
Is there a way to use the cookie-selector to check if a cookie exist,
whatever value it has.
I tried :
src="{global:ws-url}Id={request:cookieMap/myCookieID/value}"/>
but it works if the cookie exist and has an empty value, not i
e of a sitemap parameter named
> * 'parameters'. The action returns a map with all parameters if all
> * of them exist and null otherwise."
>
>
> Andrew.
> --
> http://pseudoq.sourceforge.net/ Open source java Sudoku application
>
> >
> >-- Steve Majewski
Thanks to both Grzegorz Kossakowski and Andrew Stevens
who both pointed me to RequestParameterExistsAction.
This does exactly what I want:
uri="cocoon://vivaead/entity-resolver?document=published/{../1}/{../
2}.xml&entity=unparsed-entity-uri" />
Majewski wrote:
In the docs and examples for the request-parameter selector,
the selection tests are done on the value of a particular request-
parameter
...
...
...
But what I want to do is select different processing
depending on the presence of a reque
quest-parameter selector,
the selection tests are done on the value of a particular request-
parameter
...
...
...
But what I want to do is select different processing
depending on the presence of a request parameter:
if no parameter exists, then process doc
Steven D. Majewski napisał(a):
[...]
Is there any way to select in the sitemap based on the
presence of ANY request parameters ?
The current situation is little bit confusing and limited because null
values and empty strings usually are treated as equal in sitemap's
expressions/conditions.
In the docs and examples for the request-parameter selector,
the selection tests are done on the value of a particular request-
parameter
...
...
...
But what I want to do is select different processing
depending on the presence of a request parameter
Thank you for all responses!
Finally I use the request-parameter selector ; here my sitemap.
"traitement" is the action of my form that has two radio button with the name
"test" (value can be "cocoon" or other).
Following the value of "test" I make a diffe
: Correct selector
Subject: Re: Correct selector
On Nov 30, 2006, at 3:45 AM, Goetzmann Bertrand wrote:
> From a web page a user submits a form to a Cocoon pipeline. Depending
> on
> the value selected on the form (value of an option for example), I
> would
> like to do different p
On Nov 30, 2006, at 3:45 AM, Goetzmann Bertrand wrote:
From a web page a user submits a form to a Cocoon pipeline. Depending
on
the value selected on the form (value of an option for example), I
would
like to do different processing.
It seems I must use a selector, but witch one? The request
Hello,
>From a web page a user submits a form to a Cocoon pipeline. Depending on
the value selected on the form (value of an option for example), I would
like to do different processing.
It seems I must use a selector, but witch one? The request-parameter
selector?
I appreciate any help.
Th
Hi
I am not sure if there already exists an "isCollection" selector
...
any pointers appreciated.
Thanks
Michi
--
Michael Wechner
Wyona - Open Source Content Management -Apache Lenya
http://www.wyona.com
the selector not being accepted inside an aggregation, I managed to
obtain the requested result by pulling the seletion out of the aggregation
and into a pipeline, and then calling it cocoon:/ in the agreggation. :)
Works for me
If this isn't appropriate use, or if could add overhead please
Hi everyone
Well the selector not being accepted inside an aggregation, I managed to
obtain the requested result by pulling the seletion out of the aggregation
and into a pipeline, and then calling it cocoon:/ in the agreggation. :)
Works for me
If this isn't appropriate use, or if coul
Hi everyone
I would like to have a map:select (Request parameter selector) inside my
aggregation section , is this possible in some way ?
I manage to put it outside but offcourse this makes me duplicate a bunch of
map:parts that are common to all the selections.
This would really clean up my
Hi,
I'm not for sure, but I think that I've already seen an selector based
on a XPath expression.
Something like:
..
..
am I confused?
Thanks,
Rui
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
Mark Lundquist wrote:
On Mar 27, 2005, at 1:55 AM, Arsen A. Gutsal wrote:
Hi List.
Is that possible to determine protocol used (http://, https://) using
any site-map selectors?
if not - what's the easiest and CORRECT way to do that?
The RequestModule should give you access to the protocol. You ca
On Mar 27, 2005, at 1:55 AM, Arsen A. Gutsal wrote:
Hi List.
Is that possible to determine protocol used (http://, https://) using
any site-map selectors?
if not - what's the easiest and CORRECT way to do that?
Hi Arsen... why do you want to do that?
—ml—
---
Hi List.
Is that possible to determine protocol used (http://, https://) using
any site-map selectors?
if not - what's the easiest and CORRECT way to do that?
I think best way to do that is to use SimpleSelector[1] and Request
Input Module[2], sitemap framgnet will look like:
Hi List.
Is that possible to determine protocol used (http://, https://) using
any site-map selectors?
if not - what's the easiest and CORRECT way to do that?
--
Sincerely,
Arsen A. Gutsal
SOFTSKY Ltd CEO/Executive
SOFTSKY - Cost effective Software Development
---
Title: SELECTOR problem
Hi all,
at the moment i am using inside my sidemap a browserselector to recognize
which browser are runing on the clients to switch between application for notebooks
and pda's. The problem is, that the browser of an pda answer with the
same browser name lik
Title: Message
I am relatively new
to the cocoon and have to port an application running in cocoon-2.1-M1 to
2.1.5.1.
The action class
looks like :
public class
AuthenticatorAction extends DatabaseAuthenticatorAction {
ComponentSelector selector = null; DataSourceComponent
On 04.10.2004 17:51, Jonathan Linczak wrote:
First time using a selector (don't laugh!) and I wrote a simple
pipeline that changes based on the parameter matched:
W
On Oct 4, 2004, at 8:51 AM, Jonathan Linczak wrote:
Hi all,
First time using a selector (don't laugh!) and I wrote a simple
pipeline that changes based on the parameter ma
On Oct 4, 2004, at 8:51 AM, Jonathan Linczak wrote:
Hi all,
First time using a selector (don't laugh!) and I wrote a simple
pipeline that changes based on the parameter ma
Hi all,
First time using a selector (don't laugh!) and I wrote a simple
pipeline that changes based on the parameter matched:
When I go to the page:
The host selector mounts a folder located on a different logical disk,
as shown in the code snippet below.
It does seem to more of an IE problem as I can
David Merrilees wrote:
I have a transformation serialising an xml file as a PDF which works
fine until I use a host selector within the pipeline and it fails to
open. The host selector is working correctly except for this problem.
See the problem for yourself here:
http://www.neilrudd.co.uk/cocoon
David Merrilees wrote:
I have a transformation serialising an xml file as a PDF which works
fine until I use a host selector within the pipeline and it fails to
open. The host selector is working correctly except for this problem.
See the problem for yourself here:
http://www.neilrudd.co.uk/cocoon
David Merrilees wrote:
I have a transformation serialising an xml file as a PDF which works
fine until I use a host selector within the pipeline and it fails to
open. The host selector is working correctly except for this problem.
See the problem for yourself here:
http://www.neilrudd.co.uk/cocoon
I have a transformation serialising an xml file as a PDF which works
fine until I use a host selector within the pipeline and it fails to
open. The host selector is working correctly except for this problem.
See the problem for yourself here:
http://www.neilrudd.co.uk/cocoon/abc/index.pdf
Anyone
Hi all,
I have a problem when using the session attribute selector. It seems as if
the result of the selector gets cached somehow.
In Detail:
In the below pipeline the session attribute selector determines which
stylesheet is used to transform my xml data (either archive-run2html.xsl or
archive
Hi!
Currently I'm developing a web application for mobile phones publishing
iHTML and WML syntax using Apache Cocoon 2.1.5. I made the experience
that the different devices interpret the WML specification in different
ways. So I need to use Cocoon's browser selector to identify
hi,
i use a 'form' to pass some parameters to a 'action' which i match in a pipeline. the action can be 'redirect-to' another page based on one of the parameters. now i wanna use different transformers for different pages based on the parameters. my sitemap:
Hello
I have a resulting xml output:
username
abcd
Now I'd like to use the Parameter selector in the sitemap to give different
stylesheets depending on the value.
part of the si
otherwise case), if the second line marked with
"***" does read it with no complaint.
Any ideas? Is the class that defines the "exists" type for the selector
known to be brocken? Could I illigally/falsly have overwritten the
&
line marked with
"***" does fail to recognize the existence of the file {1}book.xml (it
always executes the otherwise case), if the second line marked with
"***" does read it with no complaint.
Any ideas? Is the class that defines the "exists" type for the selector
kno
on the value of foo.
-Original Message-
From: Sebastian Klamar
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 4:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Why a Selector is evaluated at beginning of pipeline?
Geoff, thanx for your answer.
* Geoff Howard [2004-01-12 03:56 +0100
Geoff, thanx for your answer.
* Geoff Howard [2004-01-12 03:56 +0100] wrote:
> pipeline generator->transormer->serializer is generally thought of
> like the "model" and "view" of the well known "MVC" pattern and
> therefore are not designed to be used as a "controller". You have
> matchers, selec
Geoff Howard wrote:
> Conal Tuohy wrote:
>
> > Selectors, Matchers etc are all executed at pipeline SETUP time.
> >
> > Con
>
> Oops, just saw I didn't need to bother answering - you said
> it well but
> mozilla didn't track your answer for me.
>
> Geoff
That'll teach me to use MS Outlo
Conal Tuohy wrote:
Selectors, Matchers etc are all executed at pipeline SETUP time.
Then, after the pipeline has been built, the pipeline is executed and the generator, transformers, and serializer run.
The reason is explicitly to rule out what you want to do: a previous version of Cocoon used
Sebastian Klamar wrote:
* Sebastian Klamar [2004-01-10 18:49 +0100] wrote:
Given my example, is it right that the selector is evaluated at the
beginning of the pipeline (after the match when the pipeline is
constructed), that means BEFORE bla and myexaminor transformer
linglist
> Subject: Why a Selector is evaluated at beginning of pipeline? (was:
> sitemap logic depending on pipeline content)
>
>
> * Sebastian Klamar [2004-01-10 18:49 +0100] wrote:
> >
> >
> >
> >
> >
> >
> >
> >
>
* Sebastian Klamar [2004-01-10 18:49 +0100] wrote:
>
>
>
>
>
>
>
>
>
>
>
Given my example, is it right that the selector is evaluated at the
beginning of the pipeline (after the match when the pipeline is
constructed), that means BEFO
Hello Alban,
what do you really want to achieve. Mounting other sitemaps based on
request parameters does not make really sense. Maybe you should redirect
to the relevant pages.
Joerg
On 27.10.2003 13:17, Tsui, Alban wrote:
Hi
I want to set up my sitemap to something similar ot the followin
Title: using selector and ?
Hi
I want to set up my sitemap to something similar ot the following
write an action that returns the desired value!
HTH
Cheers,
Reinhard
> -Original Message-
> From: andi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 3:06 PM
> To: [EMAIL PROTECTED]
> Subject: selector
>
>
> Hi there,
>
> I'm searching
Le Mardi, 5 aoû 2003, à 15:06 Europe/Zurich, andi a écrit :
...
...
You could also refactor the existing BrowserSelector to make its
matching algorithm usable as an InputModule as well as a Selector.
In that case, some form of default matching should be configurable in
case the
Hi there,
I'm searching for solution for following problem. I
have to customize my xslts for many different browsers
(wap). to avoid map:when cascades in map:select i
would like to have something like the following (which
obviously doesn't work):
map:match doesn't work inside map:s
79 matches
Mail list logo