Re: Upload within a Cocoon Portal

2005-07-20 Thread Philippe Guillard

Hi,

Unfortunately i can't find the original mail explaining this, but i 
suppose you get what i get, even in release 2.1.7, so this is what i did :


Change 
cocoon-2.1.7/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java 



You should see 
if ( enctype== null || "application/x-www-form-urlencoded".equals(enctype))

you replace change to
if ( enctype== null || "application/x-www-form-urlencoded".equals(enctype)|| 
"multipart/form-data".equals(enctype))

I can't tell why multipart/form-data is not handled neither if this is the way 
to do, but it worked for me...

Phil





Matthias Nagel wrote:


Hi,

i try to upload with a http post request to a portal coplet. 
Unfortunately the stream generator doesn't get any byte.


When i try the upload without the portalengine everything works fine.

I think that the post ends in the portal?

How can i upload using a coplet?

Thanks, Matthias

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [portal] Workflow integration best practice?

2005-07-20 Thread Ralph Goers
Funny you should ask that.  I was evaluating workflow engines just a few 
weeks ago.  We basically came to the conclusion that that was not what 
we wanted.  Way too oriented towards web services for what we wanted.  I 
am currently in the process of trying to get Drools working in 
conjunction with javaflow.  I already got it to work by invoking it as 
an action, but it would be a lot nicer if you could put sendPageAndWait 
calls in the rules.


Ralph

Florian Leinberger wrote:


Hi,

I was wondering if someone successfully tried to integrate a Workflow Server
(like Enhydfra Shark or others) in Cocoon (using CForms). Tha goal ist to offer
simple, form based, workflow-applications in our portal - for example the
reservation of a meeting room with approval.

Thanx for sharing your experiences. 


Florian



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Data-driven decorator design

2005-07-20 Thread Conal Tuohy
Peter van Hardenberg wrote:

> I'd like to "decorate" my XML files as an early processing 
> step with XML from another source. The source documents are 
> Shakespearean texts, and I want to use Cocoon to overlay 
> annotations from various sources onto the file.
> 
> I am considering using map:aggregate, but it seems needlessly 
> ugly to have to say something like this in every match:
> 
> 
>
>
> 
>  ...
> 
> Does anyone have any advice about a Better Way? I am 
> considering using the same approach I currently use to create 
> templates. Start with a simple XSLT, XInclude the data for 
> that request into it, then use a the cocoon:/ protocol 
> transform step to interleave the two. That would let me move 
> the whole ugly mess into a single line in each match rule and 
> any messiness could be contained in an internal pipeline.

Hi Peter. I've used both of the techniques you've described! You must
work in a digital library too? :-)

The first, as you say, is a bit awkward. 

The second technique, if I understand you correctly, is where you
transform your source (Shakespeare) documents to add many "XInclude"
elements pointing at cocoon:/ pipelines? Then you run the XInclude
transformer and make a multitude of other sitemap calls? If so, there's
an obvious downside which is the overhead of all those individual
sitemap calls.

A third technique we've used is to transform the "annotation file" into
an XSLT, and apply that XSLT to the source, e.g.










...



HTH!

Conal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using a transformer on XSP

2005-07-20 Thread Nathaniel Alfred
You can pipe the XSP output into any number of transformation steps before 
serializing it:


  
  
  ...
  
  


HTH, Alfred.

