Re: Lucene index building

2003-03-18 Thread Olivier Billard
Hi Upayavira,

It sounds like an error I also got. It seems that Lucene doesn't release
some Objects and keeps increasing memory consumption. And the end a parsing
error occurs.
My solution was to raise the memory heap size to the JVM with the
CATALINA_OPTS variable : CATALINA_OPTS=-Xmx128m (set 128 Mo of heap size,
the default value is 64 Mo).
Then to raise the default heap size in cocoon.xconf :

  store-janitor class=org.apache.cocoon.components.store.StoreJanitorImpl
logger=core.store.janitor
...
 !-- Indicates the limit of the jvm memory consumption. The default max
 heapsize for Sun's JVM is 64Mb --
 parameter name=heapsize value=12800/
-
...
  /store-janitor

And it worked...

This turn-around worked also :

  !-- Memory Storing: --
  cache-transient class=org.apache.cocoon.components.store.MRUMemoryStore
logger=core.store.transient
 !-- Indicates how many objects will be hold in the cache.
 When the number of maxobjects has been reached. The last object in the
 cache will be thrown out.
 parameter name=maxobjects value=100/
 --
 parameter name=maxobjects value=50/
...
  /cache-transient

Or an other value of maxobjects. But there is a real decrease of
performance...


But is's just a turn-around... Not a solution.

Olivier


- Original Message -
From: Upayavira [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 12:47 AM
Subject: Lucene index building


 I have built a site which I want to index with Lucene.

 I am using the create-index.xsp file in the $COCOON-ROOT/search directory
to
 build my index.

 I have added the following to cocoon.xconf:

   cocoon-crawler logger=core.search.crawler
 exclude.*/search/.*/exclude
 link-view-querycocoon-view=lucene-links/link-view-query
   /cocoon-crawler

   lucene-xml-indexer logger=core.search.lucene
   store-fieldsbody/store-fields
 content-view-querycocoon-view=lucene-content/content-view-query
   /lucene-xml-indexer

 I've set up a view lucene-links which works, giving back just links from a
page.
 I've set up a view lucene-content just giving back the content. The
content is like:
 page
   linkslist of links/links
   body... the body content .../body
 /page

 I have had it partially working (indexing both links and body), but now
whenever I
 run create-index, it fails with a Cannot parse!:
org.xml.sax.SAXParseException:
 Premature end of file.

 Any ideas what I might be doing wrong?

 Regards, Upayavira


 -
 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: SendMailAction?

2003-03-18 Thread Scherler
That you need for it:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg18506.html
How it work wih java:
http://www.javacommerce.com/articles/sendingmail.htm
About the sendmail logicsheet:
http://members.iinet.net.au/~xions/jigsaws/sendmail.html
you wrote:

I'm sorry, but I'm searching for the Action (Java class) not for the
logicsheet.
- the logicsheet is an implementation of JavaMail API:
http://java.sun.com/products/javamail/JavaMail-1.2.pdf
the cocoon\src\java\org\apache\cocoon\components\language\markup\xsp\java\sendmail.xsl
after using it is compiled to your class! you will find it after you have used in your 
webapp within the work dir of tomcat.
Hope that helps

Stephan Niedermeier wrote:

Stephan Niedermeier wrote:

   

Hello,

i couldn't find the SendMailAction in the cocoon.jar. Can anyone tell
me, where I can found this class?
Thanks.

Greetings
Stephan
 

http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=104790860126005w=2
   

I'm sorry, but I'm searching for the Action (Java class) not for the
logicsheet.
Thank you.

Best regards
Stephan


-
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: SQL Transformer or ESQL Stylesheet?

2003-03-18 Thread Scherler
Konlin wrote:

Hello Cocoon!

Can you write me any clues when to use sql transformer and when esql
stylesheet? What is more flexible, easier, more professional etc? I'm
going to write simple news portal with Xindice or MySQL as DBMS and
I'm wondering what solution is better.
Greetz,
Konrad Inglot
 

I have ask that question before but with no answer!
My personal opinion is that you should use the SQL-transform [a] for 
simple Queries where you do not need much logic in it.
The esql  way would be for something more complex. The advantage of 
using ESQL [b] is the xsp where you can add java code. So this documents 
are more intelligent.
The last way and the you should do way is with actions [c]. That way 
everything is in Java.

...but again I think it depends on the situation.
a. is a transformer
b. a generator
c. is an action.
King regards
Thorsten
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SendMailAction?

2003-03-18 Thread Stephan Niedermeier
 That you need for it:
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg18506.html

 How it work wih java:
 http://www.javacommerce.com/articles/sendingmail.htm

 About the sendmail logicsheet:
 http://members.iinet.net.au/~xions/jigsaws/sendmail.html

 you wrote:

 I'm sorry, but I'm searching for the Action (Java class) not for the
 logicsheet.

 - the logicsheet is an implementation of JavaMail API:
 http://java.sun.com/products/javamail/JavaMail-1.2.pdf


I thought, that there is a SendMailAction I can use as action. Please have a
look into the mailarchive:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12026.html

I didn't find additional informations about this strange SendMailAction.


Best regards
Stephan



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



Re: SendMailAction?

2003-03-18 Thread Scherler
Hi Stephan,

I never heard about the sendmailaction. Sorry, but if you have to pass 
the email body as a sitemap parameter I think it is not really allways 
the way to go.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12040.html

Stephan Niedermeier wrote:

That you need for it:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg18506.html
How it work wih java:
http://www.javacommerce.com/articles/sendingmail.htm
About the sendmail logicsheet:
http://members.iinet.net.au/~xions/jigsaws/sendmail.html
you wrote:

I'm sorry, but I'm searching for the Action (Java class) not for the
logicsheet.
- the logicsheet is an implementation of JavaMail API:
http://java.sun.com/products/javamail/JavaMail-1.2.pdf
   

I thought, that there is a SendMailAction I can use as action. Please have a
look into the mailarchive:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12026.html
I didn't find additional informations about this strange SendMailAction.

Best regards
Stephan


-
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: WritableSource output Cocoon 2.0.4

2003-03-18 Thread Upayavira
  The sourceWritingTransformer in 2.1 is quite different to the one in
  2.0.4. I don't know whether it is 'back-compatible',
 
 Unfortunately it is not back compatible.

Are you aware why not?

Upayavira


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



Re: SQL Transformer or ESQL Stylesheet?

2003-03-18 Thread Andrew Savory

Hi,

On Tue, 18 Mar 2003, Scherler wrote:

 Konlin wrote:

 Can you write me any clues when to use sql transformer and when esql
 stylesheet?

 I have ask that question before but with no answer!
 My personal opinion is that you should use the SQL-transform [a] for
 simple Queries where you do not need much logic in it.

I tend to use ESQL when I want the output XML in a very specific format
(saves an extra transform step). I've also found ESQL to be slightly
faster than the SQL Transformer in some cases, so it may be worth you
trying both to get a speed comparison. At the end of the day, it really
comes down to personal preference.

Thanks,

Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web:www.luminas.co.uk

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



Re: Cant get an exception

2003-03-18 Thread Lionel Crine
Hello,

I also have created my own transformer, generator, etc ...
I didn't had time to use getlogger, so instead of that I use 
System.err.println to get my message into the console.



At 16:43 17/03/2003 +, you wrote:
Hi,

I have built my own generator, using the tutorials. I can get it to work in
a test harness and it produces a well-formed set of SAX events. However once
inside cocoon, I get nothing, just an empty HTML page. I have recreated the
cocoon libraries environment on the command line and it works. A simple
helloworld generator works, so I am deploying OK, nothing in the error logs.
Apart from attatching a debugger to the VM, I am at a loss as where to go
from here.
If you have a strategy for this, please let me know.

tia,
Lee
-
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]


