Pls help! not working response.encodeURL(String.valueOf(xsl:copy-of select=$href/))

2003-06-18 Thread a000
I'm a novice cocoon user and currently changing an existing site running on
cocoon 2.01 from cookie-based session management to manual URL encoding. This
cocoon version doesn't yet support encodeURLTransformer and I can't upgrade
to a newer version.

The example found at 'cocoon\documentation\xdocs\userdocs\xsp\sessions.xml'
I already successfully tested at a test logicsheet. 

At my stylesheet I use the following fragment:

a
 xsp:attribute name=href
xsp:expr
  response.encodeURL(String.valueOf(xsl:copy-of select=$href/))
/xsp:expr
  /xsp:attribute
  xsl:copy-of select=$href/
/

However the XSL statement appears to return no value although it works
outside xsp:expr.

The errorpage shows the following hints:

The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:
Exception during processing of
http://localhost:8080/demo/XSPXSLWebSimpleMain.htm
More precisely:
org.apache.cocoon.ProcessingException: Exception during processing of
http://localhost:8080/demo/XSPXSLWebSimpleMain.htm:
org.apache.cocoon.ProcessingException: Exception during processing of
http://localhost:8080/demo/XSPXSLSimpleTable.htm: 
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
Table_htm_xsp_xsl:
Line 804, column 73: No method matching valueOf() found in class
java.lang.String.
...
at
org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:136)
at
org.apache.cocoon.transformation.CIncludeTransformer.startElement(CIncludeTransformer.java:83)
 


As I'm required to use cinclude within my stylesheets my sitemap definitions
look like this:

map:pipeline
  map:match pattern=XSPXSL* 
  map:generate type=serverpages
src={1}.xsp.xsl/
  map:transform type=cinclude/
  map:serialize type=xml/
  /map:match

  map:match pattern=SP* 
  map:generate type=serverpages src={1}.xsp/
  map:transform type=cinclude/
  map:serialize type=xml/
  /map:match
  /map:pipeline

   map:pipeline
  map:match pattern=*.htm 
map:generate  src=context://dummy.xml/
map:transform src=cocoon://SP{1}/
map:transform
src=cocoon://XSPXSL{1}.htm/
map:serialize type=html/
  /map:match
  
  map:handle-errors
map:transform src=context://error2html.xsl/
map:serialize status-code=500/
  /map:handle-errors
   /map:pipeline
   
   
Thanks for your help!

Harry

-- 
 

+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


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



Re: Using Cocoon with mail or messenging system?

2003-06-18 Thread Bertrand Delacretaz
Le Mercredi, 18 juin 2003, à 06:08 Europe/Zurich, Daniel Smith a écrit :

Hi. Could anyone please detail whether it is possible to use Cocoon 
with a mail system of any sort?
If you're running 2.1 the mail samples are at 
http://localhost:/samples/mail/samples, but see also
http://wiki.cocoondev.org/Wiki.jsp?page=SendingEmail

How about an Instant Messenger-type of software?
AFAIK there's nothing in Cocoon today, but anything that can be called 
from Java is doable.

--
  Bertrand Delacretaz
  independent consultant, Lausanne, Switzerland
  http://cvs.apache.org/~bdelacretaz/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cocoon for CD-Rom based applications?

2003-06-18 Thread Bertrand Delacretaz
Le Mardi, 17 juin 2003, à 20:07 Europe/Zurich, Ramsey, Alan a écrit :

...We don't mind installing some software on the clients computers, 
but we obviously want to minimize its complexity as much as possible.  
Installing a JVM is probably reasonable, and
since Cocoon seems pretty tightly packaged installing it doesn't 
seem too extensive either...
Actually you don't need to install anything (in the sense of messing 
with Registry settings under Windows for example) to run Cocoon, simply 
copying the directories that contain the JDK, Cocoon and the servlet 
engine to a hard disk will do, provided you setup the environment 
correctly and provided there is a writable temporary directory for work 
files.

There might be licensing problems with this approach though, you'd have 
to check about JDK and servlet engine redistribution rights.

...So the question is: how do I best package Cocoon for the CD 
deployed applications?...
You could certainly run it directly from CD, started from a 
platform-specific wrapper that would
-find a writable temporary directory
-setup the environment
-maybe check for available TCP/IP ports and manipulate configs 
accordingly
-start Cocoon using the JDK that is found on the CD (assuming licensing 
is ok) and a lightweight servlet engine (Jetty for example) also found 
on the CD
-launch a browser on the appropriate URL

I'm pretty sure this works without having to install anything, or by 
just copying files to the user's hard disk if one wants to get rid of 
the CD

--
  Bertrand Delacretaz
  independent consultant, Lausanne, Switzerland
  http://cvs.apache.org/~bdelacretaz/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


concat in sitemap?

2003-06-18 Thread Maxime.Gheysen
Hello,
I wrote a little time ago because I had problems with my parameters in
the sitemap. I thought maybe I had to do like in XSL with a concat
function or something like that?
That's what I want to get :
map:parameter name=rootdn
value={request-param:serverurl}\{request-param:name}/
But this way it doesn't work.

Please help!!!
Thanks

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



Re: Cocoon for CD-Rom based applications?

2003-06-18 Thread Derek Hohls
Bertrand 

You say I'm pretty sure this works - obviously, though, 
someone (?) needs to test this and, hopefully, come up
with some guidelines on the do's and dont's - maybe
Alan will be the person who will do it (but I agree with 
him that it seems surprising no one has done it before...
I am sure there were much earlier posts on this topic)

Derek

 [EMAIL PROTECTED] 18/06/2003 09:18:07 
Le Mardi, 17 juin 2003, à 20:07 Europe/Zurich, Ramsey, Alan a écrit :

 ...We don't mind installing some software on the clients computers, 
 but we obviously want to minimize its complexity as much as possible.  
 Installing a JVM is probably reasonable, and
 since Cocoon seems pretty tightly packaged installing it doesn't 
 seem too extensive either...

Actually you don't need to install anything (in the sense of messing 
with Registry settings under Windows for example) to run Cocoon, simply 
copying the directories that contain the JDK, Cocoon and the servlet 
engine to a hard disk will do, provided you setup the environment 
correctly and provided there is a writable temporary directory for work 
files.

There might be licensing problems with this approach though, you'd have 
to check about JDK and servlet engine redistribution rights.

 ...So the question is: how do I best package Cocoon for the CD 
 deployed applications?...

You could certainly run it directly from CD, started from a 
platform-specific wrapper that would
-find a writable temporary directory
-setup the environment
-maybe check for available TCP/IP ports and manipulate configs 
accordingly
-start Cocoon using the JDK that is found on the CD (assuming licensing 
is ok) and a lightweight servlet engine (Jetty for example) also found 
on the CD
-launch a browser on the appropriate URL

I'm pretty sure this works without having to install anything, or by 
just copying files to the user's hard disk if one wants to get rid of 
the CD

--
   Bertrand Delacretaz
   independent consultant, Lausanne, Switzerland
   http://cvs.apache.org/~bdelacretaz/ 


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


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



Re: custom transformer

2003-06-18 Thread Geert Van Damme

Thanks for the tip, but after playing around with it I realize that I'm mixing up two 
different things.
If I throw the SAXException, the rest of the original pipeline is still executed, 
after which the error pipeline is executed. What I want is to stop the original 
pipeline from the moment the exception is thrown, and thus not do any other 
transformations (this is required 'cause one transformer does some FTP stuff).

To make things clearer :
I'm starting from an XSP using esql to fetch fields from database. When an error 
occurs on database level (esql:error-results), the current pipeline may NOT be 
executed any further, but a new pipeline should be activated (this is why I thought I 
could invoke the error pipeline).

Any suggestions ? Could I use redirects inside the esql:error-results tag ? Or is 
there a better solution ?

Thanks again !


 [EMAIL PROTECTED] 06/17/03 04:39pm 
Le Mardi, 17 juin 2003, à 16:09 Europe/Zurich, Martin Holz a écrit :

 Geert Van Damme [EMAIL PROTECTED] writes:

 Hi,

 I'm writing a custom transformer, extending the 
 AbstractDOMTransformer. Is there a way to throw an exception from 
 this transformer so that the error handling pipeline of the sitemap 
 is 'activated' ? (the transform method signature does not throw an 
 exception). Or is the error handling from the sitemap only meant for 
 SAXExceptions ?


 Any checked exception in setup or any of the ContentHandler methods 
 should activate
 the error pipline. If you can't throw a ProcessingException in setup, 
 wrap a SAXException
 around your real exception.

In the case of AbstractDOMTransformer, transform() doesn't declare any 
exceptions (which it should IMO), so you might have to rewrite the 
notify() method in your transformer so that your transformation 
operation can throw exceptions.

-Bertrand

-
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: transformers and SAX events

2003-06-18 Thread Lionel Crine
Can you be more explicit.

You want to create a String from SAX events with your transformer and then 
send it to the next component?

A transformer take SAX events on entry and return SAX events (using the SAX 
methods).
But I you don't want to use the SAX methods, you can extends your 
transformer from AbstractDOMTransformer (create a DOM from SAX events) and 
then parse the DOM to send it the the next component pipeline.

Lionel

At 14:10 17/06/2003 -0400, you wrote:
Hi everyone,

I am creating my own transformer which extends abstractSAXTransformer.
In the end I am left with a string of XML data.  Is there a simple way
to send this data in a SAX event to the next pipeline component?  I do
not want to have to parse it and send StartEvents, textEvents and
endEvents.
The answer is probably simple, I just can not seem to find it myself.

Thanks,
Dave
-
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: Cocoon for CD-Rom based applications?

2003-06-18 Thread Bertrand Delacretaz
Le Mercredi, 18 juin 2003, à 09:26 Europe/Zurich, Derek Hohls a écrit :

Bertrand

You say I'm pretty sure this works - obviously, though,
someone (?) needs to test this and, hopefully, come up
with some guidelines on the do's and dont's - maybe
Alan will be the person who will do it...
I'm pretty sure this works is what I can say from my experience, I've 
done similar things which worked, but not with Cocoon yet.

I don't need this feature now, so I'm not going to test it myself 
(unless I had *copious free time* or I was hired to do it), but I'm 
happy to give some pointers on how this can be done, and share my 
thoughts on how much chances of success there are.

If Alan wants to go the way I suggested, obviously it would be very 
nice of him to share his experience later using the Wiki or some 
patches. That's what I'd like to happen, but this is Open Source, there 
is no obligation for anyone...

--
  Bertrand Delacretaz
  independent consultant, Lausanne, Switzerland
  http://cvs.apache.org/~bdelacretaz/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cocoon for CD-Rom based applications?

2003-06-18 Thread Stavros Kounis
On Wed, 18 Jun 2003, Bertrand Delacretaz wrote:

 Le Mardi, 17 juin 2003,  20:07 Europe/Zurich, Ramsey, Alan a crit :

  ...We don't mind installing some software on the clients computers,
  but we obviously want to minimize its complexity as much as possible.?
  Installing a JVM is probably reasonable, and
  since Cocoon seems pretty tightly packaged installing it doesn't
  seem too extensive either...

 Actually you don't need to install anything (in the sense of messing
 with Registry settings under Windows for example) to run Cocoon, simply
 copying the directories that contain the JDK, Cocoon and the servlet
 engine to a hard disk will do, provided you setup the environment
 correctly and provided there is a writable temporary directory for work
 files.