-Original Message-
From: Stewart, Gary [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 20. Juli 2005 17:10
To: users@cocoon.apache.org
Subject: RE: Using a transformer on XSP

> -Original Message-
> From: Olivier NOUGUIER [mailto:[EMAIL PROTECTED]
> Sent: 20 July 2005 16:05
> 
> hi
> AFAIK, if XSP output is html you should *only* serialize, 
> transformation are xml ===> xml (not sure?)

Sorry it is XHTML and I've basically got a template that I'm trying to use for 
the whole site which is in an XSLT document. After any other actions have been 
taken on generating something for XHTML I then basically run that code into the 
XSLT and it wraps the XHTML document to put it into the template format. 
Obviously it doesn't work on an XSP document but it should work on a (XHTML) 
output of that document. 

I'm pretty sure all transformations are xml to xml as they input SAX events and 
output SAX events (leading to the conclusion that you can only put XML 
documents in a transform).

Thanks and sorry I didn't explain very well,

Gary
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender’s company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender’s company.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help! newbie.. cocoon + Tomcat not working

2005-07-20 Thread missterie
Sorry about that.
I have Cocoon 2.1, Tomcat 5.0 and Httpd 2.0.
Everything works independently. I have pages in Tomcat that
have JsessionID, but when using Cocoon to transform these pages
the request goes through Cocoon.
I would like the request to go through Tomcat and the piping through
Cocoon. Do I need to set up Cocoon as a Servlet?
(Not sure if this is the right way). I just need some directions.

I was reading that I could use Mod_jk and make Cocoon and Tomcat go through
Apache or something, however, I don't want that. SO is there a way to
set up cocoon requests
to go through Tomcat without messing with Mod_jk or any Apache module?


Thanks

On 7/20/05, Derek Hohls <[EMAIL PROTECTED]> wrote:
> You will have to post a little more info here -
> * mod_jk is for use with Apache, not Tomcat
> * what error messages do you get?
> * what do the logs (Tomcat and Cocoon) show?
> also, some details as to your system config (ver no.s etc)
> and the process you have already undertaken will help
> you get a response  please see the posting guidelines at:
> http://cocoon.apache.org/community/mail-lists.html
> (esp. the section under "Cocoon users")
> 
> >>> [EMAIL PROTECTED] 2005/07/20 01:49:47 PM >>>
> I recently got my cocoon pipelines working but would like the requests
> to go through Tomcat.
> I have read about using Mod_jk and setting up Cocoon as a servlet,
> which I did but its still not working.
> Can someone please direct me on steps or other options?
> 
> Thanks
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Portal] Cocon 2.1.7 upgrade breaks CachingURICoplets

2005-07-20 Thread Nick Goupinets

Hi everybody,

I am trying to upgrade our project that is based on the portal block 
from Cocoon 2.1.5 to Cocoon 2.1.7. Right now I run into a very annoying 
problem which I have no idea how to solve: All of CachingURICoplets that 
use CForms stop functioning after form gets shown. It just looks as if 
continuation is not resumed.


Here is an example. When the following code is executed:

=
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");

var toolBrokerInst = null;

// called from the sitemap
function toolBroker(userID, toolID, showDataBench, textUrl) {
  print("STARTED ToolBroker");
  if (toolID == '' || toolID == null) {
toolID = cocoon.session.getAttribute("toolID");
...
}
  if (toolID != null){
try {
  toolBrokerInst = cocoon.getComponent(  );
  cocoon.session.removeAttribute("toolID");
  showFormForTool(userID, toolName, newWin, showDataBench, textUrl);
} finally {
  cocoon.releaseComponent(toolBrokerInst);
}
  } else {
print("CALLING SEND PAGE");
cocoon.sendPage("selectATool");
  }
}

function showFormForTool(userID,
toolName,
newWin,
showDataBench,
textUrl){

  print("STARTED ShowFormForTool");
  ...   
  var form = new Form("cocoon:/"
   +toolName+"-definition?inputType="
   +inputType+"&textTypes="
   +textTypes+"&showDataBench="
   +showDataBench);

  var textID = cocoon.session.getAttribute("textID");
  form.lookupWidget("resultWindow").setValue(true);
  print("SHOWING FORM FROM ShowFormForTool");
  form.showForm(toolName+"-display?inputType="
+inputType+"&addSourceText="
+addSourceTextFlag+"&newWin="+newWin);
  print("RETRUNED TO ShowFormForTool SUCCESSFULLY");
  ...
}

=

It produces this output:

=
STARTED ToolBroker
CALLING SEND PAGE
STARTED ToolBroker
STARTED ShowFormForTool
SHOWING FORM FROM ShowFormForTool
=

Initially, when portal tab containing the coplet is displayed, first 2 
lines are printed:


STARTED ToolBroker
CALLING SEND PAGE

After that, when the session var's are set properly, the remaining 3 
lines are printed. However, at this point it doesn't matter what happens 
inside of the coplet, nothing else gets printed (where there should be 
"RETRUNED TO ShowFormForTool SUCCESSFULLY") on the console or changes in 
the coplet.


Logs don't show any errors or give any clues what can go wrong. 
Additionally, the same version of the coplet works perfectly fine on 
Cocoon 2.1.5.


If there was anybody who had similar problems when upgrading, I would 
appreciate it very much if you can share the solution or at least point 
me in the right direction.


Thank you very much in advance.

Sincerely,
Nick Goupinets.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: links in svg

2005-07-20 Thread Dustin N. Jenkins
Nevermind, I never thought to create my anchor tags within my XML and 
just render the SVG images within them.  I was under the impression that 
SVG will create the links for you, and that you could just dump the 
output wherever you want and it would behave as expected.  Thanks!


Dustin



Dustin N. Jenkins wrote:

How does that work with an extractor though?  My sitemap.xmap has an 
extractor transformer for the SVG stuff, but my XSL needs to transform 
the resulting fe:fragment tag, so what would happen in there?  I could 
say  but then I'd lose the links that SVG 
would've created.  Is there anyway to just dump the resulting SVG 
output from the fragment?


Thanks,
Dustin


Derek Hohls wrote:


Links are normally associated with a graphic element
of some sort eg. to create a hyperlink that is active
when user's cursor is over a rectangle:


 


 


[EMAIL PROTECTED] 2005/07/19 08:01:04 PM >>>
  



hello list
some user can help me I have an code of svg and applied an 
transformation

to png. my code svg have various LINK by example in




and addition:


after display in the browser not have the reference
(href).

some can say how make it.



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For 
additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 





--
Dustin N. Jenkins
Application Developer
Invoq Systems, Inc.
AlarmPoint - Critical Event Interactive Alerting
#216 - 852 Fort Street
Victoria, BC V8W 1H8
Tel: (250) 380-0304
[EMAIL PROTECTED] 
http://www.invoqsystems.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CForms: Accessing javaflow continuation or session from java event handler...

2005-07-20 Thread Thomas Lutz

Hi list !

I use java as flow language, not javascript. This forces me to use java 
in all places, where javascript is used in the samples, and my problem 
are action event listeners. I managed to write a event listener in java, 
accessing all the form elements via the event param, but...


How do I access the session, or the application ?

Or even better, how do I access the instance of my javaflow class, to 
set some class variables ?


As I don't like to convert all my flow code to javascript ... Help 
please :-) !