Using my own Logging-Class in Cocoon

2003-03-18 Thread Uwe Gerger
Hello,
i would like to use an own written Logging-class to catch all logs from
Coccon and log them as we need.

What I have to do for configuring Cocoon in that way and what interface
I have to implement?

Thanks
-- 
Uwe Gerger_/_/_/   _/_/  _/_/
BMW AG, TG-53 IT-Technologie _/   _/  _/_/_/_/  _/_/
80788 Muenchen  _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687  _/   _/  _/_/  _/_/_/_/
Fax: +49 89 382 49040 _/_/_/   _/_/  _/_/
mailto:[EMAIL PROTECTED]

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



Re: WritableSource output Cocoon 2.0.4

2003-03-18 Thread Jeremy Quinn
On Tuesday, March 18, 2003, at 11:14 AM, Upayavira wrote:

The sourceWritingTransformer in 2.1 is quite different to the one in
2.0.4. I don't know whether it is 'back-compatible',
Unfortunately it is not back compatible.
Are you aware why not?
Because when the modifications made to SWT in 2.1 by various people 
were unified in the code, various parts of 2.0.n's infrastructure 
supporting those changes were not in place.

regards Jeremy

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


Re: Passing parameters from xsp to xsp

2003-03-18 Thread Lionel Crine
I don't know if it's possible but why don't you try this :

map:match pattern=db/*/*.xsp
   map:generate src=db/{1}/{2}.xsp type=xsp/
 map:transform src=xsl/db.generatexsp.xsl/
 map:serialize type=xml/
/map:match
map:match pattern=db/*/*.html
   map:generate src=cocoon:/db/{1}/{2}.xsp/
  map:serialize type=xml/
/map:match
Lionel

At 22:44 17/03/2003 +0100, you wrote:
Hi,

I need to pass request parameters from one XSP to another

This is my sitemap
map:match pattern=db/*/*.xsp
map:generate src=db/{1}/{2}.xsp 
type=xsp/
map:transform src=xsl/db.generatexsp.xsl/
map:serialize type=xml/
/map:match
map:match pattern=db/*/*.html
map:generate
src=http://web/implements/db/{1}/{2}.xsp/

map:serialize type=xml/
/map:match
As you can see, I call the XSP from my call to the HTML.
I need one XSP as a generator, because it must execute an ESQL query.
But, the XSP called in that match (html match) calls another XSP that uses 
the
request parameters.

However, they are not passed in that call.  I cannot use map:parameter
name=use-request-parameters since this is for a transformer.
I need the same kind of thing, but for a generator.

Anyone with an idea ??

Some code:

This is my XSP that is called:
?xml version=1.0 encoding=ISO-8859-1?
xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
create-session=true
xml
query
select fnSiteRegisteredUserInsert
('xsp-request:get-parameter name=email/',
'xsp-request:get-parameter
name=password/')
/query
results
result
value0/value
messageYou have been registered/message
/result
/results
errors
error
valueERROR: Cannot insert a duplicate key
into unique index tblsiteregistereduser_login_key/value
messageYou already exist/message
/error
/errors
/xml
/xsp:page
As you can see, that needs the parameters.

This is the XSL for transformation to a valid XSP

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:xsp=http://apache.org/xsp;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;


xsl:template match=/xml
xsp:page language=java create-session=true
xml

esql:connection
esql:poolimplements/esql:pool
esql:execute-query
esql:query
xsl:value-of 
select=query/
/esql:query

esql:results
esql:row-results
result
esql:get-columns/
/result
/esql:row-results
/esql:results
esql:error-results

erroresql:get-message//error
/esql:error-results
/esql:execute-query
/esql:connection
/xml
/xsp:page
/xsl:template
/xsl:stylesheet
--
Met vriendelijke groeten,
Kind regards,
Bien à vous,
Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be
Quote: The winner never says participating is more important than winning.

-
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: XMLForm: how to display arrays

2003-03-18 Thread ivelin
table
xf:repeat..

  tr
tdxf:output ref=...
tdxf:output ref=...
  /tr

/xf:repeat
/table


-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 17, 2003 8:46 AM
Subject: RE: XMLForm: how to display arrays


Hi Ivelin,

How do you create columns with repeat tag?

Have you an example?

Thanks
Sylvain

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: lundi, 17. mars 2003 15:27
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display arrays


the repeat tag should help.

-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 17, 2003 3:37 AM
Subject: XMLForm: how to display arrays


Hello,

I'm using XMLForm to allow user to query a database.

How can I display results data in an array like this:

RESULTS:

Name Type Owner OS
   --
U1 Desktop Mob Wnt
U2 Laptop Mob Wxp


Is there a way to do this with XForms?

Thanks
Sylvain (T)

-
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]



cocoon 2.0.3 on fujitsu interstage?

2003-03-18 Thread Tsui, Alban
Hi 