maybe (i'm not sure i'll try) this approach will work

create a CDROM with JDK, and cocoon
in CDROM the startup script will set JAVA_HOME to point in cdrom's jdk dir
and then start cocoon as servlet

i have try something similar just copying (without any instalation
procedure) all this from a pc to another, set JAVA_HOME from command line
and run cocoon serlvet so why dont work from CDROM?

i think that this script can keep all ready JAVA_HOME value in a
JAVA_HOME_TEMP var and at the end restore the content of JAVA_HOME with
the default value (if its exist)

the only thing i dont know how to do is how the script can undestrand the
CDROM letter d: or e: etc


--- stavros


 There might be licensing problems with this approach though, you'd have
 to check about JDK and servlet engine redistribution rights.

  ...So the question is: how do I best package Cocoon for the CD
  deployed applications?...

 You could certainly run it directly from CD, started from a
 platform-specific wrapper that would
 -find a writable temporary directory
 -setup the environment
 -maybe check for available TCP/IP ports and manipulate configs
 accordingly
 -start Cocoon using the JDK that is found on the CD (assuming licensing
 is ok) and a lightweight servlet engine (Jetty for example) also found
 on the CD
 -launch a browser on the appropriate URL

 I'm pretty sure this works without having to install anything, or by
 just copying files to the user's hard disk if one wants to get rid of
 the CD

 --
Bertrand Delacretaz
independent consultant, Lausanne, Switzerland
http://cvs.apache.org/~bdelacretaz/


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



-- 
Stavros S. Kounis
Development  Research Department
Osmosis - networks  consulting services

web:http://www.osmosis.gr
email:  [EMAIL PROTECTED]


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



Re: concat in sitemap?