thanks,
tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Advice on site design - really close

2005-07-20 Thread footh
Thanks everyone for all your help.  Late last night
after reading more documentation, I discovered the
concept of the "internal" pipeline.  This seems to be
exactly what I need.  I can aggregrate all the pieces
after they've been generated and transformed in an
internal pipeline into one big xml file that can then
be transformed by my main XSL stylesheet.

Now, another question that I can't seem to find any
documentation on.  Is there an analogue for the
application-scope variable in cocoon?  Or perhaps
there's a better way to do what I need to do in
Cocoon.

In my JSP app, I would have, say 100 articles and on
each page click, I randomly displayed 5 articles.  I
did this by storing all the article info in an
application variable upon which I would randomly pick
5 to display everytime the user clicked a new page. 
The advantage of using the application-scope variable
was I did have to hit the database on every click and
it was data that every user shared.  The disadvantage
is, if a new article was added, I would have to
restart the Web service to get it added.

Anyway, can anyone provide advice as to how I might
accomplish this in cocoon?

--- Jan Hoskens <[EMAIL PROTECTED]> wrote:

> footh wrote:
> 
> >I read about flow before and in fact I intended ot
> use
> >it once I got this supposedly "basic" part of the
> site
> >resolved.
> >
> >Anyway, I re-read the documentation and I can't
> seem
> >to find out how it would help the situation
> described
> >below.  How can I use flow logic combine 5 pages
> that
> >require dynamic processing into one page?
> >  
> >
> 
> There are several ways to do this. Take a look at
> the docs for: 
> aggregating (sitemap element), cinclude or xinclude
> (transformers).
> 
> I'll give a small example:
> - Let each request go through one sitemap matcher
> - This matcher has either an aggregate:
>  surrouning parent element
> (menu/content/sidebars...)
> 
>or read in a template page and use includes:
>  (template
> contains include tags 
> for each different part)
>  (this step
> reads the include tags 
> and calls the different pipes to include)
> 
> - each part for menu/sidebars/... can be processed
> by separate matchers 
> in an internal-only pipeline
> 
> - each matcher can contain its own flowscript
> functions if needed(thus 
> program/call anything you like), or you can produce
> general information 
> in your template sitemap matcher (eg by action , own
> component or again 
> flowscript, doesn't matter) and set these in your
> session or context so 
> it's available within the different parts.
> 
> - the template matcher will then contain all the
> information and you can 
> style this to any outputtype you want (probably just
> plain html). Just 
> remember to leave your html styling and javascript
> in different files 
> and include these.
> 
> When creating your own generator/components remember
> to make these 
> reusable and that there is already a lot of
> funcionality available.
> 
> Kind regards,
> Jan
> 
> 
> 
> >--- Ralph Goers <[EMAIL PROTECTED]> wrote:
> >
> >  
> >
> >>It sounds like you need to take a look at
> flowscript
> >>or javaflow.
> >>
> >>footh wrote:
> >>
> >>
> >>
> >>>I'm converting my site from pure JSP to Cocoon.
> >>>
> >>>I've read lots of tutorials on Cocoon and I've
> come
> >>>really close to getting the site to work the way
> I
> >>>want but I've hit a few snags.
> >>>
> >>>Basically, the site has a header, footer and two
> >>>sidebars with content in the middle.  In JSP, I
> >>>  
> >>>
> >>would
> >>
> >>
> >>>just have includes on every page for the header,
> >>>footer, etc.  However, in Cocoon, I was hoping I
> >>>  
> >>>
> >>could
> >>
> >>
> >>>have one "template" page that decided the layout.
> >>>
> >>>I was able to create this model, mainly using
> this
> >>>tutorial:
> >>>  
> >>>
>
>>http://www.cocooncenter.org/articles/navigation.html
> >>
> >>
> >>>I created an XSL stylesheet for the header,
> footer,
> >>>and two sidebars, along with associated XML
> content
> >>>files and imported those into a "main"
> stylesheet. 
> >>>Then, in the main stylesheet, I apply the
> templates
> >>>for the constant parts by using the document
> >>>  
> >>>
> >>function
> >>
> >>
> >>>in XSL, for ex:
> >>>
> >>> >>>select="document('..\menus\header.xml')/*"/>
> >>>
> >>>For the main content on each page, I have
> separate
> >>>  
> >>>
> >>XML
> >>
> >>
> >>>files that, for now, are simply a dump of static
> >>>  
> >>>
> >>HTML
> >>
> >>
> >>>and I use the copy-of XSL tag to insert it into
> the
> >>>page.  Later, I'll make these XSP pages and
> >>>dynamically generate the content.
> >>>
> >>>Here's where I've hit a couple issues.  The
> header,
> >>>footer and sidebars contain some dynamic content.
> 
> >>>  
> >>>
> >>For
> >>
> >>
> >>>example, if a person is logged in, the header
> will
> >>>show something different.  I was able to get
> around
> >>>t

Re: links in svg

2005-07-20 Thread Dustin N. Jenkins
How does that work with an extractor though?  My sitemap.xmap has an 
extractor transformer for the SVG stuff, but my XSL needs to transform 
the resulting fe:fragment tag, so what would happen in there?  I could 
say  but then I'd lose the links that SVG 
would've created.  Is there anyway to just dump the resulting SVG output 
from the fragment?


Thanks,
Dustin


Derek Hohls wrote:


Links are normally associated with a graphic element
of some sort eg. to create a hyperlink that is active
when user's cursor is over a rectangle:


  style="fill:red"/>



 


[EMAIL PROTECTED] 2005/07/19 08:01:04 PM >>>
   


hello list
some user can help me 
I have an code of svg and applied an transformation
to png. my code svg have various LINK by example in 






and addition:


after display in the browser not have the reference
(href).

some can say how make it.



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



--
Dustin N. Jenkins
Application Developer
Invoq Systems, Inc.
AlarmPoint - Critical Event Interactive Alerting
#216 - 852 Fort Street
Victoria, BC V8W 1H8
Tel: (250) 380-0304
[EMAIL PROTECTED] 
http://www.invoqsystems.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Data-driven decorator design

2005-07-20 Thread Peter van Hardenberg
Hi all,

I'd like to "decorate" my XML files as an early processing step with XML from 
another source. The source documents are Shakespearean texts, and I want to 
use Cocoon to overlay annotations from various sources onto the file.

I am considering using map:aggregate, but it seems needlessly ugly to have to 
say something like this in every match:


   
   


...

Does anyone have any advice about a Better Way? I am considering using the 
same approach I currently use to create templates. Start with a simple XSLT, 
XInclude the data for that request into it, then use a the cocoon:/ protocol 
transform step to interleave the two. That would let me move the whole ugly 
mess into a single line in each match rule and any messiness could be 
contained in an internal pipeline.

All the best,

-pvh

-- 
Peter van Hardenberg ([EMAIL PROTECTED])
Victoria, BC, Canada


pgp6KYLQu01PI.pgp
Description: PGP signature


Re: Advice on site design - really close

2005-07-20 Thread Peter van Hardenberg
Hi Jan,

we recently had this same problem at the Internet Shakespeare Editions. Here's 
what I came up with.

First, I was disappointed to discover resources can't be inherited, so I 
created a match-rule like this in the root sitemap.


  
   

The resource that lives in my root sitemap looks like this:

  
   
   
   
   
  

We're almost done now, all we need is to write the include-template XSLT. 
Include-template takes an XHTML file and builds it into a templated XHTML file. 
It does this by creating itself out of a source XSLT file and a few XIncluded 
XHTML snippets.
style/include-template.xslt is essentially a souped up identity transform. I 
have trimmed it down somewhat to make the email more legible, and to remove 
some obscuring logic for template selection and peer-review status watermarking.


http://www.w3.org/1999/XSL/Transform"; version="1.0"
xmlns:xi="http://www.w3.org/2001/XInclude/";
  xmlns="http://www.w3.org/1999/xhtml";
xmlns:xhtml="http://www.w3.org/1999/xhtml";>



http://www.w3.org/1999/xhtml";
  xmlns:xi="http://www.w3.org/2001/XInclude";>

 
 
  
  
  

  
  
 
 
  
  
  
  

  


  
  
  
  
 

 



 



 




 
  
 




That's essentially the whole shebang. The only thing left is how to apply the 
template. This part is easy!

   


 

   

Hope that helps!

-pvh
 
> >>>Basically, the site has a header, footer and two
> >>>sidebars with content in the middle.  In JSP, I
> >>
> >>would
> >>
> >>>just have includes on every page for the header,
> >>>footer, etc.  However, in Cocoon, I was hoping I
> >>
> >>could
> >>
> >>>have one "template" page that decided the layout.
> >>>


pgpdJutJ9wZQ6.pgp
Description: PGP signature


RE: Using a transformer on XSP

2005-07-20 Thread Stewart, Gary


> -Original Message-
> From: Olivier NOUGUIER [mailto:[EMAIL PROTECTED]
> Sent: 20 July 2005 16:05
> 
> hi
> AFAIK, if XSP output is html you should *only* serialize, 
> transformation are xml ===> xml (not sure?)

Sorry it is XHTML and I've basically got a template that I'm trying to use for 
the whole site which is in an XSLT document. After any other actions have been 
taken on generating something for XHTML I then basically run that code into the 
XSLT and it wraps the XHTML document to put it into the template format. 
Obviously it doesn't work on an XSP document but it should work on a (XHTML) 
output of that document. 

I'm pretty sure all transformations are xml to xml as they input SAX events and 
output SAX events (leading to the conclusion that you can only put XML 
documents in a transform).

Thanks and sorry I didn't explain very well,

Gary

**
The information contained in this message may be confidential or legally 
privileged and is intended for the addressee only, If you have received this 
message in error or there are any problems please notify the originator 
immediately. The unauthorised use, disclosure, copying or alteration of this 
message is strictly forbidden.
**


Re: zip serializer gives zero lenght output with large file

2005-07-20 Thread Alberto Brosich
I tried a little bit different approach.

I wrote a xsl that prepend and append  zip tags to data, then I
serialize with zip serializer.

The result is the same. :-(.

I'll try to modify xsp.

Thanks

Alberto

On Wed, 2005-07-20 at 15:23 +0100, Rui Alberto wrote:
> Hi Alberto,
> I've tested and the problem occurred as you described.
> If the @src (element entry) attribute refers a file in the file system,
> there's no problem, but when using cocoon protocol, working with a large
> amount of data the resulting zip file has 0 bytes!!
> 
> I've tried using:
> 
> http://apache.org/cocoon/zip-archive/1.0";>
>  
>...
>LARGE AMOUNT OF DATA HERE
>...
>  
> 
> and it worked. It's slow and not the most clean way of doing things, but
> works! Make year xsp encapsulate the document in this tags!
> HTH,
> Rui
> 
> 
> 
> 
> 
> On Wed, 2005-07-20 at 14:01 +0200, Alberto Brosich wrote:
> > On Wed, 2005-07-20 at 12:28 +0100, Rui Alberto wrote:
> > > Hi,
> > > try moving   ... into  a noncaching
> > > pipeline type.
> > 
> > No changes. I tried with some values of outputBufferSize between 1024
> > and 65000. The behaviour remains the same.
> > 
> > How can i do some debugging?
> > 
> > Alberto
> > 
> > > 
> > > HTH.
> > > Rui
> > > 
> > > On Wed, 2005-07-20 at 12:58 +0200, Alberto Brosich wrote:
> > > > I have some problems with zip serializer.
> > > > 
> > > > I use cocoon 2.1.7, tomcat 5.5.9, jdk 1.5.0_04-b05
> > > > 
> > > > With small files (1-10 MByte) works all fine. With ~18 Mbyte
> > > > the zip file has 0 length. 
> > > > Without zip serializer the browser reads correctly all megas (after some
> > > > minutes :-)).
> > > > 
> > > > Any suggest?
> > > > 
> > > > regards 
> > > > 
> > > > Alberto Brosich
> > > > 
> > > > 
> > > > Follow two slices of sitemap
> > > > 
> > > > ...
> > > >  
> > > > 
> > > >  
> > > > ...
> > > > 
> > > >   
> > > >   
> > > >  > > > src="resources/parameters_data.xsp"/>
> > > > 
> > > >   
> > > > 
> > > > ...
> > > > 
> > > > 
> > > > where extract_params_zip.xml is the following file
> > > > 
> > > >  > > > xmlns:zip-archive="http://apache.org/cocoon/zip-archive/1.0";>
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > 
> > > 
> > > 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using a transformer on XSP

2005-07-20 Thread Olivier NOUGUIER
hi
AFAIK, if XSP output is html you should *only* serialize, transformation are 
xml ===> xml (not sure?)



> Message du 20/07/05 16:53
> De : "Stewart, Gary" <[EMAIL PROTECTED]>
> A : users@cocoon.apache.org
> Copie à : 
> Objet : Using a transformer on XSP
> 
> Hi there,
> 
> I'm relatively new to using Cocoon and was still getting to grips with some 
> of the basics. 
> 
> I have an XSP page and it does its thing just fine. However what I was hoping 
> to do was to take the generated HTML from the XSP page and then pass it to 
> another transformer to further process the HTML before serializing to the 
> client. Is there a transformer that takes an XSP input and generates the code 
> for the client or is it only performed during serialization?
> 
> Thanks,
> 
> Gary
> 
> **
> The information contained in this message may be confidential or legally 
> privileged and is intended for the addressee only, If you have received this 
> message in error or there are any problems please notify the originator 
> immediately. The unauthorised use, disclosure, copying or alteration of this 
> message is strictly forbidden.
> **
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---
> Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
> 
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using a transformer on XSP

2005-07-20 Thread Stewart, Gary
Hi there,

I'm relatively new to using Cocoon and was still getting to grips with some of 
the basics. 

I have an XSP page and it does its thing just fine. However what I was hoping 
to do was to take the generated HTML from the XSP page and then pass it to 
another transformer to further process the HTML before serializing to the 
client. Is there a transformer that takes an XSP input and generates the code 
for the client or is it only performed during serialization?

Thanks,

Gary

**
The information contained in this message may be confidential or legally 
privileged and is intended for the addressee only, If you have received this 
message in error or there are any problems please notify the originator 
immediately. The unauthorised use, disclosure, copying or alteration of this 
message is strictly forbidden.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: zip serializer gives zero lenght output with large file

2005-07-20 Thread Rui Alberto
Hi Alberto,
I've tested and the problem occurred as you described.
If the @src (element entry) attribute refers a file in the file system,
there's no problem, but when using cocoon protocol, working with a large
amount of data the resulting zip file has 0 bytes!!

I've tried using:

http://apache.org/cocoon/zip-archive/1.0";>
 
   ...
   LARGE AMOUNT OF DATA HERE
   ...
 

and it worked. It's slow and not the most clean way of doing things, but
works! Make year xsp encapsulate the document in this tags!
HTH,
Rui





On Wed, 2005-07-20 at 14:01 +0200, Alberto Brosich wrote:
> On Wed, 2005-07-20 at 12:28 +0100, Rui Alberto wrote:
> > Hi,
> > try moving   ... into  a noncaching
> > pipeline type.
> 
> No changes. I tried with some values of outputBufferSize between 1024
> and 65000. The behaviour remains the same.
> 
> How can i do some debugging?
> 
> Alberto
> 
> > 
> > HTH.
> > Rui
> > 
> > On Wed, 2005-07-20 at 12:58 +0200, Alberto Brosich wrote:
> > > I have some problems with zip serializer.
> > > 
> > > I use cocoon 2.1.7, tomcat 5.5.9, jdk 1.5.0_04-b05
> > > 
> > > With small files (1-10 MByte) works all fine. With ~18 Mbyte
> > > the zip file has 0 length. 
> > > Without zip serializer the browser reads correctly all megas (after some
> > > minutes :-)).
> > > 
> > > Any suggest?
> > > 
> > > regards 
> > > 
> > > Alberto Brosich
> > > 
> > > 
> > > Follow two slices of sitemap
> > > 
> > > ...
> > >  
> > > 
> > >  
> > > ...
> > > 
> > >   
> > >   
> > >  > > src="resources/parameters_data.xsp"/>
> > > 
> > >   
> > > 
> > > ...
> > > 
> > > 
> > > where extract_params_zip.xml is the following file
> > > 
> > >  > > xmlns:zip-archive="http://apache.org/cocoon/zip-archive/1.0";>
> > >   
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help! newbie.. cocoon + Tomcat not working

2005-07-20 Thread Derek Hohls
You will have to post a little more info here - 
* mod_jk is for use with Apache, not Tomcat
* what error messages do you get?
* what do the logs (Tomcat and Cocoon) show?
also, some details as to your system config (ver no.s etc)
and the process you have already undertaken will help
you get a response  please see the posting guidelines at:
http://cocoon.apache.org/community/mail-lists.html 
(esp. the section under "Cocoon users")

>>> [EMAIL PROTECTED] 2005/07/20 01:49:47 PM >>>
I recently got my cocoon pipelines working but would like the requests
to go through Tomcat.
I have read about using Mod_jk and setting up Cocoon as a servlet,
which I did but its still not working.
Can someone please direct me on steps or other options?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: zip serializer gives zero lenght output with large file

2005-07-20 Thread Alberto Brosich
On Wed, 2005-07-20 at 12:28 +0100, Rui Alberto wrote:
> Hi,
> try moving   ... into  a noncaching
> pipeline type.

No changes. I tried with some values of outputBufferSize between 1024
and 65000. The behaviour remains the same.

How can i do some debugging?

Alberto

> 
> HTH.
> Rui
> 
> On Wed, 2005-07-20 at 12:58 +0200, Alberto Brosich wrote:
> > I have some problems with zip serializer.
> > 
> > I use cocoon 2.1.7, tomcat 5.5.9, jdk 1.5.0_04-b05
> > 
> > With small files (1-10 MByte) works all fine. With ~18 Mbyte
> > the zip file has 0 length. 
> > Without zip serializer the browser reads correctly all megas (after some
> > minutes :-)).
> > 
> > Any suggest?
> > 
> > regards 
> > 
> > Alberto Brosich
> > 
> > 
> > Follow two slices of sitemap
> > 
> > ...
> >  
> > 
> >  
> > ...
> > 
> >   
> >   
> >  > src="resources/parameters_data.xsp"/>
> > 
> >   
> > 
> > ...
> > 
> > 
> > where extract_params_zip.xml is the following file
> > 
> >  > xmlns:zip-archive="http://apache.org/cocoon/zip-archive/1.0";>
> >   
> > 
> > 
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help! newbie.. cocoon + Tomcat not working