Has anyone tried cocoon on fujitsu interstage? I am trying to decide on
which app servers can serve cocoon...

Cheers
Alban


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

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



c1 to c2 migration

2003-03-18 Thread JADOUL LAURENT
Hi,

I have to do a migration of an web application. But  I don't know what are the key 
point of this operation.

Is there a documentation that explain this kind of work ?

Currently the application runs on a Apache Tomcat 3.12 under a Suse Linux 6.4 
distribution. wiith the version 1.3 of JDK and cocoon 1.8.

And I have to redeploy this application under Apache Tomcat 4.1.18 (no prob) but with 
cocoon 2.0

thanks for your help

Jadoul Laurent

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



Re: Modular Database Actions: Urgently seeking documentation

2003-03-18 Thread Richard In Public
Hi Chris

Firstly, thanks for your response.  I have been mulling over this and
revisiting the docs, but I have not managed to get things working.

I suspect that my problem lies in chanelling the request parameters passed
by the form into the database action.
Specifically, I cannot figure out what:

 I've not tested it, but in theory you could set the path separator for
 the action to / and use the xmlform input module. Drawback is, you
 need to pass the module name and form id for every value OR create
 different instances of the xmlform module for each and every form
 id.

would look like in practice.  Do you have any samples?

Best,

Richard

- Original Message -
From: Christian Haul [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 8:43 AM
Subject: Re: Modular Database Actions: Urgently seeking documentation


 On 13.Mar.2003 -- 07:48 PM, Richard In Public wrote:
  Hi
 
  I've been struggling for some time now to understand how to use modular
  database actions.  I have not been able to find any directly helpful
  documentation.
 
  Does anyone have a simple example using an XMLForm to insert a row with
a
  modular database add action?

 I've not tested it, but in theory you could set the path separator for
 the action to / and use the xmlform input module. Drawback is, you
 need to pass the module name and form id for every value OR create
 different instances of the xmlform module for each and every form
 id. Provided there is sufficient demand, we could try to make passing
 the form id easier.

  I've listed some of the sources that I've tried below.

  1.  Coocoon Wiki's ModularDatabaseActions page stops short of providing
  information on using these actions from the sitemap.

 The usage from sitemap is like any other action. Details for
 parameters can be found in the accompanying javadocs.

  2.  I found the mod-db sample in the 2.1 source tree, with the sitemap
at:
  cocoon-2.1\src\blocks\databases\samples\mod-db\sitemap.xmap.  I have not
  been able to figure out how the 'req-params' actions are used, nor how
the

 req-params is a guard action that tests existence of request
 parameters. The nested database action thus fires only when a given
 set of request parameters is present.

  value of the 'parameters' parameter is to be understood.  This example
also
  seems to be based on ESQL, whereas I am trying to use XMLForms.

 ESQL and XMLForms do not overlap. ESQL is used in the sample to
 display the database contents.

  3.  When I invoke the action from my browser/xmlform it breaks (or
returns
  null) and I have not be able to find any log entries relating to this.
I
  have set the logger parameter when I declare the action in my sitemap.

 Since it is modular, log entries (need to enable log level DEBUG) stem
 from various classes and are distributed among sitemap.log and core.log

  4.  I have not been able to locate a straight forward example in the
mailing
  lists or anywhere else.

 HTH

 Chris.
 --
 C h r i s t i a n   H a u l
 [EMAIL PROTECTED]
 fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

 -
 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]



Repost: mod_proxy w/ multiple webapps

2003-03-18 Thread Lorenzo De Sio
Hi all,

did anyone succeed in configuring Apache's mod_proxy to serve Cocoon
(http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy), mounting it in a
subdir and not as /?

( original post was
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=104764398500822w=2 )

Cheers,

L.

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



Lookup of PortalManager failed

2003-03-18 Thread JD Daniels

I copied the portal-fw folder up to the cocoon root. After adding the portal
pipelines to the root sitemap, I get this when I try to save a profile
change (ie, personalize(guest)--Customize--Save)

My root sitemap is here:
http://dev.datatrio.com/tmp-junk/sitemap.xmap

Uri:
http://localhost/portal-fw/sunspotdemo-portal?portalprofile=uprofile:portalh
andler|sunspotdemo:user_5_guest_guestportalcmd=save


Error.log entry:

ERROR   (2003-03-18) 01:14.54:703   [access]
(/portal-fw/sunspotdemo-portlets) HttpProcessor[80][10]/CocoonServlet:
Internal Cocoon Problem
org.apache.cocoon.ProcessingException: Lookup of PortalManager failed.:
org.apache.avalon.framework.component.ComponentException: Could not find
component (role [org.apache.cocoon.webapps.portal.components.PortalManager])
 at
org.apache.cocoon.webapps.portal.generation.PortalGenerator.generate(PortalG
enerator.java:86)
 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP
ipeline(AbstractProcessingPipeline.java:545)
 at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:214)
 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:489)
 at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:145)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
 at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:158)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:153)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:143)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:317)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:299)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at

Postcript, XLS files....

2003-03-18 Thread Ferran Urgell

Hello Cocooners!
I'm interested to do Postcript and XLS files...But I don't know how to do...
Which type of Serializer I have to use in the sitemap ? Where I can get information about Xsl-Fo, to transform Xml into a XLS or Postcript files ? 
Thanks
Ferran


Do you Yahoo!?Yahoo! Web Hosting - establish your business onlineDo you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

action in a pipeline

2003-03-18 Thread Lionel Crine
I wrote that this match:

map:match pattern=save/*
  map:act type=Save
   map:parameter name=save value={1}/
  /map:act
/map:match
Cocoon didn't find the resource. Is it illegal to write that ?

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


Re: Postcript, XLS files....

2003-03-18 Thread Joerg Heinicke
Hello Ferran,

have a look at 
http://xml.apache.org/cocoon/userdocs/serializers/serializers.html. There 
you have an overview of the serializers, for yor needs especially PS 
Serializer (or PDF Serializer) and HSSF/XLS Serializer. The transformation 
is up to you. You have to fed the serializers with a special XML format. For 
PDF or PS it's XSL FO, for XLS it's Gnumeric file format. Of course you 
don't need any transformation from XML to PS or XLS directly, that's the 
work of the serializers.

Regards,

Joerg

Ferran Urgell wrote:
Hello Cocooners!

I'm interested to do Postcript and XLS files...But I don't know how
to do...
Which type of Serializer I have to use in the sitemap ? Where I can
get information about Xsl-Fo, to transform Xml into a XLS or
Postcript files ?
Thanks

Ferran
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: sql transformer question; *not* esql... (was RE: ???ESQL upda te table???)

2003-03-18 Thread Delis, Christopher E.
actually, now that i return back to my problem... i am not so embarassed (at
least not yet!)...

this solution doesn't appear to solve my problem because my stylesheet is in
the middle of a pipeline and the substitute values are not easily attainable
from within the sitemap.  also, i do not wish to have to declare each
variable more times than i have to (another reason i don't want it in the
sitemap).  has anyone else run into a similar situation?  of course, i could
write (i'd rather find one already developed ;-) another transform to
strip offending characters (such as single-quotes) for each variable but i'd
rather not.  any ideas?  do i need to re-design my approach?

here is the update command i wish to perform.  it receives the variables
from previous generator/transforms:

?xml version=1.0?

sql:execute-query xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:sql=http://apache.org/cocoon/SQL/2.0;
   sql:use-connectionidal/sql:use-connection
   sql:query
update contact
set last_name = 'xsl:value-of
select=/library/contact/last_name/',
first_name = 'xsl:value-of
select=/library/contact/first_name/',
email = 'xsl:value-of select=/library/contact/email/',
phone = 'xsl:value-of select=/library/contact/phone/',
address = 'xsl:value-of select=/library/contact/address/',
city = 'xsl:value-of select=/library/contact/city/',
zip = 'xsl:value-of select=/library/contact/zip/'
where library_id = xsl:value-of select=/library/id/
   /sql:query
/sql:execute-query




 -Original Message-
 From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 4:08 AM
 To: 'Luca Morandini '; '[EMAIL PROTECTED] '
 Subject: RE: sql transformer question; *not* esql... (was RE: ???ESQL
 upda te table???)
 
 
  thanks!  i am so embarassed. ;-)  i gazed right past that little
 paragraph...  sheesh!
 
 -Original Message-
 From: Luca Morandini
 To: [EMAIL PROTECTED]
 Sent: 3/18/03 1:15 AM
 Subject: RE: sql transformer question; *not* esql... (was RE: 
 ???ESQL update
 table???)
 
 Christopher,
 
 IIUC, you need substitution: go to
 http://xml.apache.org/cocoon/userdocs/transformers/sql-transfo
 rmer.html
 and look for the
 Substitution topic
 
 Regards,
 
 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -
 
 
  -Original Message-
  From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 1:53 AM
  To: Delis, Christopher E.; ''[EMAIL PROTECTED]' '
  Subject: sql transformer question; *not* esql... (was RE: ???ESQL
 update
  table???)
 
 
  i replied to the wrong topic.  sorry...  what i meant to 
 ask was:  is
 there
  a place-holder mechanism available using the sql transformer?
 --chris
 
  -Original Message-
  From: Delis, Christopher E.
  To: '[EMAIL PROTECTED]'
  Sent: 3/17/03 9:48 AM
  Subject: RE: ???ESQL update table???
 
  on a slightly different note, is there place-holder 
 functionality in
  esql
  stylesheet language?  e.g.,
 
  insert into atable (field1, field2) values (?, ?)
  select * from atable where field1 = ? limit ?
  ...
 
  TIA,
  chris
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
   Sent: Friday, March 14, 2003 9:20 AM
   To: [EMAIL PROTECTED]
   Subject: ???ESQL update table???
  
  
   Hi,
   This is a part of a query. My problem is that when I make a
   SELECT right
   after an INSERT I don't get the last updated query :
  
   ---
   esql:execute-query
esql:query
 INSERT INTO Actions  (at_name, at_order)
 VALUES ('esql:get-string column=at_name ancestor=1/',
   xsp:exprnouvOrder/xsp:expr)
/esql:query
esql:update-results/
   /esql:execute-query
  
   esql:execute-query
esql:query
 SELECT TOP xsp:exprmyTopCnt/xsp:expr * FROM Actions
 WHERE at_order = xsp:exprmyOrderID/xsp:expr
 ORDER BY at_id DESC
/esql:query
esql:results
esql:row-results
 xsp:logic
   nouvActionName = esql:get-string column=at_name/;
 /xsp:logic
/esql:row-results
/esql:results
   /esql:execute-query
  
   esql:execute-query
esql:query
 SELECT TOP 1 * FROM Actions
 WHERE at_name = 'xsp:exprnouvActionName/xsp:expr'
 ORDER BY at_id DESC
/esql:query
esql:results
esql:row-results
  xsp:logic
   nouvAction = esql:get-int column=at_order/;
  /xsp:logic
 /esql:row-results
/esql:results
   /esql:execute-query
   ---
   What I mean is that in the last execute-query the value
   esql:get-int
   column=at_order/ returns a value, but in my SQL 
 Profiler I get a
   query witch returns another value (the right)
   I think that it is due to the refreshing from the insert, 

Problems fo:basic-link Cocoon 2.0.4/FOP 0.20.4

2003-03-18 Thread Jessica Niewint
Hi, I am not sure if this is the right mailing list for the question...
so if it is not, please give me a hint where to post my question.
I got a problem to insert a external link to my xsl file with fo:basic-link.
It seems that no one else got a problem like this. So may be I forgot to 
define something in the header of the xsl-file or in the sitemap. The 
strange thing for me is, that without using the fo:basic-link the 
output in pdf is non proboem.
Inserting  the fo:basic-link 
external-destination=www.test.orgTEST/fo:basic-link into my xsl-file
produces an error.. when I comment out this tag, everything works fine and 
the pdf file is shown.
So any ideas ?

Thank you in advance

J.

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


RE: sql transformer question; *not* esql... (was RE: ???ESQL upda te table???)

2003-03-18 Thread Luca Morandini
 -Original Message-
 From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 5:18 PM
 To: '[EMAIL PROTECTED]'; 'Luca Morandini '
 Subject: RE: sql transformer question; *not* esql... (was RE: ???ESQL
 upda te table???)

 sitemap).  has anyone else run into a similar situation?  of course, i could
 write (i'd rather find one already developed ;-) another transform to
 strip offending characters (such as single-quotes) for each variable but i'd
 rather not.  any ideas?  do i need to re-design my approach?

I convert ìnput data using an XSL template: slow but portable.

An XSL extension function would do the trick faster, I presume hmmm

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-




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



RE: sql transformer question; *not* esql... (was RE: ???ESQL upda te table???)

2003-03-18 Thread Delis, Christopher E.
do you mind sharing the template? =-)  --chris

 -Original Message-
 From: Luca Morandini [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 11:18 AM
 To: [EMAIL PROTECTED]
 Subject: RE: sql transformer question; *not* esql... (was RE: ???ESQL
 upda te table???)
 
 
  -Original Message-
  From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 5:18 PM
  To: '[EMAIL PROTECTED]'; 'Luca Morandini '
  Subject: RE: sql transformer question; *not* esql... (was 
 RE: ???ESQL
  upda te table???)
 
  sitemap).  has anyone else run into a similar situation?  
 of course, i could
  write (i'd rather find one already developed ;-) another 
 transform to
  strip offending characters (such as single-quotes) for each 
 variable but i'd
  rather not.  any ideas?  do i need to re-design my approach?
 
 I convert ìnput data using an XSL template: slow but portable.
 
 An XSL extension function would do the trick faster, I 
 presume hmmm
 
 Regards,
 
 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -
 
 
 
 
 -
 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: sql transformer question; *not* esql... (was RE: ???ESQL upda te table???)

2003-03-18 Thread Luca Morandini
 -Original Message-
 From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 6:32 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: sql transformer question; *not* esql... (was RE: ???ESQL
 upda te table???)
 
 
 do you mind sharing the template? =-)  --chris

not at all (mind, it just converts single quotes in double-single quotes).

xsl:template name=escape-apos
xsl:param name=string /

xsl:choose

xsl:when test='contains($string, apos;)'

xsl:value-of select='substring-before($string, apos;)' /
xsl:text''/xsl:text

xsl:call-template name=escape-apos
xsl:with-param name=string select='substring-after($string, 
apos;)' /
/xsl:call-template

/xsl:when

xsl:otherwise
xsl:value-of select=$string /
/xsl:otherwise

/xsl:choose

/xsl:template

Regards,

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 


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



Re: Cant get an exception

2003-03-18 Thread Charles Yates
Lionel Crine wrote:

Hello,

I also have created my own transformer, generator, etc ...
I didn't had time to use getlogger, so instead of that I use 
System.err.println to get my message into the console. 
1)  I recommend you take the time to add the 'getLogger().debug() 
statements.
2)  System.err might be changed from console to a file by your servlet 
container ( I think in Tomcat it goes to catalina.out)
3)  Test your generator by using it in a pipeline with no transformers, 
just an xml serializer
4)  Use the logging transformer 
http://xml.apache.org/cocoon/userdocs/transformers/log-transformer.html

Charles





At 16:43 17/03/2003 +, you wrote:

Hi,

I have built my own generator, using the tutorials. I can get it to 
work in
a test harness and it produces a well-formed set of SAX events. 
However once
inside cocoon, I get nothing, just an empty HTML page. I have 
recreated the
cocoon libraries environment on the command line and it works. A simple
helloworld generator works, so I am deploying OK, nothing in the 
error logs.
Apart from attatching a debugger to the VM, I am at a loss as where 
to go
from here.

If you have a strategy for this, please let me know.

tia,
Lee
-
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: Repost: mod_proxy w/ multiple webapps

2003-03-18 Thread Charles Yates
ProxyPass /webapp1/ http://localhost:8080/lwebapp1/
ProxyPassReverse /webapp1/ http://localhost:8080/webapp1/
ProxyPass /webapp2/ http://localhost:8080/webapp2/
ProxyPassReverse /webapp2/ http://localhost:8080/webapp2/
Lorenzo De Sio wrote:

Hi all,

did anyone succeed in configuring Apache's mod_proxy to serve Cocoon
(http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy), mounting it in a
subdir and not as /?
( original post was
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=104764398500822w=2 )
Cheers,

L.

-
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]


character encoding problem with resource reader?

2003-03-18 Thread Robert Douglass
I'm encountering a problem where this à character in a javascript file
causes illegal character exceptions when read with the resource reader, but
not when I open the file up directly from the filesystem. The character
occurs inside a javascript character array [Ã]. Cocoon serves an html page
and the .js file is then loaded as an included, also served by Cocoon. Any
tricks to using the resource reader? My map:read tag has two parameters,
type=resource and src. Do I need to specify encoding or mime-type to
guarantee the accurate reading of text files?

-Robert Douglass


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



XPathDirectoryGenerator - need help

2003-03-18 Thread hgadm
Maybe I do not understand the XPathDirectoryGenerator:

Also tried:

 KNO\#/azkno:knowledgeobject/dc:title/text()

Same, tag content is not displayed !?

Any help is appreciated !!

Holger


On Thu, 13 Mar 2003, [EMAIL PROTECTED] wrote:

 
 Thanks Jens and Jeff !
 
 Itried the XPathDirectoryGenerator. Sitemap fragment:
 
 ...
 
 map:match pattern=kno-index
map:generate type=xpathdirectory 
   src=C:\Documents and Settings\Owner\My

Documents\Projects\XML\KNO\#/azkno:knowledgeobject/dc:title/
map:serialize type=xml/
 /map:match
 
 ...
 
 Which yields an XML file with the current fragment:
 
 ...
 
 dir:file name=microdialysis1.xml
 lastModified=1046298926956 date=26/02/03 22:35
 size=9449
   dir:xpath docid=microdialysis1.xml
 query=/azkno:knowledgeobject/dc:title / 
 /dir:file
 
 ...
 
 Obviously this has produced XML output identifying
 files that comply having this tag but the query wasn't
 executed, i.e. I haven't got the content of this tag
 (which I need).
 
 Any Ideas ??
 
 Holger
 
  
 senderDateInfo
 
  
  On Tue, Mar 11, 2003 at 05:11:30AM -0800,
  [EMAIL PROTECTED] wrote:
   Dear all,
   
   I would like to dynamically generate an RSS feed
 from
   currently available XML files in a folder on my
   webserver to be displayed in the Cocoon portal.
   
   I have a set of equally structured XML files in a
   folder and new files are added to this folder
  regularly.
   
   Now I want to generate the RSS feed dynamically
when
   the respective coplet displays the RSS in the
 portal.
   
   The RSS file should reflect the title of these XML
   files (which is in the dc:title tag of each file)
 and
   the URI (the path + filename).
   
   Any ideas are greatly appreciated, hope someone
has
   done similar things before - otherwise I would
need
 to
   start from scratch.
  
  If you're using Cocoon 2.1, the
 XPathDirectoryGenerator
  might be useful.
  It lets you extract XPath-specified nodes from every
  file in a directory.
  
  For example, to generate
  a
 href=a
href=http://mail.cswebmail.com/jump/http://aft.sourceforge.net/examples/index.html;http://aft.sourceforge.net/examples/index.html/ahttp://mail.cswebmail.com/jump/http://aft.sourceforge.net/examples/index.html;http://aft.sourceforge.net/examples/index.html/a/a;
  I used:
  
 map:match pattern=examples/index.xml
   map:generate type=xpathdirectory
   
 

src=content/xdocs/examples#/project/description/text()/
   map:transform
 

src=resources/stylesheets/antdirectory2document.xsl/
   map:serialize type=xml/
 /map:match
  
  
  --Jeff
  
   Kind regards,
   
   Holger
   
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 ___
 The ALL NEW CS2000 from CompuServe
  Better!  Faster! More Powerful!
  250 FREE hours! Sign-on Now!
  a
href=http://mail.cswebmail.com/jump/http://www.compuserve.com/trycsrv/cs2000/webmail;http://www.compuserve.com/trycsrv/cs2000/webmail/a/
 
 
 
 
 

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

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Re: Passing parameters from xsp to xsp

2003-03-18 Thread Yves Vindevogel
No, that's the same ...
When the .html is called, the XSP can use the xsp-request:get-parameter
However, it calls a new match, where the values of the request are no longer 
available

That's exactly my problem.

 I don't know if it's possible but why don't you try this :

 map:match pattern=db/*/*.xsp
 map:generate src=db/{1}/{2}.xsp type=xsp/
   map:transform src=xsl/db.generatexsp.xsl/
   map:serialize type=xml/
 /map:match
 map:match pattern=db/*/*.html
 map:generate src=cocoon:/db/{1}/{2}.xsp/
map:serialize type=xml/
 /map:match


 Lionel

 At 22:44 17/03/2003 +0100, you wrote:
 Hi,
 
 I need to pass request parameters from one XSP to another
 
 This is my sitemap
  map:match pattern=db/*/*.xsp
  map:generate src=db/{1}/{2}.xsp
  type=xsp/
  map:transform
  src=xsl/db.generatexsp.xsl/ map:serialize type=xml/
  /map:match
  map:match pattern=db/*/*.html
  map:generate
 src=http://web/implements/db/{1}/{2}.xsp/
 
  map:serialize type=xml/
  /map:match
 
 As you can see, I call the XSP from my call to the HTML.
 I need one XSP as a generator, because it must execute an ESQL query.
 But, the XSP called in that match (html match) calls another XSP that uses
 the
 request parameters.
 
 However, they are not passed in that call.  I cannot use map:parameter
 name=use-request-parameters since this is for a transformer.
 
 I need the same kind of thing, but for a generator.
 
 Anyone with an idea ??
 
 Some code:
 
 This is my XSP that is called:
 ?xml version=1.0 encoding=ISO-8859-1?
 xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
 
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  xmlns:xsp-session=http://apache.org/xsp/session/2.0;
  create-session=true
 
  xml
  query
  select fnSiteRegisteredUserInsert
 ('xsp-request:get-parameter name=email/',
 
  'xsp-request:get-parameter name=password/')
  /query
  results
  result
  value0/value
  messageYou have been
  registered/message /result
  /results
  errors
  error
  valueERROR: Cannot insert a duplicate
  key into unique index tblsiteregistereduser_login_key/value
  messageYou already exist/message
  /error
  /errors
  /xml
 /xsp:page
 
 As you can see, that needs the parameters.
 
 
 This is the XSL for transformation to a valid XSP
 
 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:fo=http://www.w3.org/1999/XSL/Format;
  xmlns:xsp=http://apache.org/xsp;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;
 
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  xmlns:xsp-session=http://apache.org/xsp/session/2.0;
 
 
 
  xsl:template match=/xml
  xsp:page language=java create-session=true
 
  xml
 
  esql:connection
  esql:poolimplements/esql:pool
 
  esql:execute-query
  esql:query
  xsl:value-of
  select=query/
  /esql:query
 
  esql:results
  esql:row-results
  result
 
 esql:get-columns/
  /result
  /esql:row-results
  /esql:results
 
  esql:error-results
 
 erroresql:get-message//error
  /esql:error-results
  /esql:execute-query
  /esql:connection
 
  /xml
  /xsp:page
  /xsl:template
 /xsl:stylesheet
 
 --
 Met vriendelijke groeten,
 Kind regards,
 Bien à vous,
 
 Yves Vindevogel
 
 Implements
 Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
 Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
 Mail: [EMAIL PROTECTED]  --  www.implements.be
 
 Quote: The winner never says participating is more important than winning.
 
 

RE: svg2jpeg output not equal on different machines

2003-03-18 Thread Conal Tuohy
Christian Hoofe wrote:

 My problem is that the generated jpeg are not same on
 different machines. The
 generated font under Linux is greater than 14 points. I tried
 this with Cocoon
 2.0.4 under j2sdk1.3.1 and j2sdk1.4.1.

 Win98, Sun j2sdk1.3.1 and j2sdk1.4.1
 Suse 7.2, Blackdown j2sdk1.3.1 and j2sdk1.4.1

Under JDK 1.4 there is a headless mode in which the dependencies on the
operating system are minimised. For instance, in this mode you can run Batik
without an X server at all. Have you tried this mode?

Cheers

Con


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



Re: SendMailAction?

2003-03-18 Thread Frank Ridderbusch
On Tue, 18 Mar 2003 12:14:18 +0100
Scherler [EMAIL PROTECTED] wrote:

 Hi Stephan,
 
 I never heard about the sendmailaction. Sorry, but if you have to pass
 the email body as a sitemap parameter I think it is not really allways
 the way to go.
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg12040.html
 

Hi,

I've worked on the sendmail.xsl logicsheet and the SendmailAction.java
in the past weeks. My work is currently with Christian Haul for review.
If he finds it acceptable, I would think, that it will end up in CVS
sometime soon.

If you are interested, I can send you copy directly. This includes 
documentation for logicsheet and action.

-- 
MfG/Regards

Frank Ridderbusch

Since I have taken all the Gates out of my computer, it finally works!!


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



Re: action in a pipeline

2003-03-18 Thread Jeremy Michael Crosbie
I am assuming you want the value of save to equal foobar in the case 
where the URI is save/foobar. Try using {../1} instead. Since actions 
add their own parameters to the sitemap you need to tell Cocoon to get 
the parameter from the match.

Lionel Crine wrote:

I wrote that this match:

map:match pattern=save/*
  map:act type=Save
   map:parameter name=save value={1}/
  /map:act
/map:match
Cocoon didn't find the resource. Is it illegal to write that ?

-
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]


Weblogic6.1Sp3+cocoon2.1-org.apache.avalon.framework.component.ComponentException:UnnamedSelector:

2003-03-18 Thread Girish Patil
Hi,
I downloaded and installed cocoon2.1 on windows with weblogic 6.1sp3. I
created a simple web app using cocoon. when I click on
http://localhost:7001/test/samples/brand/myhome.xml

I get the following error in weblogic.  I have all the cocoon libraries
in my java classpath and xalan and xerces too. what is wrong with me??
Any help would be appreciated.

thanks
Girish


ERROR   (2003-03-18) 16:48.57:135   [access]
(/test/samples/brand/myhome.xml) ExecuteThread: '11' for queue:
'default'/CocoonServlet: Problem with Cocoon servlet
org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector Attempted to retrieve component with
null hint.
 at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:184)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSitemapComponentSelector.java:110)
at 
org.apache.cocoon.components.treeprocessor.InvokeContext.getProcessingPipeline(InvokeContext.java:191)
at 
org.apache.cocoon.components.treeprocessor.sitemap.GenerateNode.invoke(GenerateNode.java:100)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)

-Here is my site map under /samples directory
?xml version=1.0?
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
!-- === Components
 --
 map:components
  map:matchers default=wildcard/
  map:selectors default=browser/
  map:generators default=file/
  map:transformers default=xslt/
  map:readers default=resource/
  map:serializers default=html/
 /map:components
 map:pipelines
  map:pipeline
  map:match pattern=*/*.xml
  map:generate src=content/{1}.xml/
  map:transform src=transformation/{1}.xsl 