2003-06-18 Thread Konstantin Piroumian
Try this one:
map:parameter name=rootdn
value={request-param:concat(serverurl, '\', name)}}/

Take a look at the Input Modules samples at
http://localhost:/cocoon/samples/modules . There are several examples of
XPath usage with input modules in the sitemap.

Regards,
  Konstantin

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:20
Subject: concat in sitemap?


Hello,
I wrote a little time ago because I had problems with my parameters in
the sitemap. I thought maybe I had to do like in XSL with a concat
function or something like that?
That's what I want to get :
map:parameter name=rootdn
value={request-param:serverurl}\{request-param:name}/
But this way it doesn't work.

Please help!!!
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: concat in sitemap?

2003-06-18 Thread Maxime.Gheysen
I will try with value={request-param:concat(servername,'\',name)}.
But I think I have a problem getting parameter servername. I don't
know why, I just added this input in the login.xml
...
field name=name type=text length=24 description=Name/
field name=passwordtype=password length=10
description=Password/
field name=servername type=text length=24 value=CORPROOT
description=LDAP Domain/
...
The output seems correct :
...
form ...
input type=text name=name.../
input type=password name=password.../
input type=text name=servername.../
/form
...

I remarked it because in the sunrise-user.xsl I wrote :
xsl:param name=password/
xsl:param name=name/
xsl:param name=servername/
and then
testxsl:value-of select=$servername//test --returns nothing
test2xsl:value-of select=$name//test2 --returns the right name



-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2003 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: concat in sitemap?


Try this one:
map:parameter name=rootdn
value={request-param:concat(serverurl, '\', name)}}/

Take a look at the Input Modules samples at
http://localhost:/cocoon/samples/modules . There are several
examples of
XPath usage with input modules in the sitemap.

Regards,
  Konstantin

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:20
Subject: concat in sitemap?


Hello,
I wrote a little time ago because I had problems with my parameters in
the sitemap. I thought maybe I had to do like in XSL with a concat
function or something like that?
That's what I want to get :
map:parameter name=rootdn
value={request-param:serverurl}\{request-param:name}/
But this way it doesn't work.

Please help!!!
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]



RE: Informix configuration

2003-06-18 Thread Carmona Perez, David








I have successfully used Cocoon with
Informix, but I use other methods of connecting to the database, I do it
through Java code. Here is an
excerpt of my pipeline:



 map:components

 map:transformers default=xslt

   map:transformer name=sql src="">org.apache.cocoon.transformation.SQLTransformer/

 /map:transformers

 /map:components

 map:pipelines

 map:transform type=sql label=transf1

 map:parameter name=dburl value={session:databaseUrl}/

 /map:transform

 /map:pipelines



Through an input module and JXDom, I
access a function call getUrl() that returns a string that contains the URL to
the database connection, of the following type:



jdbc:informix-sqli://server:1526/database:INFORMIXSERVER=server;user=myuser;password=mypassword



I do so, because each user session
may have a connection to a different database.







David



-Mensaje
original-
De: Galia Angelova
[mailto:[EMAIL PROTECTED]
Enviado el: martes, 17 de junio de
2003 16:44
Para: [EMAIL PROTECTED]
Asunto: Informix configuration 



Hi!
Does anybody know how to configure cocoon in order to work with Informix?
Ihe informix data base is on a remote PC- profisrv,Informix server
name - ol_profisrv, database name eisppbase
I've done the folowing configuration:





 in cocoon.xconf:



 datasources
 jdbc name=eispp
 pool-controller min=5
max=10/

dburljdbc:informix-sqli://profisrv:1526/eisppbase:INFORMIXSERVER=ol_profisrv/dburl
 userusr/user
 password/
 DBDATEDMY4/DBDATE
 /jdbc
 /datasources



in web.xml:



init-param
 param-nameload-class/param-name
 param-value
com.informix.jdbcx.IfxConnectionPoolDataSource
 /param-value
/init-param



page.xml:



page xmlns:sql=http://apache.org/cocoon/SQL/2.0
 titleMy App page/title
 content
 paraJust a static
contents/para
 execute-query xmlns=http://apache.org/cocoon/SQL/2.0 
 query
 select title from
sm_State where ID_State='12'
 !-- here comes the
SQL statement or stored procedure --
 /query
 /execute-query
 
 /content
/page

sitemap.xmap:


map:match pattern=*.xml

map:generate src="">

map:transform type=sql

map:parameter name=use-connection value=eispp/

map:parameter name=show-nr-of-rows value=true/
/map:transform

map:transform src="">

map:serialize/

/map:match




After running the application I get this message:





My App page

Just a static contents Failed to obtain connection. Made
5 attempts with 5000ms interval 





Is there something that I've missed?

Thank you in advance!



Galia









Do you Yahoo!?
SBC Yahoo! DSL - Now
only $29.95 per month!








RE: calling a custom method in a bean?

2003-06-18 Thread Carmona Perez, David
You have many possibilities, these are some of them:

1. You can use a Xalan Java extensions, you can easily call any Java function from a 
XSLT file (see http://xml.apache.org/xalan-j)
2. You can use an input module and pass a parameter to a XSLT transform in this way

map:transform src=my.xsl
map:parameter name=myparameter value={my-input-module:myfunction()}
/map:transform



David

-Mensaje original-
De: Paul Tomsic [mailto:[EMAIL PROTECTED]
Enviado el: martes, 17 de junio de 2003 20:30
Para: [EMAIL PROTECTED]
Asunto: calling a custom method in a bean?

Is it possible to alter the pipeline of cocoon
so that we're calling a custom javabean that would
generate the XML for the transform?  (or at least call
our own method from our bean?)

More specifically, one of our reports needs column
headers that have the date(s) of fiscal years on them.
This information comes from an order that was placed
in, say FQ4-2003, so our column headers would be:
30.June 2003,7.July.2003,14.July.2003, etc.

We need to figure out the first monday of a quarter,
then add 7 to it for 13 wks.
We've got a method that does this in Java, but how do
we call that method from cocoon?
Just wondering if anyone's dealt w/ this before?

thanks

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.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]



Re: Cocoon for CD-Rom based applications?

2003-06-18 Thread Alexander Schatten
o.k. this might be a wild idea, but I have some additional suggestion:

would it be acceptable for the clients to reboot the system before using 
the product?

In this case (and Linux know-how required) you could try the following:

(1) get knoppix linux

(2) modify the distribution, so that tomcat, cocoon and your app is 
included and autostarted!

(3) boot from this CD/DVD and thats it: no installation required, no 
harddisk space.

advantages:
-- you could access the complete linux environment including things like 
mySQL databases
-- no manipulation on the user system required
-- you have the setup completly under control

disadvantages:
-- good Linux know-how required
-- small risk with hardware detection problems of Knoppix
-- system has to be rebooted
Alex

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


AW: Cocoon for CD-Rom based applications?

2003-06-18 Thread Jrn Heid
I used JDK, Jetty and Cocoon some time ago on CD. Works perfectly. You can also use 
HypersonicSQL as SQL-DB, it has a read-only mode.

The problem is the performance. As Java uses a lot of small files the startup takes a 
while and the cd-rom works permanently.

I think the best way is to say the users: To boost performance just copy the files to 
HD and start it from there

-Ursprngliche Nachricht-
Von: Stavros Kounis [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 18. Juni 2003 10:05
An: [EMAIL PROTECTED]
Betreff: Re: Cocoon for CD-Rom based applications?


On Wed, 18 Jun 2003, Bertrand Delacretaz wrote:

 Le Mardi, 17 juin 2003,  20:07 Europe/Zurich, Ramsey, Alan a crit :

  ...We don't mind installing some software on the clients 
  computers, but we obviously want to minimize its complexity as much 
  as possible. Installing a JVM is probably reasonable, and since 
  Cocoon seems pretty tightly packaged installing it doesn't seem 
  too extensive either...

 Actually you don't need to install anything (in the sense of messing 
 with Registry settings under Windows for example) to run Cocoon, 
 simply copying the directories that contain the JDK, Cocoon and the 
 servlet engine to a hard disk will do, provided you setup the 
 environment correctly and provided there is a writable temporary 
 directory for work files.


maybe (i'm not sure i'll try) this approach will work

create a CDROM with JDK, and cocoon
in CDROM the startup script will set JAVA_HOME to point in cdrom's jdk dir and then 
start cocoon as servlet

i have try something similar just copying (without any instalation
procedure) all this from a pc to another, set JAVA_HOME from command line and run 
cocoon serlvet so why dont work from CDROM?

i think that this script can keep all ready JAVA_HOME value in a JAVA_HOME_TEMP var 
and at the end restore the content of JAVA_HOME with the default value (if its exist)

the only thing i dont know how to do is how the script can undestrand the CDROM letter 
d: or e: etc


--- stavros


 There might be licensing problems with this approach though, you'd 
 have to check about JDK and servlet engine redistribution rights.

  ...So the question is: how do I best package Cocoon for the CD 
  deployed applications?...

 You could certainly run it directly from CD, started from a 
 platform-specific wrapper that would -find a writable temporary 
 directory -setup the environment
 -maybe check for available TCP/IP ports and manipulate configs
 accordingly
 -start Cocoon using the JDK that is found on the CD (assuming licensing
 is ok) and a lightweight servlet engine (Jetty for example) also found
 on the CD
 -launch a browser on the appropriate URL

 I'm pretty sure this works without having to install anything, or by 
 just copying files to the user's hard disk if one wants to get rid of 
 the CD

 --
Bertrand Delacretaz
independent consultant, Lausanne, Switzerland
http://cvs.apache.org/~bdelacretaz/


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



-- 
Stavros S. Kounis
Development  Research Department
Osmosis - networks  consulting services

web:http://www.osmosis.gr
email:  [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: Cocoon for CD-Rom based applications?

2003-06-18 Thread Alexander Schatten
Alexander Schatten wrote:

advantages:
-- you could access the complete linux environment including things 
like mySQL databases
-- no manipulation on the user system required
-- you have the setup completly under control
addition: *one such Knoppix* booted system could be used as internal 
server for the cocoon application also to other clients in the company 
and eventually solve the problem that way. so the system admins could 
easily offer one machine as knoppix/Cocoon server, as there are *no* 
modifications on the system required except one reboot.

Alex

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


Re: Cocoon for CD-Rom based applications?

2003-06-18 Thread Derek Hohls
Of course, there are the legal niceties - from the
Knoppix site:

IF YOU PLAN TO COMMERCIALLY USE OR DISTRIBUTE (AND SELL)
 THE SOFTWARE, YOU HAVE TO ACQUIRE THE NECESSARY LICENSES 
AND PERMISSIONS FROM ALL SOFTWARE COPYRIGHT HOLDERS OF 
NON-FREE SOFTWARE COMPONENTS, OR REMOVE THESE 
COMPONENTS BEFORE DISTRIBUTING THE SOFTWARE.

This means that for anyone making commercial use of this
(and I assume the original need around making use of this
inside a bank constitutes a commercial use ;-) means
some of the apps could not be included (prob not an issue).

Also, the Knoppix download is for an 'iso' image of the CD -
as you say, someone will have to modify the distribution, 
so that tomcat, cocoon and your app is included and autostarted.

The other downside is, I guess, that the users then no longer
have access to their regular apps (prob. on Wind*ze) in many
cases...

All in all, the ideal would be a CD that does not require rebooting
into a foreign O/S.

Just my 2c on this
Derek

 [EMAIL PROTECTED] 18/06/2003 10:53:11 
o.k. this might be a wild idea, but I have some additional suggestion:

would it be acceptable for the clients to reboot the system before using 
the product?


In this case (and Linux know-how required) you could try the following:

(1) get knoppix linux

(2) modify the distribution, so that tomcat, cocoon and your app is 
included and autostarted!

(3) boot from this CD/DVD and thats it: no installation required, no 
harddisk space.

advantages:
-- you could access the complete linux environment including things like 
mySQL databases
-- no manipulation on the user system required
-- you have the setup completly under control

disadvantages:
-- good Linux know-how required
-- small risk with hardware detection problems of Knoppix
-- system has to be rebooted


Alex


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


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



Re: Cocoon for CD-Rom based applications?

2003-06-18 Thread Alexander Schatten
Derek Hohls wrote:

All in all, the ideal would be a CD that does not require rebooting
into a foreign O/S.
 

yes, I see that point, but besides the other facts mentioned, what  is 
appealing to me is that fact, that you could create an company internal 
learning server extremly easily with this approach; no installation 
required.

Alex

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


AW: Getting session object inside a custom generator

2003-06-18 Thread Jörn Heid
Title: Nachricht


public 
void generate () throws SAXException 
{Sessionsession = ObjectModelHelper.getRequest (objectModel).getSession(true);


  
  -Ursprüngliche Nachricht-Von: Brian Delahunty 
  [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Juni 2003 
  12:18An: [EMAIL PROTECTED]Betreff: Getting 
  session object inside a custom generator
  Hey All,
  
  I was just wondering if it is 
  possible to get access to a users session object from within a custom 
  generator?
  
  Thanks
  
  Brian 
Dela


Cocoon 2.1 migration problem with sub-sitemap

2003-06-18 Thread Peter Klotz
Hi,

I have migrated a sub-sitemap from Cocoon 2.0.4 to 2.1m3.
With 2.0.4 everything worked fine, now with 2.1 I only get empty pages.
The reason seems to be that the sub-sitemap in cocoon/sims is never 
really called. Whenever I call a URL with sims/something I get empty 
page with NO errors although in logkit.xconf I have set everything on DEBUG.

I saw one big difference between 2.0.4 and 2.1 and that is that 
sub-sitemaps seem to be automatically mounted with a generic pipeline.
The sub-sitemap example does not exist anymore, the only sub-sitemap 
available is samples.

Does one have to declare now really ALL components in each sub-sitemap 
that it uses, because I get DEBUG messages that say that a Selector has 
not found component for hint [request] or [session] for example?
But when I look into the samples sitemap then that does not declare any 
components although it definitely uses some?

So what is different in 2.1?

Please help, Peter

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


RE: Cocoon 2.1 migration problem with sub-sitemap

2003-06-18 Thread Nathaniel Alfred
Did you add map:pipes to the map:components section in the root
sitemap?

 -Original Message-
 From: Peter Klotz [mailto:[EMAIL PROTECTED]
 Sent: Mittwoch, 18. Juni 2003 11:48
 To: [EMAIL PROTECTED]
 Subject: Cocoon 2.1 migration problem with sub-sitemap
 
 
 Hi,
 
 I have migrated a sub-sitemap from Cocoon 2.0.4 to 2.1m3.
 With 2.0.4 everything worked fine, now with 2.1 I only get 
 empty pages.
 The reason seems to be that the sub-sitemap in cocoon/sims is never 
 really called. Whenever I call a URL with sims/something I get empty 
 page with NO errors although in logkit.xconf I have set 
 everything on DEBUG.
 
 I saw one big difference between 2.0.4 and 2.1 and that is that 
 sub-sitemaps seem to be automatically mounted with a generic pipeline.
 The sub-sitemap example does not exist anymore, the only sub-sitemap 
 available is samples.
 
 Does one have to declare now really ALL components in each 
 sub-sitemap 
 that it uses, because I get DEBUG messages that say that a 
 Selector has 
 not found component for hint [request] or [session] for example?
 But when I look into the samples sitemap then that does not 
 declare any 
 components although it definitely uses some?
 
 So what is different in 2.1?
 
 Please help, Peter
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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: Getting session object inside a custom generator

2003-06-18 Thread Lionel Crine
yes.

Use the ObjectModelhelper object in the setup method.

for example
   //Get the session parameter id
Request request = ObjectModelHelper.getRequest(objectModel);
Session session = request.getSession(false);
// requete
String id = (String)session.getAttribute(id);
Lionel

At 11:17 18/06/2003 +0100, you wrote:
Hey All,

I was just wondering if it is possible to get access to a users session 
object from within a custom generator?

Thanks

Brian Dela


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


XSP Editors

2003-06-18 Thread Brian Delahunty



Anybody know of any good editors 
for XSP or if there are XSP plugins for Dreamweaver?




RE: Informix configuration

2003-06-18 Thread Galia Angelova
Thank you, David!

It's a good idea.

The problem is that i can't get a cannection with thw data base. Something with my configuration or driver is not proper.

Galia

"Carmona Perez, David" [EMAIL PROTECTED] wrote:









I have successfully used Cocoon with Informix, but I use other methods of connecting to the database, I do it through Java code. Here is an excerpt of my pipeline:

 map:components
 map:transformers default="xslt"
   map:transformer name="sql" src="">"org.apache.cocoon.transformation.SQLTransformer"/
 /map:transformers
 /map:components
 map:pipelines
 map:transform type="sql" label="transf1"
 map:parameter name="dburl" value="{session:databaseUrl}"/
 /map:transform
 /map:pipelines

Through an input module and JXDom, I access a function call getUrl() that returns a string that contains the URL to the database connection, of the following type:

jdbc:informix-sqli://server:1526/database:INFORMIXSERVER=server;user=myuser;password=mypassword

I do so, because each user session may have a connection to a different database.



David

-Mensaje original-De: Galia Angelova [mailto:[EMAIL PROTECTED]Enviado el: martes, 17 de junio de 2003 16:44Para: [EMAIL PROTECTED]Asunto: Informix configuration 

Hi!Does anybody know how to configure cocoon in order to work with Informix?Ihe informix data base is on a remote PC- "profisrv",Informix server name - "ol_profisrv", database name "eisppbase"I've done the folowing configuration:


 in cocoon.xconf:

 datasources jdbc name="eispp" pool-controller min="5" max="10"/ dburljdbc:informix-sqli://profisrv:1526/eisppbase:INFORMIXSERVER=ol_profisrv/dburl userusr/user password/ DBDATEDMY4/DBDATE /jdbc /datasources

in web.xml:

init-param param-nameload-class/param-name param-valuecom.informix.jdbcx.IfxConnectionPoolDataSource /param-value/init-param

page.xml:

page xmlns:sql="http://apache.org/cocoon/SQL/2.0" titleMy App page/title content paraJust a static contents/para execute-query xmlns="http://apache.org/cocoon/SQL/2.0" 
 query select title from sm_State where ID_State='12' !-- here comes the SQL statement or stored procedure -- /query /execute-query  /content/page
sitemap.xmap:
 map:match pattern="*.xml" map:generate src=""/ map:transform type="sql" map:parameter name="use-connection"
 value="eispp"/ map:parameter name="show-nr-of-rows" value="true"//map:transform map:transform src=""/ map:serialize/ /map:match 

After running the application I get this message:


My App page
Just a static contents Failed to obtain connection. Made 5 attempts with 5000ms interval 


Is there something that I've missed?
Thank you in advance!

Galia



Do you Yahoo!?SBC Yahoo! DSL - Now only $29.95 per month!
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

ComponentSelector could not find the component for hint [XML] ?

2003-06-18 Thread zze-MORY Nicolas FTRD/DMI/REN
Anyone know this error ?

ERROR   (2003-06-18) 13:48.08:461   [sitemap] (/cocoon-dev/foo-login) 
tcpConnection-8080-3/sitemap_xmap: Sitemap
org.apache.avalon.framework.component.ComponentException: UnnamedSelector: 
ComponentSelector could not find the component for hint [XML]

Thanks

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



xpath query help

2003-06-18 Thread g4
Hi list,

I'm trying to query a document key. I have a collection of documents  
that have Xindice generated document id's. So for example:

collection:result docid=02ffa7c04be9053700f5b2fb799b
Enquiry xmlns:src=http://xml.apache.org/xindice/Query; approved=  
date=Tue Jun 10 19:23:08 BST 2003 src:col=/db/Enquiry  
src:key=02ffa7c04be9053700f5b2fb799b time= year=
	fname xmlns:src=http://xml.apache.org/xindice/Query;TEST  
DATA/fname
	lname xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA  
/lname
	email xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA  
/email
	telephone type=mobile  
xmlns:src=http://xml.apache.org/xindice/Query;5455545466/telephone
	address xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA  
/address
	town xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA  
/town
	county xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA  
/county
	postcode xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA  
/postcode
		contact email= xmlns:src=http://xml.apache.org/xindice/Query;
			hours xmlns:src=http://xml.apache.org/xindice/Query;08:00  
-20:00/hours
			days xmlns:src=http://xml.apache.org/xindice/Query;sat-sun/days
		/contact
	requirements timescale=3-6 months  
xmlns:src=http://xml.apache.org/xindice/Query;
		style bespoke= edwardian=true leanto= victorian=true  
xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA /style
		dimensions type=imperial  
xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA /dimensions
		budget currency=GBP  
xmlns:src=http://xml.apache.org/xindice/Query;3000 - 5000/budget
		notes xmlns:src=http://xml.apache.org/xindice/Query; TEST DATA  
/notes
	/requirements
/Enquiry
/collection:result

I'm using this Xpath expression (and many variations of) through  
Cocoon's pseudo-control:

http://127.0.0.1:8080/cocoon/conserv/protected/dbtest/Enquiry/?xpath=/ 
[EMAIL PROTECTED]:key='02ffa7c04be9053700f5b2fb799b']

with no luck at all. I am guessing that the attribute prefix may be  
cause of all my woes.

Any help warmly appreciated.

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


Re: ComponentSelector could not find the component for hint [XML] ?

2003-06-18 Thread Lionel Crine
You made a request on Cocoon before it finishes to recomplied.



At 14:08 18/06/2003 +0200, you wrote:
Anyone know this error ?

ERROR   (2003-06-18) 13:48.08:461   [sitemap] (/cocoon-dev/foo-login) 
tcpConnection-8080-3/sitemap_xmap: Sitemap
org.apache.avalon.framework.component.ComponentException: UnnamedSelector: 
ComponentSelector could not find the component for hint [XML]

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: ComponentSelector could not find the component for hint [XML] ?

2003-06-18 Thread Brian Delahunty
Have you included the relevant files? [class files etc]


- Original Message - 
From: zze-MORY Nicolas FTRD/DMI/REN [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:08 PM
Subject: ComponentSelector could not find the component for hint [XML] ?


Anyone know this error ?

ERROR   (2003-06-18) 13:48.08:461   [sitemap] (/cocoon-dev/foo-login)
tcpConnection-8080-3/sitemap_xmap: Sitemap
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint [XML]

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: ComponentSelector could not find the component for hint [XML] ?

2003-06-18 Thread zze-MORY Nicolas FTRD/DMI/REN
how is it possible ? and how can i wait the recompilation ?


-Original Message-
From: Lionel Crine [mailto:[EMAIL PROTECTED]
Sent: mercredi 18 juin 2003 14:47
To: [EMAIL PROTECTED]
Subject: Re: ComponentSelector could not find the component for hint
[XML] ?


You made a request on Cocoon before it finishes to recomplied.



At 14:08 18/06/2003 +0200, you wrote:
Anyone know this error ?

ERROR   (2003-06-18) 13:48.08:461   [sitemap] (/cocoon-dev/foo-login) 
tcpConnection-8080-3/sitemap_xmap: Sitemap
org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: 
ComponentSelector could not find the component for hint [XML]

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]



RE: ComponentSelector could not find the component for hint [XML] ?

2003-06-18 Thread zze-MORY Nicolas FTRD/DMI/REN
yes i thnik that i included all class that i need 
this error comes from the sunRise component use
when i try to call a protected page, the component calls the error page and in the 
sitemap.log i have this error :
RROR   (2003-06-18) 13:48.08:461   [sitemap] (/cocoon-dev/foo-login)
tcpConnection-8080-3/sitemap_xmap: Sitemap
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint [XML]



-Original Message-
From: Brian Delahunty [mailto:[EMAIL PROTECTED]
Sent: mercredi 18 juin 2003 14:55
To: [EMAIL PROTECTED]
Subject: Re: ComponentSelector could not find the component for hint
[XML] ?


Have you included the relevant files? [class files etc]


- Original Message - 
From: zze-MORY Nicolas FTRD/DMI/REN [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:08 PM
Subject: ComponentSelector could not find the component for hint [XML] ?


Anyone know this error ?

ERROR   (2003-06-18) 13:48.08:461   [sitemap] (/cocoon-dev/foo-login)
tcpConnection-8080-3/sitemap_xmap: Sitemap
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint [XML]

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]



RE: ComponentSelector could not find the component for hint [XML] ?

2003-06-18 Thread Lionel Crine
Sorry, I told you crap.
In fact you use a component that is not defined in the sitemap.xmap
Sorry again.

Here is how i call the sunrise components :

!-- === SunShine === --
  map:action name=sunRise_login
  src=org.apache.cocoon.sunshine.sunrise.acting.LoginAction /
  map:action name=sunRise_logout
  src=org.apache.cocoon.sunshine.sunrise.acting.LogoutAction /
  map:action name=sunRise_loggedIn
  src=org.apache.cocoon.sunshine.sunrise.acting.LoggedInAction /
  map:action name=sunShine_session
  src=org.apache.cocoon.sunshine.acting.SessionAction /
  map:action name=sunSpot_auth
  src=org.apache.cocoon.sunshine.sunspot.acting.AuthAction /
  map:action name=sunRise_auth
  src=org.apache.cocoon.sunshine.sunrise.acting.AuthAction
handlers
  handler name=foo_handler
  xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  xmlns:sunshine=http://sunshine.sundn.de/sunshine/1.0;
redirect-to uri=cocoon://demo /
authentication uri=cocoon://authuser /
  /handler
/handlers
  /map:action
Lionel

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


Re: ComponentSelector could not find the component for hint [XML] ?

2003-06-18 Thread Olivier Billard
Maybe a case error :
map:serialize type=XML/
instead of
map:serialize type=xml/

- Original Message - 
From: Lionel Crine [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 3:17 PM
Subject: RE: ComponentSelector could not find the component for hint [XML] ?


 Sorry, I told you crap.
 In fact you use a component that is not defined in the sitemap.xmap


 Sorry again.

 Here is how i call the sunrise components :

 !-- === SunShine === --
map:action name=sunRise_login
src=org.apache.cocoon.sunshine.sunrise.acting.LoginAction /
map:action name=sunRise_logout
src=org.apache.cocoon.sunshine.sunrise.acting.LogoutAction /
map:action name=sunRise_loggedIn
src=org.apache.cocoon.sunshine.sunrise.acting.LoggedInAction /
map:action name=sunShine_session
src=org.apache.cocoon.sunshine.acting.SessionAction /
map:action name=sunSpot_auth
src=org.apache.cocoon.sunshine.sunspot.acting.AuthAction /
map:action name=sunRise_auth
src=org.apache.cocoon.sunshine.sunrise.acting.AuthAction
  handlers
handler name=foo_handler
xmlns:map=http://apache.org/cocoon/sitemap/1.0;
xmlns:sunshine=http://sunshine.sundn.de/sunshine/1.0;
  redirect-to uri=cocoon://demo /
  authentication uri=cocoon://authuser /
/handler
  /handlers
/map:action


 Lionel


 -
 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: cached cinclude doesn't work on 2.0?

2003-06-18 Thread Ed Yavno
Thanks Joerg,
does it mean that cinclude:cached-include src=... / will actually work with 2.05?
Now (with 2.03), these statements are completely ignored and no transformation happens 
at all (that's without DefaultIncludeCacheManager/IncludeCacheManager component 
specified in cocoon.xconf).

- Ed Y.

 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 17, 2003 6:20 PM
 To: [EMAIL PROTECTED]
 Subject: Re: cached cinclude doesn't work on 2.0?
 
 
 Instead of Cocoon 2.1 from CVS you can use Cocoon 2.0.5 from CVS 
 (hopefully released at the beginning of July). It has at least the 
 caching implemented in the CincludeTransformer, but I don't know 
 anything about the DefaultIncludeCacheManager.
 
 Joerg
 
 Ed Yavno wrote:
  Hi all,
  
  I'm trying to use the cinclude transformer on a document 
 that has cinclude references to quite a few large files. 
  The result of this transformation doesn't need to be the 
 most up-to-date, so I'd like to use cached cinclude 
 (cinclude:cached-include) which would expire once a hour.
  
  I'm following documentation for cinclude here: 
 http://cocoon.apache.org/2.0/userdocs/transformers/cinclude-tr
 ansformer.html
  
  Here are my relevant configs.
  
  sitemap.xmap:
  
  map:match pattern=rssmain_test
  map:generate src=docs/custom/cinclude_test_src.xml/
  map:transform type=cinclude
  map:parameter name=expires value=3600 /
  /map:transform
  map:serialize type=xml /
  /map:match
  
  cinclude_test_src.xml:
  
  sites xmlns:cinclude=http://apache.org/cocoon/include/1.0;
cinclude:cached-include src=docs/custom/site1.xml /
cinclude:cached-include src=docs/custom/site2.xml /
cinclude:cached-include src=docs/custom/site3.xml /
cinclude:cached-include src=docs/custom/site4.xml /
cinclude:cached-include src=docs/custom/site5.xml /
cinclude:cached-include src=docs/custom/site6.xml /
  /sites
  
  
  According to the cinclude documentation, I also need to add 
 the following component to cocoon.xconf, which I've done:
  
   component 
 class=org.apache.cocoon.transformation.helpers.DefaultInclude
 CacheManager
  
 role=org.apache.cocoon.transformation.helpers.IncludeCacheManager
   /component
  
  Having done that, cocoon started generating internal 
 errors, and this what I've found in the core.log:
  
  java.lang.ClassNotFoundException: 
 org.apache.cocoon.transformation.helpers.DefaultIncludeCacheManager
  ...
  stack trace here /
  ...
  
  I didn't find 
 org.apache.cocoon.transformation.helpers.DefaultIncludeCacheMa
 nager nor 
 org.apache.cocoon.transformation.helpers.IncludeCacheManager 
 in cocoon 2.03, and that's the version we're using. However, 
 they are present in the last milestone of 2.1.
  Does it mean that the documentation is 2.1 specific?
  Is there a way to use cached cincludes in 2.0.3?
  
  I built the last 2.1 milestone and tried to use 
 DefaultIncludeCacheManager, IncludeCacheManager and other 
 related classes in 2.0.3 (by dropping them in 
 WEB-INF/classes/...), but there appears to be a lot of other 
 dependencies.
  
  Upgrading to 2.1.0 is not an option at the moment, so I 
 would appreciate any suggestions on getting cached cincludes 
 to work with 2.0.3.
  
  Thanks,
  - Ed Y.
 
 

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



RE: Informix configuration

2003-06-18 Thread Carmona Perez, David


Thank you, David!

It's a good idea.

The problem is that i can't get a cannection with thw data base. Something with my configuration or driver is not proper.

Galia

"Carmona Perez, David" [EMAIL PROTECTED] wrote:









I have successfully used Cocoon with Informix, but I use other methods of connecting to the database, I do it through Java code. Here is an excerpt of my pipeline:








Try a small Java program that doesnt
use Cocoon, that connects to Informix 





David



-Mensaje
original-
De: Galia Angelova
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 18 de junio
de 2003 13:58
Para: [EMAIL PROTECTED]
Asunto: RE: Informix configuration








 map:components

 map:transformers default=xslt

 map:transformer name=sql src="">org.apache.cocoon.transformation.SQLTransformer/

 /map:transformers

 /map:components

 map:pipelines

 map:transform type=sql label=transf1

 map:parameter name=dburl value={session:databaseUrl}/

 /map:transform

 /map:pipelines



Through
an input module and JXDom, I access a function call getUrl() that returns a
string that contains the URL to the database connection, of the following type:



jdbc:informix-sqli://server:1526/database:INFORMIXSERVER=server;user=myuser;password=mypassword



I
do so, because each user session may have a connection to a different database.







David



-Mensaje
original-
De: Galia Angelova
[mailto:[EMAIL PROTECTED]
Enviado el: martes, 17 de junio de
2003 16:44
Para: [EMAIL PROTECTED]
Asunto: Informix configuration 



Hi!
Does anybody know how to configure cocoon in order to work with Informix?
Ihe informix data base is on a remote PC- profisrv,Informix server
name - ol_profisrv, database name eisppbase
I've done the folowing configuration:






in cocoon.xconf:




datasources
 jdbc name=eispp
 pool-controller min=5
max=10/
 dburljdbc:informix-sqli://profisrv:1526/eisppbase:INFORMIXSERVER=ol_profisrv/dburl
 userusr/user
 password/
 DBDATEDMY4/DBDATE
 /jdbc
 /datasources



in
web.xml:



init-param
 param-nameload-class/param-name
 param-value
com.informix.jdbcx.IfxConnectionPoolDataSource
 /param-value
/init-param



page.xml:



page
xmlns:sql=http://apache.org/cocoon/SQL/2.0
 titleMy App page/title
 content
 paraJust a static
contents/para
 execute-query xmlns=http://apache.org/cocoon/SQL/2.0 
 query
 select title from
sm_State where ID_State='12'
 !-- here comes the
SQL statement or stored procedure --
 /query
 /execute-query
 
 /content
/page

sitemap.xmap:


map:match pattern=*.xml

map:generate src="">

map:transform type=sql

map:parameter name=use-connection value=eispp/

map:parameter name=show-nr-of-rows value=true/
/map:transform

map:transform src="">

map:serialize/

/map:match




After
running the application I get this message:





My App page

Just a
static contents Failed to obtain connection. Made 5 attempts with 5000ms
interval 





Is
there something that I've missed?

Thank
you in advance!



Galia









Do you
Yahoo!?
SBC Yahoo! DSL - Now
only $29.95 per month!









Do you Yahoo!?
SBC Yahoo! DSL - Now
only $29.95 per month!








DHTML Help

2003-06-18 Thread Tim Bachta
I know this is not the place to ask DHTML Questions but maybe somebody
knows where I can get some information.  I am having an issue with a div
panel being blocked by a combo box.  Any help would be greatly
appreciated.  I guess this does have something to do with cocoon since
the page is being generated by cocoon.  Thanks.

Tim Bachta
 


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



FOP problems with Unix

2003-06-18 Thread Carmona Perez, David
Hi all,

I have a strange problem.  Under Windows, everything works ok, the FOP serializer 
creates a PDF file.

But under Unix, some files are converted ok and some aren't.

The FOP xml file created by the pipeline is the same. I've tried to convert it to pdf 
by invoking directly FOP through a command line and it works.

So it must be something related to the interface between FOP and Cocoon.  In addition, 
I don't get any error message in the logs.

I'm using Cocoon 2.0.4

Any help would be greatly appreciated.



David


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



XML Parsing + SAX

2003-06-18 Thread Brian Delahunty



Hey,

I have a String that contains an 
XML file [not a URL/URI that points to an XML file but the actual XML 
itself].

I'm tying to use this string in a 
custom generator to produce sa exents. I'm using this code so far:
XMLReader xmlr = 
XMLReaderFactory.createXMLReader();xmlr.setContentHandler(this.contentHandler);xmlr.parse( don't know what goes 
here);

I can't get parse to work 
with a String.

Any 
ideas?

Brian



AW: XML Parsing + SAX

2003-06-18 Thread Merenidis, Grigorios
Hi!
 
try this:
 
XMLReader parser =
XMLReaderFactory.createXMLReader(org.apache.xerces.parsers.SAXParser);
ContentHandler c1 = new ContentHandler();
ErrorHandler e1 = new ErrorHandler();
parser.setContentHandler(c1);
parser.setErrorHandler(e1);
parser.parse(new InputSource(new StringReader(your special
String!!)));
 
cheers 
 
gregori

-Ursprüngliche Nachricht-
Von: Brian Delahunty [mailto:[EMAIL PROTECTED]
Gesendet am: Mittwoch, 18. Juni 2003 17:11
An: [EMAIL PROTECTED]
Betreff: XML Parsing + SAX

Hey,
 
I have a String that contains an XML file [not a URL/URI that points to an
XML file but the actual XML itself].
 
I'm tying to use this string in a custom generator to produce sa exents. I'm
using this code so far:

XMLReader xmlr = XMLReaderFactory.createXMLReader();
xmlr.setContentHandler(this.contentHandler);
xmlr.parse( don't know what goes here );
 
I can't get parse to work with a String.
 
Any ideas?
 
Brian
 


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



Re: multiple cocoons in tomcat

2003-06-18 Thread Boris Althaus



Thank you, i am looking forward!

boris

  - Original Message - 
  From: 
  Stavros Kounis 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, June 18, 2003 12:37 
  AM
  Subject: Re: multiple cocoons in 
  tomcat
  On Tue, 17 Jun 2003, Boris Althaus wrote: Hello 
  Stavros, I thought about this solution too, it seemed not 
  separated enough to me. Or is this no problem? 128 RAM is quite small. 
  Do you have problems with MemoryOverflow or Sitemap is null 
  exceptions?i use to get outOfMemory error messages, or blank pages 
  without errormessage when i modify something insub-sitemaps but 
  only when i ask content through wrapConnection, askingcontent directly 
  from tomcat (8080) everything are ok but this box needsome time to compile 
  sitemaps (first time). i'm talking about a 2 yearsold box serving several 
  sites (virtual hosting)next days we will test a new linux box with 1GB 
  RAMi'll report my experiences then in this thread-- 
  stavros - Original Message - 
  From: Stavros Kounis To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 17, 2003 10:40 PM Subject: Re: 
  multiple cocoons in tomcat we 
  use the same cocoon instance to serve up to 10 web sites using 
  subsite map for each one on a PII 650 Linux server 
  with 128MB ram (an upgrade is now in 
  progress) the only problem we have is with 
  warpConnection now we consider to leave warp solution for 
  mod proxy to have apache at 
  front i think that multiple cocoon instances will 
  cause more load to our box than one 
  with multiple sub-sitemaps 
  --stavros On Tue, 17 Jun 2003, Boris Althaus 
  wrote:  Hallo Cocoonlist, 
what would be the right approach to have 
  different undependent cocoonsites? 
1. To copy all cocoon-classes in every webapp 
  or  2. to copy the cocoon-classes into 
  catalina_home/common/lib or   
  Does have somebody experiences in this term. 
Thanks in advance  Boris 
  Althaus  
  - 
  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: multiple cocoons in tomcat

2003-06-18 Thread Boris Althaus



Yes, this sounds reasonable!
May be I try a combination of multiple sub-sitemaps and different 
tomcat-instances, in order to keep memoryusage small and to have a complete 
separation between some applications

Thanks
Boris


  - Original Message - 
  From: 
  Alexander Schatten 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, June 18, 2003 12:04 
  AM
  Subject: Re: multiple cocoons in 
  tomcat
  Boris Althaus wrote: Hello Stavros, 
   I thought about this solution too, it seemed not separated enough to 
   me. Or is this no problem? 128 RAM is quite small. Do you 
  have problems with MemoryOverflow or  Sitemap is null 
  exceptions?I believe, that 128 MB is not very much; I had it on e 
  headless Linux server, but it was close. I suggest more.however 
  there is another solution to really keep things separate, which can be 
  useful in some cases. e.g. to separate experimental with production 
  server: to start two or more tomcats on different ports.this works 
  fine, and has the advantage contrary to your solution, that you can easily 
  start and stop those tomcats separatly.you just have to take care to 
  modify all relevant port settings in the tomcat configuration. otherwise 
  you can run into problems with shutting down or starting the separated 
  instances.Alex-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]


RE: Cocoon for CD-Rom based applications?

2003-06-18 Thread Ramsey, Alan
Title: RE: Cocoon for CD-Rom based applications?





Bertand wrote:
 Actually you don't need to install anything (in the sense of messing
 with Registry settings under Windows for example) to run Cocoon, simply
 copying the directories that contain the JDK, Cocoon and the servlet
 engine to a hard disk will do, provided you setup the environment
 correctly and provided there is a writable temporary directory for work
 files.
  
 You could certainly run it directly from CD, started from a 
 platform-specific wrapper that would
 -find a writable temporary directory
 -setup the environment
 -maybe check for available TCP/IP ports and manipulate configs 
 accordingly
 -start Cocoon using the JDK that is found on the CD (assuming licensing
 is ok) and a lightweight servlet engine (Jetty for example) also found
 on the CD
 -launch a browser on the appropriate URL


Well.. *I* would call that installing - but I understand your point. Its not very invasive on the operating system and all the executable program files still reside on the

disk. Passed that, its just an issue of symantics. If we did this we already would probably have violated the you can't put anything on the computer requirement that Mathias referred to for his CBT products and we would also need to provide an uninstall routine to at least remove any config files.

 I'm pretty sure this works without having to install anything, or by 
 just copying files to the user's hard disk if one wants to get rid of 
 the CD
I agree, in pricipal this looks pretty good. This is definately worth looking into.



 There might be licensing problems with this approach though, you'd have
 to check about JDK and servlet engine redistribution rights.


Licensing issues are always a concern to us - the amounts my company pays yearly to Sun, Oracle, Netscape/IPlanet/whatever, IBM, M$, and their ilk is astronomical. However I learned a long time ago to first solve the technical problems. So far, to use this approach I will need to 

get clear licensing for Cocoon, the JVM, the Servlet Engine, and whatever database platform involved. My company already has licensing relationships with Sun and IBM for various products so I think I can assume our business people can come up with a reasonable licensing contract with them. We also already have CD databases that we have licensed that I think we can get to work here - although I want to check out HypersonicSQL mentioned by Jörn to see if it is a better solution. That leaves the Tomcat and Cocoon. At this point the people on this list know more than I do about its distribution - but I would tend to hope the licensing wouldn't be too restrictive considering the philosophy of the Apache project. 

-alan


-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 18, 2003 2:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon for CD-Rom based applications?



Le Mardi, 17 juin 2003, à 20:07 Europe/Zurich, Ramsey, Alan a écrit :


 ...We don't mind installing some software on the clients computers, 
 but we obviously want to minimize its complexity as much as possible.  
 Installing a JVM is probably reasonable, and
 since Cocoon seems pretty tightly packaged installing it doesn't 
 seem too extensive either...


Actually you don't need to install anything (in the sense of messing 
with Registry settings under Windows for example) to run Cocoon, simply 
copying the directories that contain the JDK, Cocoon and the servlet 
engine to a hard disk will do, provided you setup the environment 
correctly and provided there is a writable temporary directory for work 
files.


There might be licensing problems with this approach though, you'd have 
to check about JDK and servlet engine redistribution rights.


 ...So the question is: how do I best package Cocoon for the CD 
 deployed applications?...


You could certainly run it directly from CD, started from a 
platform-specific wrapper that would
-find a writable temporary directory
-setup the environment
-maybe check for available TCP/IP ports and manipulate configs 
accordingly
-start Cocoon using the JDK that is found on the CD (assuming licensing 
is ok) and a lightweight servlet engine (Jetty for example) also found 
on the CD
-launch a browser on the appropriate URL


I'm pretty sure this works without having to install anything, or by 
just copying files to the user's hard disk if one wants to get rid of 
the CD


--
 Bertrand Delacretaz
 independent consultant, Lausanne, Switzerland
 http://cvs.apache.org/~bdelacretaz/



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





RE: Cocoon for CD-Rom based applications?

2003-06-18 Thread Ramsey, Alan
Title: RE: Cocoon for CD-Rom based applications?





Hi Stavros,
Thanks for your response,


 I used JDK, Jetty and Cocoon some time ago on CD. Works perfectly. You can also use
 HypersonicSQL as SQL-DB, it has a read-only mode.



I haven't looked at HypersonicSQL - yet - but I did spend a little time browsing the Jetty site yesterday. It definately looks very promising. I also found some references to using EmbeddedTomcat so that tomcat could be embedded within another application - which could make sense as well. 

 The problem is the performance. As Java uses a lot of small files the startup takes a 
 while and the cd-rom works permanently.
 
 I think the best way is to say the users: To boost performance just copy the files to 
 HD and start it from there


I agree in principal, that is why I mentioned that moving the program files to the hard-drive generally becomes a more important requirement than the you are not allowed to install software on the client requirement. The issue of licensing is still a concern that we will need to investigate.

-alan





Re: FOP problems with Unix

2003-06-18 Thread John R. Callahan
I've had this problem many times: you need an X windows
display (the DISPLAY environment variable) set to a viable
display (like localhost:0.0) first OR use the headless Java
stuff in JDK 1.4 (see the Cocoon install notes or Wiki).

-- jack

John R. Callahan, Ph.D.
CTO
[EMAIL PROTECTED]
Sphere Software Corporation

- Original Message -
From: Carmona Perez, David [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:40 AM
Subject: FOP problems with Unix


 Hi all,

 I have a strange problem.  Under Windows, everything works ok, the FOP serializer 
 creates a PDF file.

 But under Unix, some files are converted ok and some aren't.

 The FOP xml file created by the pipeline is the same. I've tried to convert it to 
 pdf by invoking directly FOP through a command
line and it works.

 So it must be something related to the interface between FOP and Cocoon.  In 
 addition, I don't get any error message in the logs.

 I'm using Cocoon 2.0.4

 Any help would be greatly appreciated.


 
 David


 -
 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]Exception in ServerPagesGenerator.generate()

2003-06-18 Thread AlessiaTaach



Description:org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the 
datasource java.sql.SQLException: No suitable driver


RE: Cocoon for CD-Rom based applications?

2003-06-18 Thread Ramsey, Alan
Title: RE: Cocoon for CD-Rom based applications?





Unfortunately for my purposes, I really don't think using Linux, even running 
from a CD, would fly with the Banks. Also, they probably would not like 
software that requires a reboot, as many of these programs are more utilities and
need to share desk space with the other applications.


Personally I like Linux - but our client base does not. 
-alan 


-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 18, 2003 4:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon for CD-Rom based applications?



Of course, there are the legal niceties - from the
Knoppix site:


IF YOU PLAN TO COMMERCIALLY USE OR DISTRIBUTE (AND SELL)
THE SOFTWARE, YOU HAVE TO ACQUIRE THE NECESSARY LICENSES 
AND PERMISSIONS FROM ALL SOFTWARE COPYRIGHT HOLDERS OF 
NON-FREE SOFTWARE COMPONENTS, OR REMOVE THESE 
COMPONENTS BEFORE DISTRIBUTING THE SOFTWARE.


This means that for anyone making commercial use of this
(and I assume the original need around making use of this
inside a bank constitutes a commercial use ;-) means
some of the apps could not be included (prob not an issue).


Also, the Knoppix download is for an 'iso' image of the CD -
as you say, someone will have to modify the distribution, 
so that tomcat, cocoon and your app is included and autostarted.


The other downside is, I guess, that the users then no longer
have access to their regular apps (prob. on Wind*ze) in many
cases...


All in all, the ideal would be a CD that does not require rebooting
into a foreign O/S.


Just my 2c on this
Derek


 [EMAIL PROTECTED] 18/06/2003 10:53:11 
o.k. this might be a wild idea, but I have some additional suggestion:


would it be acceptable for the clients to reboot the system before using 
the product?



In this case (and Linux know-how required) you could try the following:


(1) get knoppix linux


(2) modify the distribution, so that tomcat, cocoon and your app is 
included and autostarted!


(3) boot from this CD/DVD and thats it: no installation required, no 
harddisk space.


advantages:
-- you could access the complete linux environment including things like 
mySQL databases
-- no manipulation on the user system required
-- you have the setup completly under control


disadvantages:
-- good Linux know-how required
-- small risk with hardware detection problems of Knoppix
-- system has to be rebooted



Alex



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



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





RE: XML Parsing + SAX

2003-06-18 Thread Carmona Perez, David









Why dont you use a java.io.StringBufferInputStream?







David



-Mensaje
original-
De: Brian Delahunty
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 18 de junio
de 2003 17:11
Para: [EMAIL PROTECTED]
Asunto: XML Parsing + SAX



Hey,



I have a String that contains an XML file
[not a URL/URI that points to an XML file but the actual XML itself].



I'm tying to use this string in a custom
generator to produce sa exents. I'm using this code so far:


XMLReader xmlr = XMLReaderFactory.createXMLReader();
xmlr.setContentHandler(this.contentHandler);
xmlr.parse( don't know what goes here);



I can't get parse to work with a String.



Any
ideas?



Brian










RE: FOP problems with Unix

2003-06-18 Thread Carmona Perez, David
Thanks,

Maybe this is the cause, as my Unix system has no X windows.

But I wonder why some files are processed ok and others don't, or why can I do it from 
the command line.



David

-Mensaje original-
De: John R. Callahan [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 18 de junio de 2003 17:40
Para: [EMAIL PROTECTED]
Asunto: Re: FOP problems with Unix

I've had this problem many times: you need an X windows
display (the DISPLAY environment variable) set to a viable
display (like localhost:0.0) first OR use the headless Java
stuff in JDK 1.4 (see the Cocoon install notes or Wiki).

-- jack

John R. Callahan, Ph.D.
CTO
[EMAIL PROTECTED]
Sphere Software Corporation

- Original Message -
From: Carmona Perez, David [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:40 AM
Subject: FOP problems with Unix


 Hi all,

 I have a strange problem.  Under Windows, everything works ok, the FOP serializer 
 creates a PDF file.

 But under Unix, some files are converted ok and some aren't.

 The FOP xml file created by the pipeline is the same. I've tried to convert it to 
 pdf by invoking directly FOP through a command
line and it works.

 So it must be something related to the interface between FOP and Cocoon.  In 
 addition, I don't get any error message in the logs.

 I'm using Cocoon 2.0.4

 Any help would be greatly appreciated.


 
 David


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



Emacs, xsp, sitemap -- validation/modes

2003-06-18 Thread Anoop Aryal
hi,
anybody who's got a decent setup with emacs as far as editing modes and
validation for XSPs, and sitemap etc? any ideas?

i've even tried validating against the sitemap schema from
http://outerthought.net/sitemap/ but i'm getting errors. considered
converting to a dtd and using nsgmls from within emacs to validate but
didn't get very far (lossy conversion and everything..)

i'm trying to reduce the
edit/test-under-tomcat-only-to-discover-i-forgot-a-tag cycle to
edit/validate/test-under-tomcat.

i would prefer a solution for using from emacs+command-line. if not,
then just from the command line. that way i can do 'em from a script in
batch etc.

any ideas?

anoop.
[EMAIL PROTECTED]


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



RE: FOP problems with Unix

2003-06-18 Thread Anoop Aryal
On Wed, 2003-06-18 at 11:00, Carmona Perez, David wrote:
 Thanks,
 
 Maybe this is the cause, as my Unix system has no X windows.
 
 But I wonder why some files are processed ok and others don't, or why can I do it 
 from the command line.
 

i'm not sure if you're running into the same problem i was. in my case,
i solved it by removing the batik-xx.jar  fop-xx.jar that came with
cocoon and downloaded the latest binaries from FOP ( i actually did if
from source but it would have the same effect). then copied these files
into the cocoon/WEB-INF/lib directory:

batik-awt-util.jarbatik-dom.jar batik-parser.jar 
batik-svggen.jar  batik-util.jar
batik-bridge.jar  batik-ext.jar batik-script.jar 
batik-swing.jar   batik-xml.jar
batik-css.jar batik-gvt.jar batik-svg-dom.jar
batik-transcoder.jar

and of course the fop.jar from the FOP distribution.

the reason for this is (i think) is api mismatch between fop and batik.
especially in the 'inline-foreign-object: svg' part.

anoop
[EMAIL PROTECTED]



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



retaining data from a partial pipeline for subsequent requests

2003-06-18 Thread Anoop Aryal
hi,
i'm evaluating cocoon to see if it suits our needs. i've used fop
extensively before. and i know just enough of cocoon to be dangerous.
this is kinda long but i put a lot of time in drawing in ascii to make
it clearer; hopefully ;)

the problem:
-

in keeping with the SOC, i have the following setup:

Generators:A  B  C  --|
   |  |  ||- the data layer
   ---|
  |   |
Aggregation:  D --|
  |
Transformation:   E  the 
  |  business logic
   --   --|
   |||  | |- the prettfying 
Formatting:   rtf  xsl  pdfhtml --|  layer


in the html, i refer to images (charts, which i'm generating using Fins)
that are generated according to the data generated at E. But as they are
subsequent requests from the browser don't have access to the data since
the pipeline that generated the data was done and over with after
generating the html. So, i'm left with two options:

i) regenerate the data up to E:

Generators:A  B  C  --|
   |  |  ||- the data layer
   ---|
  |   |
Aggregation:  D --|
  |
Transformation:   E  the 
  |  business logic
jpg/png  the prettfying
 layer

or,
ii) save the data from the pipeline into the session (from A, B, C) when
generating the html and use that as such:
Generator: F (reads data from the session previously set by A,B,C) and
generates xml to feed into the fins transformer. 

Current solution:
-
as option (i) would require me to regenerate the dataset, i opted to use
option (ii). but then, since i can only shove the data into sessions
from an xsp (?) i only have the raw form of data from (A, B, C) in the
session. F would then have to do what D and E does. complete breakdown
of SOC.

Wishful/hopeful thinking:
-
something like this would be optimal:

Generators:A  B  C
   |  |  |
   ---
  |   
Aggregation:  D   
  |
Transformation:   E - tee* --  
  |  |
   --|
   |||  ||
Formatting:   rtf  xsl  pdfhtml**|
 |
 | 
 formatted as a png/jpg/svg and
 stored in cocoon cache using a
 unique key** for the subsiquent 
 request
 
*) tee as in make a copy and pass one copy to the html formatting step.
and another to the image formatting step.
**) the key would be predetermined so that the src element in the html
would know which image url to put in. and another pipeline would deal
with requests for images keyed off this way.

(That does sound out of wack. told you, i know enough to be dangerous)



So, the question is, how do you generate images that are referenced by
some html when the images are another view of the data that the html is
displaying without regenerating the data for the image generation?
ideas?

thanks in advance,
anoop
[EMAIL PROTECTED]


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



Re: FOP problems with Unix

2003-06-18 Thread J.Pietschmann
Carmona Perez, David wrote:
But I wonder why some files are processed ok and others don't, or why can I
do it from the command line.
Those without SVG (inline or external images) should be ok.

J.Pietschmann

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


RE: XML Parsing + SAX

2003-06-18 Thread e nio
  I believe a File object can be converted to a URL, look at the
toURL() method.

--- Carmona Perez, David [EMAIL PROTECTED] wrote:
 Why don't you use a java.io.StringBufferInputStream?
  
 
 David
  
 -Mensaje original-
 De: Brian Delahunty [mailto:[EMAIL PROTECTED]
 Enviado el: miércoles, 18 de junio de 2003 17:11
 Para: [EMAIL PROTECTED]
 Asunto: XML Parsing + SAX
  
 Hey,
  
 I have a String that contains an XML file [not a URL/URI that
 points to an XML file but the actual XML itself].
  
 I'm tying to use this string in a custom generator to produce
 sa exents. I'm using this code so far:
 
 XMLReader xmlr = XMLReaderFactory.createXMLReader();
 xmlr.setContentHandler(this.contentHandler);
 xmlr.parse( don't know what goes here );
  
 I can't get parse to work with a String.
  
 Any ideas?
  
 Brian
  
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: DHTML Help

2003-06-18 Thread Geoff Howard
I'm not sure there's a way around that one.  I hide select boxes when a
div needs to go over it using style.display=none or maybe
style.visibility=hidden.
Geoff

At 10:38 AM 6/18/2003, you wrote:
I know this is not the place to ask DHTML Questions but maybe somebody
knows where I can get some information.  I am having an issue with a div
panel being blocked by a combo box.  Any help would be greatly
appreciated.  I guess this does have something to do with cocoon since
the page is being generated by cocoon.  Thanks.
Tim Bachta



-
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: retaining data from a partial pipeline for subsequent requests

2003-06-18 Thread Nathaniel Alfred

 -Original Message-
 From: Anoop Aryal [mailto:[EMAIL PROTECTED]

... 
 Wishful/hopeful thinking:
 -
 something like this would be optimal:
 
 Generators:A  B  C
|  |  |
---
   |   
 Aggregation:  D   
   |
 Transformation:   E - tee* --  
   |  |
--|
|||  ||
 Formatting:   rtf  xsl  pdfhtml**|
  |
  | 
  formatted as a png/jpg/svg and
  stored in cocoon cache using a
  unique key** for the subsiquent 
  request
  
 *) tee as in make a copy and pass one copy to the html 
 formatting step.
 and another to the image formatting step.
 **) the key would be predetermined so that the src element in the html
 would know which image url to put in. and another pipeline would deal
 with requests for images keyed off this way.
 

I'd say Read/WriteDOMSessionTransformer is your missing tee-piece.

http://cocoon.apache.org/2.1/userdocs/transformers/writedomsession-trans
former.html

In the HTML pipeline, you copy the data into the session context with
WriteDOM and pick it up again in the GIF pipeline with ReadDOM.

HTH, Alfred.

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: retaining data from a partial pipeline for subsequent requests

2003-06-18 Thread Geoff Howard
I've only read about 3 sentences but look into the caching point pipeline
in 2.1
Geoff

At 12:52 PM 6/18/2003, you wrote:
hi,
i'm evaluating cocoon to see if it suits our needs. i've used fop
extensively before. and i know just enough of cocoon to be dangerous.
this is kinda long but i put a lot of time in drawing in ascii to make
it clearer; hopefully ;)
the problem:
-
in keeping with the SOC, i have the following setup:

Generators:A  B  C  --|
   |  |  ||- the data layer
   ---|
  |   |
Aggregation:  D --|
  |
Transformation:   E  the
  |  business logic
   --   --|
   |||  | |- the prettfying
Formatting:   rtf  xsl  pdfhtml --|  layer
in the html, i refer to images (charts, which i'm generating using Fins)
that are generated according to the data generated at E. But as they are
subsequent requests from the browser don't have access to the data since
the pipeline that generated the data was done and over with after
generating the html. So, i'm left with two options:
i) regenerate the data up to E:

Generators:A  B  C  --|
   |  |  ||- the data layer
   ---|
  |   |
Aggregation:  D --|
  |
Transformation:   E  the
  |  business logic
jpg/png  the prettfying
 layer
or,
ii) save the data from the pipeline into the session (from A, B, C) when
generating the html and use that as such:
Generator: F (reads data from the session previously set by A,B,C) and
generates xml to feed into the fins transformer.
Current solution:
-
as option (i) would require me to regenerate the dataset, i opted to use
option (ii). but then, since i can only shove the data into sessions
from an xsp (?) i only have the raw form of data from (A, B, C) in the
session. F would then have to do what D and E does. complete breakdown
of SOC.
Wishful/hopeful thinking:
-
something like this would be optimal:
Generators:A  B  C
   |  |  |
   ---
  |
Aggregation:  D
  |
Transformation:   E - tee* --
  |  |
   --|
   |||  ||
Formatting:   rtf  xsl  pdfhtml**|
 |
 |
 formatted as a png/jpg/svg and
 stored in cocoon cache using a
 unique key** for the subsiquent
 request
*) tee as in make a copy and pass one copy to the html formatting step.
and another to the image formatting step.
**) the key would be predetermined so that the src element in the html
would know which image url to put in. and another pipeline would deal
with requests for images keyed off this way.
(That does sound out of wack. told you, i know enough to be dangerous)



So, the question is, how do you generate images that are referenced by
some html when the images are another view of the data that the html is
displaying without regenerating the data for the image generation?
ideas?
thanks in advance,
anoop
[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]


Fw: Cocoon and other servlets?

2003-06-18 Thread Andreas Kuckartz
Wrong list. Send such mails to cocoon-users and/or cocoon-dev.

Cocoon 1.7.4 is obsolete.

Andreas

- Original Message - 
From: Samuel Kock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:04 PM
Subject: Cocoon and other servlets?


 Hi there
 
 Is there a way of piping data from a servlet straight to Cocoon? What I
 have is a servlet that outputs XML, which I want as input to the Cocoon
 system. Is this possible?
 
 I am using Cocoon 1.7.4 and Apache JServ.
 
 If anyone needs more info I'll be glad to give it!
 
 Regards
 
 Samuel
 -- 
 Samuel Kock
 Pretoria, South Africa
 Always try to be modest and be proud of it!
 
 
 
 
 -
 In case of troubles, 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]



Link Livesites: Provincia di Lucca- Pubblica Istruzione - Cocoon2.0.3

2003-06-18 Thread Gabriele Matteelli
The URL is:
http://istruzione.provincia.lucca.it
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Link Livesites: Provincia di Lucca- Pubblica Istruzione - Cocoon2.0.3

2003-06-18 Thread Joerg Heinicke
Is already added in CVS:
http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/documentation/xdocs/link/livesites.xml?rev=1.7
Will be online after next website update.

Joerg

Gabriele Matteelli wrote:
The URL is:
http://istruzione.provincia.lucca.it


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


OnError-style pipelines

2003-06-18 Thread jcplerm



Assuming a pipeline as in the example 
below:
 map:match 
pattern="testDelete.html"
map:generate 
type="request"/
 map:transform 
src="" type="xslt"/
  map:act 
type="action1".../map:act
 
map:transform src="" type="xslt"/
  map:act 
type="action2".../map:act

   
 ...
 
map:transform src="" type="xslt"/
  map:act 
type="actionN".../map:act
map:serialize 
type="html"/ /map:match

Is there a straightforward way to implement some sort of "On Error"
clause in the pipeline above, so that if there is any 
specificcondition 
set by any of the actions, the subsequent actions/transformers 
are simply bypassed and a final action/transformer is executed?

I understand Cocoon has a "handles-errors" tag that handles 
certain types of pipeline errors (a requested pipeline is not found,
a stylesheet is missing, a resource is not found, etc...). 
These have to do with mistakes in the configuration of the pipeline.

But I am considering application-specific conditions, for which the
"handles-errors" does not seem to be appropriate.

I guess I could add lots of selectors to the example above, but
one could easily imagine how cluttered it would become.

Any ideas?

Thanks,

jlerm