2005-07-20 Thread missterie
I recently got my cocoon pipelines working but would like the requests
to go through Tomcat.
I have read about using Mod_jk and setting up Cocoon as a servlet,
which I did but its still not working.
Can someone please direct me on steps or other options?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: zip serializer gives zero lenght output with large file

2005-07-20 Thread Rui Alberto
Hi,
try moving   ... into  a noncaching
pipeline type.

HTH.
Rui

On Wed, 2005-07-20 at 12:58 +0200, Alberto Brosich wrote:
> I have some problems with zip serializer.
> 
> I use cocoon 2.1.7, tomcat 5.5.9, jdk 1.5.0_04-b05
> 
> With small files (1-10 MByte) works all fine. With ~18 Mbyte
> the zip file has 0 length. 
> Without zip serializer the browser reads correctly all megas (after some
> minutes :-)).
> 
> Any suggest?
> 
> regards 
> 
> Alberto Brosich
> 
> 
> Follow two slices of sitemap
> 
> ...
>  
> 
>  
> ...
> 
>   
>   
>  src="resources/parameters_data.xsp"/>
> 
>   
> 
> ...
> 
> 
> where extract_params_zip.xml is the following file
> 
>  xmlns:zip-archive="http://apache.org/cocoon/zip-archive/1.0";>
>   
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