map:parameter name=brand value={1} /
  /map:transform
  map:serialize/
  /map:match
/map:pipeline
 /map:pipelines
/map:sitemap





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



Re: SendMailAction?

2003-03-18 Thread Scherler
Frank Ridderbusch wrote:

On Tue, 18 Mar 2003 12:14:18 +0100
Scherler [EMAIL PROTECTED] wrote:
 

Hi Stephan,

I never heard about the sendmailaction. Sorry, but if you have to pass
the email body as a sitemap parameter I think it is not really allways
the way to go.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12040.html
   

Hi,

I've worked on the sendmail.xsl logicsheet and the SendmailAction.java
in the past weeks. My work is currently with Christian Haul for review.
If he finds it acceptable, I would think, that it will end up in CVS
sometime soon.
If you are interested, I can send you copy directly. This includes 
documentation for logicsheet and action.

 

I was looking for this a long time.
I would appreciate a copy of you work and documentation. Have you add 
attachments?

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


Re: Using my own Logging-Class in Cocoon

2003-03-18 Thread Niclas Hedhman
On Tuesday 18 March 2003 20:53, Uwe Gerger wrote:
 Hello,
 i would like to use an own written Logging-class to catch all logs from
 Coccon and log them as we need.

 What I have to do for configuring Cocoon in that way and what interface
 I have to implement?

