RE: XSL and script code - please help
Hi, I recommend: http://www.zvon.org/ (very short, very useful and informative tutorials on XSLT) http://www.w3.org/TR/xpath#corelib - list of functions. http://www.mulberrytech.com/xsl/xsl-list/ hope it helps, cheers, A. > -is there a fract() function ? I know that a floor > function exists. > > - But what about the loop ? > > - What about passing variables to this code (and > getting them back into the XSL script) ? > > - Do I need further (script-)extensions to XSL to do > this ? -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SOLUTION] Redirection from the action that is being a part of aggregated pipeline.
Hi every1 THE PROBLEM WAS > I agregate 5 pipelines. 4 of them are almost simple static HTML the 5th > one handles whole logic which is handled by action-set. All of the pipelines > work separately. Aggregation also works but *only when none* of the action > which redirects to different URI is called due to user request. SOLUTION The solution is quite simple (but I could not reconcile to it for some time). You just must not use Redirector, redirect or globalRedirect methods in the actions that are part of aggregated pipeline. Special thanks goes here to Diana Shannon from Apache.org who found some time to discuss this matter with me. So if you have some redirections (or redirecting actions) in the aggregated pipelines you have to pull them out of there and place it somewhere in the aggregating pipeline body (the one that contains tag). cheers & happy coding A. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tabs in the output
Hi, I had the same problem some time ago. I used along with tags to assemble anchor . If you are doing similar thing then the solution is as far as I remeber is to remove any spaces from content of . For example if you have something like this ___ ... and the underscores ('_') are spaces then you have to remove it. The same concers newline characters. So if you have done some "pretty printing" indentication then remove it. hope it helps (it worked for me), cheers, A. > > >Hi! > > >I don' know if this is OT, beause I cant find the problem! > > >. > > >Rome > > > > > >I think the ": " are tabs, but I really don't know why they are > inserted!.. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirection from the action that is being a part of aggregated pipeline.
Hi, I just wanted to fix some "misspeling" in previous post (see end of this mail). The console output I have added states that "cocoon/magellan/admin/groups" cannot be matched - of course it should be "cocoon/magellan/admin/users" - I have exactly the same problem with groups maintanace page. By accident I have copied log output from the session with the "groups maintenance page" > 21:26:24,307 INFO [STDOUT] No pipeline matched request: > cocoon/magellan/admin/groups -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image doesn't display
> Hello! Hi I am not expert and I cannot point out where your problem exactly is anyway I use following pipeline (placed somewhere at the end of subsitemap) the images in the xsl (actually part of javascript that is inserted by xslt) have src attributes like this var RADIO_ON_IMG = new Image(); RADIO_ON_IMG.src = "images/radio_on.gif"; images are located physicaly in the "images" subdirectory of mounted subsitemap. cheers, A. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirection from the action that is being a part of aggregated pipeline.
Hi, if anyone could help with following problem I would be thankful. I agregate 5 pipelines. 4 of them are almost simple static HTML the 5th one handles whole logic which is handled by action-set. All of the pipelines work separately. Aggregation also works but *only when none* of the action which redirects to different URI is called due to user request. All of the processing is done in the single subsitemap mounted at /cocoon/magellan To make it more clear I describe what excatly I try to achive. My page provides simple user administration (Create, Remove, Update - user). the action set that handles that looks like this (I have cut out actions cfg. params - they are not needed in this discussion) this action set is used in the following part of the pipeline (again config params are cut out) the aggregation is defined as follows: you can assume here for simplicity sake that {1} equals "admin" and {2} equals "users". And now the problem. Let say I browse user "terminator" so my URI looks like this magellan/admin/users?user_login=terminator Now I decide to remove "terminator". The "remove-user" action is matched and user is removed. But at the end of action I want to redirect request to /admin/users (I do not want to browse none-existing user no more). I use redirector to do this: rediarector.redirect(false, request.getRequestURI()); Redirection causes IllegalStateException : 21:26:24,347 ERROR [Engine] StandardWrapperValve[Cocoon2]: Servlet.service() for servlet Cocoon2 thr ew exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:252) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1037) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) Well at least I think that redirection is a problem here - the core.log does not even shows any exception. The one above comes from JBoss console. Normally I can see exception in core.log but this one somehow does not appear. Please remeber that the "administration pipeline" *works when processed separately* (if I change serialization to HTML and access magellan/internal/admin/users - all the action works properly) I have modified a little bit CocoonServlet and added few System outs ( to see internal exception message). The internal message says: 21:26:24,307 INFO [STDOUT] No pipeline matched request: cocoon/magellan/admin/groups I do not get it how it happens. I can browse URI /cocoon/magellan/admin/users - everything is displayed correctly. Only when I try to remove user (or execute similar action) whole thing blows up. I have also tried to call globalRedirect method - the exception is quie different then. It says that XML stream was closed. If more details are needed I will provide them on demand. Any help is welcome. greetings, Adam. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]