zip serializer gives zero lenght output with large file

2005-07-20 Thread Alberto Brosich
I have some problems with zip serializer.

I use cocoon 2.1.7, tomcat 5.5.9, jdk 1.5.0_04-b05

With small files (1-10 MByte) works all fine. With ~18 Mbyte
the zip file has 0 length. 
Without zip serializer the browser reads correctly all megas (after some
minutes :-)).

Any suggest?

regards 

Alberto Brosich


Follow two slices of sitemap

...
 

 
...

  
  


  

...


where extract_params_zip.xml is the following file

http://apache.org/cocoon/zip-archive/1.0";>
  





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Authentication problem

2005-07-20 Thread Jorg Heymans


Angelo Immediata wrote:
> Hi.
> First of all very thanks for your reply.
> I'll give a look to the java class later in this day.
> I have tried by using   
> var codiceFiscale = 
> sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()");
> and i have:
>   codiceFiscale: 
> 
>   [#document-fragment: null]
> 
> Then i have tried this one:
> var codiceFiscale = 
> sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()").getFirstChild().getNodeValue();
> and i have an error (TypeError cannot convert null to an object)
> While if i use
> var codiceFiscale = 
> sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()").getFirstChild();
> i have null.

I just verified your xpath with oxygen xml, it is correct and should
retrieve the full node value. Even the text() directive at the end
should be fine. Sorry for the red herring :-)