Cocoon is using LogKit, and LogKit allows for custom logging system. Look at 
http://avalon.apache.org/logkit

Niclas

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



Link:http://www.logabit.com/consulting/cocoon/CocoonTutorial.html Guide:A Cocoon 2 introduction and tutorial

2003-03-18 Thread Stephan Niedermeier



Hello,

I have written an introduction for Cocoon 2 in 
german language. This tutorial is not complete yet, but I'm updating this site 
every 1-2 days.

There are an PDF-Version avaiable, too: http://www.logabit.com/consulting/cocoon/CocoonTutorial.pdf.php

It would be nice, to add this tutorial to the 
Cocoon 2 linklist. Thank you.

Best regards
Stephan Niedermeier


Re: Postcript, XLS files....

2003-03-18 Thread Derek Hohls



Ferran

You can also look at the (brief) notes + links + sample at the wiki:
http://wiki.cocoondev.org/Wiki.jsp?page=ExcelGeneration
and
http://wiki.cocoondev.org/Wiki.jsp?page=XLSSerializer

Derek [EMAIL PROTECTED] 18/03/2003 06:18:05 
Hello Ferran,have a look at http://xml.apache.org/cocoon/userdocs/serializers/serializers.html. 
There you have an overview of the serializers, for yor needs especially PS 
Serializer (or PDF Serializer) and HSSF/XLS Serializer. The transformation 
is up to you. You have to fed the serializers with a special XML format. For 
PDF or PS it's XSL FO, for XLS it's Gnumeric file format. Of course you 
don't need any transformation from XML to PS or XLS directly, that's the 
work of the serializers.Regards,JoergFerran Urgell 
wrote: Hello Cocooners!  I'm interested to do Postcript 
and XLS files...But I don't know how to do...  Which 
type of Serializer I have to use in the sitemap ? Where I can get 
information about Xsl-Fo, to transform Xml into a XLS or Postcript files 
?  Thanks  Ferran-- System 
DevelopmentVIRBUS AGFon +49(0)341-979-7419Fax 
+49(0)341-979-7409[EMAIL PROTECTED]www.virbus.deCeBIT 2003 vom 12. bis zum 
19. März in HannoverVIRBUS stellt gemeinsam mit der IBM-Tochter 
IT-Services and SolutionsGmbH aus.Lassen Sie sich überraschen von den 
neuen, umfassenden Möglichkeiten imInternet-gestützten 
Zahlungsverkehr.Besuchen Sie uns: Halle 3, Stand 
D55.-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For additional 
commands, e-mail: [EMAIL PROTECTED]-- 
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.