Step through the getXML method to see where exactly it thinks it is
retrieving that value.

HTH
Jorg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Sitemap:Selector multiple value in map:when tag ?

2005-07-20 Thread oceatoon
Ralph Goers wrote:

> The syntax below would test to see if the value matches the string
> "europe or region".  You would need to write a new selector that accepts
> something like:
> "'europe' or 'region'" and knows what to do with it.
Thanks Ralph, Well it would react just as it does now just that it has more
than just one possibility. I'll submit this to dev. thanks for your
confirmation.
Regards


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Authentication problem

2005-07-20 Thread Angelo Immediata
Hi.
First of all very thanks for your reply.
I'll give a look to the java class later in this day.
I have tried by using
var codiceFiscale = 
sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()");
and i have:
codiceFiscale: 
[#document-fragment: null]

Then i have tried this one:
var codiceFiscale = 
sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()").getFirstChild().getNodeValue();
and i have an error (TypeError cannot convert null to an object)
While if i use
var codiceFiscale = 
sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()").getFirstChild();
i have null.

Any ideas? thanks.

-- Initial Header ---

>From  : "news" [EMAIL PROTECTED]
To  : users@cocoon.apache.org
Cc  :
Date  : Tue, 19 Jul 2005 19:10:14 +0200
Subject : Re: Authentication problem







>
> Jorg Heymans wrote:
> > Angelo Immediata wrote:
> >
> >
> >>I don't see MMDX but only MM and nothing else.
> >
> >
> > Have a look at SimpleSessionContext.java in
> > src\blocks\session-fw\java\org\apache\cocoon\webapps\session\context\
> >
> > IIUC, the getXML method is used there to retrieve your value. Maybe
> > there is something wrong with the xpath expression ? Try it in isolation
> > on a similar piece of xml to isolate any problems in your code.
>
>
> Actually, try /authentication/USERINFORMATION/CODICE_FISCALE/text() ,
> does that work?
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




Libero Flat, sempre a 4 Mega a 19,95 euro al mese! 
Abbonati subito su http://www.libero.it




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CForms: Java class for action events, call with parameter

2005-07-20 Thread Thomas Lutz

Hi list !

Is it possible to pass parameter to a java action event handler ? So I 
could write a generic action event handler, that recieves two strings 
with group id's... switching them from group state invisible to active 
and vice versa ?


thanks,
tom

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[portal] Workflow integration best practice?

2005-07-20 Thread Florian Leinberger
Hi,

I was wondering if someone successfully tried to integrate a Workflow Server
(like Enhydfra Shark or others) in Cocoon (using CForms). Tha goal ist to offer
simple, form based, workflow-applications in our portal - for example the
reservation of a meeting room with approval.

Thanx for sharing your experiences. 

Florian



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: links in svg

2005-07-20 Thread Simon Mieth
On Tue, 19 Jul 2005 13:01:04 -0500 (CDT)
Andres Taborda <[EMAIL PROTECTED]> wrote:

> hello list
> some user can help me 
> I have an code of svg and applied an transformation
> to png. my code svg have various LINK by example in 
> 
> 
>  style="fill:red"/>
> 
> 
> and addition:
> 
> 
> after display in the browser not have the reference
> (href).
> 
> some can say how make it.
>  

Hi Andres,

make sure you have the  element inside the  element and the
xmlns setup for xlink. Normally you can test your svg's with the
squiggle (svgviewer)  from batik. If Squiggle shows the correct the
svg, the svg should be rendered correct by the svg serializers.  

example:


 
  
   
   
   
 
 http://www.w3.org/1999/xlink";
 xlink:href="#background" x="0" y="15"/>



Best Regards,

Simon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Advice on site design - really close

2005-07-20 Thread Florian Leinberger
You might consider using the Cocoon-Portal-Framework that could help you
aggregate the dynamic parts of your site in different portals (see the block
examples).

Florian






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]