RE: Link:http://www.logabit.com/consulting/cocoon/CocoonTutorial.html Guide:A Cocoon 2 introduction and tutorial

2003-03-18 Thread Reinhard Pötz
Title: Nachricht



Thank 
you for the link!

I 
added it to the Cocoon Wiki (the Cocoon documentation incubator) - you find it 
at http://wiki.cocoondev.org/Wiki.jsp?page=Links.

Best 
regards,
Reinhard

(Sorry, for some strange reason I wasn't able to convert this mail 
to plain text ... Outlook :-( )

  
  -Original Message-From: Stephan Niedermeier 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 
  7:56 PMTo: [EMAIL PROTECTED]Subject: 
  Link:http://www.logabit.com/consulting/cocoon/CocoonTutorial.html Guide:A 
  Cocoon 2 introduction and tutorial
  Hello,
  
  I have written an introduction for Cocoon 2 in 
  german language. This tutorial is not complete yet, but I'm updating this site 
  every 1-2 days.
  
  There are an PDF-Version avaiable, too: http://www.logabit.com/consulting/cocoon/CocoonTutorial.pdf.php
  
  It would be nice, to add this tutorial to the 
  Cocoon 2 linklist. Thank you.
  
  Best regards
  Stephan 
Niedermeier


Re: SendMailAction?

2003-03-18 Thread Stephan Niedermeier
 On Tue, 18 Mar 2003 12:14:18 +0100
 Scherler [EMAIL PROTECTED] wrote:
 
  Hi Stephan,
  
  I never heard about the sendmailaction. Sorry, but if you have to pass
  the email body as a sitemap parameter I think it is not really allways
  the way to go.
  http://www.mail-archive.com/[EMAIL PROTECTED]/msg12040.html
  
 
 Hi,
 
 I've worked on the sendmail.xsl logicsheet and the SendmailAction.java
 in the past weeks. My work is currently with Christian Haul for review.
 If he finds it acceptable, I would think, that it will end up in CVS
 sometime soon.
 
 If you are interested, I can send you copy directly. This includes 
 documentation for logicsheet and action.

Hello,

I'am very interested. Would you send a copy to me?

Thank you very much.

Best regards
Stephan Niedermeier


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



Re: XPathDirectoryGenerator - need help

2003-03-18 Thread Jeff Turner
On Tue, Mar 18, 2003 at 11:27:27AM -0800, [EMAIL PROTECTED] wrote:
 Maybe I do not understand the XPathDirectoryGenerator:
 
 Also tried:
 
  KNO\#/azkno:knowledgeobject/dc:title/text()
 
 Same, tag content is not displayed !?

Probably because XPathDirectoryGenerator doesn't provide a way to
register namespace-prefix mappings.  Instead, try:

...#/*[local-name()='knowledgeobject']/*[local-name()='title']/text()

--Jeff

 Any help is appreciated !!
 
 Holger

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



Re: action in a pipeline

2003-03-18 Thread Jeff Turner
On Tue, Mar 18, 2003 at 05:13:46PM +0100, Lionel Crine wrote:
 I wrote that this match:
 
   map:match pattern=save/*
   map:act type=Save
map:parameter name=save value={1}/
   /map:act
   /map:match

Can't see anything wrong with that.  I assume you have a map:action
definition for 'Save' somewhere in the sitemap too.  Check the logs for
errors..

--Jeff

 Cocoon didn't find the resource. Is it illegal to write that ?
 

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



Re: Postcript, XLS files....

2003-03-18 Thread Stephan Niedermeier




  Ferran Urgell wrote: Hello Cocooners!  I'm 
  interested to do Postcript and XLS files...But I don't know how to 
  do...  Which type of Serializer I have to use in the sitemap ? 
  Where I can get information about Xsl-Fo, to transform Xml into a XLS 
  or Postcript files ?  Thanks  
  Ferran
A good introduction into XSL-FO can be found on http://www.ibiblio.org/xml/books/biblegold/chapters/ch18.html

You Need:
- A XML-File with data.
- A XSL-FO file which describes the layout.
- FileGenerator = To generate SAX-Events of the XML-File.
- TraxTransformer = Transform XML to XSL-FO
- FOPSerializer = Serializes XSL-FO to PDF, PostScript, ...

Best regards 
Stephan Niedermeier


Re: [TIPS] Basic configurations of Apache 2.0 for Cocoon 2

2003-03-18 Thread Tony Collen
Reading this great article [1] (Thanks Pier!), I realized that the
mod_rewrite stuff could possibly be worked around using virtualhosts.  I'm
not too familliar with Apache HTTPD 2, but I assume setting up vhosts is
not much different.  Would it not make sense to create a static.domain.com
host (if you have the access and resources), and serve up all of your
images and resources out of there?

This would allow you to totally ignore the mod_rewrite nastiness.  The
only problem I could see is having to directly reference static resources
with the full domain, for example:

img src=http://static.domain.com/foo.png/

Then again, it's not all that much different than

img src=/static/foo.png/

Since they are both absolute paths. Any thoughts on best practices?

Tony


[1] http://marc.theaimsgroup.com/?l=xml-cocoon-devm=104441321803644w=2


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



Re: [TIPS] Basic configurations of Apache 2.0 for Cocoon 2

2003-03-18 Thread Pier Fumagalli
On 18/3/03 20:14, Tony Collen [EMAIL PROTECTED] wrote:

 Reading this great article [1] (Thanks Pier!), I realized that the
 mod_rewrite stuff could possibly be worked around using virtualhosts.  I'm
 not too familliar with Apache HTTPD 2, but I assume setting up vhosts is
 not much different.  Would it not make sense to create a static.domain.com
 host (if you have the access and resources), and serve up all of your
 images and resources out of there?
 
 This would allow you to totally ignore the mod_rewrite nastiness.  The
 only problem I could see is having to directly reference static resources
 with the full domain, for example:
 
 img src=http://static.domain.com/foo.png/
 
 Then again, it's not all that much different than
 
 img src=/static/foo.png/
 
 Since they are both absolute paths. Any thoughts on best practices?

You are absolutely utterly right...

We use this approach in production: all (most) images from
http://www.vnunet.com/ (my employer's) end up to...
http://images.vnunet.com/

We're still not using cocoon, but I'm working on it! :-) :-)

Pier




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