Re: How to call a servlet in the generator part of the cocoon pipeline

2002-12-17 Thread SAXESS - Hussayn Dabbous
hy,

Concerning call of a servlet, that depends, where it is
running. If it's in another webapp, simply call the
file generator, e.g.:

map:match pattern=*testme
  map:generate type=file
 src=http://www.yoursite.com/pathTotheServlet/
  map:serialize type=xml/
/map:match

If it is in the same webapp, you have to integrate
your servlet first into the cocoon app - look into
http://outerthought.net/wiki/Wiki.jsp. I think, there
are some howtos about that...

session preserving:

As i learned from the developers, sessionm preserving is
currently not available in any means.

But because i need it too -
I am talking about this with some of the cocoon
developers. We are going to solve this problem
hopefully during this week (i can't promise though,
because it depends on time schedule).

The results will be donated back to cocoon. So maybe you
can profit from these results. I will send an email to
this list, when we are ready.

regards, hussayn


loganathan wrote:

Hi
   i have problem calling serlet in the generator part of a 
cocoon pipeline.Give me an example program how it is working.
How do i maintain session between requests.
 
with regards
R.Loganathan.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Configuring JTidy

2002-12-17 Thread Anna Afonchenko
Maybe I do something wrong, but I don't get the result that I want.
I declared the HTMLGenerator with jtidy-config property and created the
jtidy.properties
file in the same directory with the sitemap.xmap file.
In the jtidy.properties file I wrote the following lines:

output-xml=no
outpu-xhtml=yes
quote-marks=yes
uppercase-tags=no
doctype=transitional

The input html file is:

html
 head
  titleUntitled/title
 /head
 body
  psome  text 's
 /body
/html

If I run Tidy externally (using tidyui program) with these properties set, I
get the following tidied file:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

html xmlns=http://www.w3.org/1999/xhtml;
head
titleUntitled/title
/head

body
psome quot; text #39;s/p
/body
/html

and that's how I want HTMLGenerator in cocoon to return it too, but if I run
the same input file through cocoon pipeline with HTMLGenerator and serialize
the output as xml, that's what I get:

  ?xml version=1.0 encoding=utf-8 ?
- html
- head
  meta content=HTML Tidy, see www.w3.org name=generator /
  titleUntitled/title
  /head
- body
  psome  text 's/p
  /body
  /html

Maybe someone can explain me what am I doing wrong and how can I make
HTMLGenerator to tidy the input according given properties.

Please help me.
Thank you very much

Anna

- Original Message -
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 4:30 PM
Subject: RE: Configuring JTidy


should be in a file called jtidy.properties in the same directory as the
sitemap?  the properties file style would contain each name=value pair on a
separate line.

Geoff Howard
-Original Message-
From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:15 AM
To: cocoon-users
Subject: Configuring JTidy


Hi all.
I have a very  simple and stupid question.
In the 2.0.4 version of cocoon the HTMLGenerator now can accept a JTidy
configuration file.
The example that is given in the user documentation is:

  map:generator type=html
src=org.apache.cocoon.generation.HTMLGenerator
jtidy-configjtidy.properties/jtidy-config
  /map:generator

I am probably very stupid, but from this documentation I don't understand
where am I supposed to write the additional JTidy properties.
Let's say I want to set the following properties:
output-xml=no, output-xhtml=yes,quote-marks=yes
Can someone please give me an example of how am I defining HTMLGenerator to
use this properties when tidying the input file?

Thank you very much for help.

Anna


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




strange javax lines in the output

2002-12-17 Thread Anna Afonchenko



Hi all.
I am getting html file, transform it 
and serialize the output as xml.
In the output I get a few lines like 
this:

?javax.xml.transform.disable-output-escaping ? 

I get this line only if I use 
xsl:text tag with disable-output-escaping attributein my 
stylesheet.
Can somebody explain to me why is 
this happening and is there a way to get rid of those lines?

Thank you very much for 
help.
Sorry for sending so many probably 
stupid questions to the list, I am just starting using Cocoon, and this list is 
my only help.

Anna




request-error description

2002-12-17 Thread Andrea Pöschel




request-error description

description of the error:

environment:

Orion Application Server 1.5.2Java1.4Cocoon 
2.0.3Windows 2000

The resource requested was www.xxx.com/index.html without any 
request-parameters.

We are using the UserManager which is integrated into Orion.The file 
index.html can only be accessed by successfully authorized users.

snippet from web.xml:login-config 
auth-methodFORM/auth-method 
form-login-configform-login-page/WEB-INF/Cocoon/german/login_start/login.xsp/form-login-pageform-error-page/WEB-INF/Cocoon/german/login_start/login_noMessage.xsp/form-error-page/form-login-configrealm-nameKAIBox/realm-name 
/login-config

The login is successful for a valid username/password-combination. If the 
login fails, there is the following error:

type fatalmessage nulldescription 
java.lang.NullPointerExceptionsender 
org.apache.cocoon.servlet.CocoonServletsource Cocoon 
servletstack-tracejava.lang.NullPointerExceptionat 
org.apache.cocoon.environment.http.HttpEnvironment.extractAction(HttpEnvironment.java:139)at 
org.apache.cocoon.environment.http.HttpEnvironment.(HttpEnvironment.java:110)at 
org.apache.cocoon.servlet.CocoonServlet.getEnvironment(CocoonServlet.java:1149)at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:986)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:336)at 
com.evermind._cxb._abe(Unknown Source)at 
com.evermind._cxb._uec(Unknown Source)at 
com.evermind._cxb.forward(Unknown Source)at 
com.evermind._ctb.reject(Unknown Source)at 
com.evermind._ah._fod(Unknown Source)at com.evermind._ah._cwc(Unknown 
Source)at com.evermind._ah._dlc(Unknown Source)at 
com.evermind._ab._cwc(Unknown Source)at 
com.evermind._ah.getRequestDispatcher(Unknown Source)at 
com.aidossoftware.http.search.Controller.dispatch(Controller.java:154)at 
com.aidossoftware.http.search.Controller.processRequest(Controller.java:76)at 
com.aidossoftware.http.search.Controller.doPost(Controller.java:101)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:211)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:309)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:336)at 
com.evermind._cxb._abe(Unknown Source)at 
com.evermind._cxb._uec(Unknown Source)at com.evermind._io._twc(Unknown 
Source)at com.evermind._io._gc(Unknown Source)at 
com.evermind._if.run(Unknown 
Source)request-uri/release/WEB-INF/Cocoon/german/login_start/login_noMessage.xsppath-infoWEB-INF/Cocoon/german/login_start/login_noMessage.xsp

If you request index.html with a 
dummy-parameter(index.html?dummy=dummy) and give a wrong 
username/password-combination, there is no error and you get the correct site 
for a wrong login.The same error occurs anywhere within a web-application, 
if the session had a timeout and resources are requested without 
parameters.

Is there any workaround for this problem?

Andrea Pöschel

Andrea Pöschel


Re: Configuring JTidy

2002-12-17 Thread SAXESS - Hussayn Dabbous
hi;

i didn't use the jtidy with cocoon yet, hence
i'm just guessing:

1.) if you want HTML as output, your serialiser should be
the html serialiser. You are using the xml serialiser
so you get xml back instead of html.

2.) In your jtidy.properties you may have a typo:

 output-xml=no
 outpu-xhtml=yes  == this corrected in your properties ?
 quote-marks=yes
 uppercase-tags=no
 doctype=transitional

regards, hussayn

Anna Afonchenko wrote:

Maybe I do something wrong, but I don't get the result that I want.
I declared the HTMLGenerator with jtidy-config property and created the
jtidy.properties
file in the same directory with the sitemap.xmap file.
In the jtidy.properties file I wrote the following lines:

output-xml=no
outpu-xhtml=yes
quote-marks=yes
uppercase-tags=no
doctype=transitional

The input html file is:

html
 head
  titleUntitled/title
 /head
 body
  psome  text 's
 /body
/html

If I run Tidy externally (using tidyui program) with these properties set, I
get the following tidied file:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

html xmlns=http://www.w3.org/1999/xhtml;
head
titleUntitled/title
/head

body
psome quot; text #39;s/p
/body
/html

and that's how I want HTMLGenerator in cocoon to return it too, but if I run
the same input file through cocoon pipeline with HTMLGenerator and serialize
the output as xml, that's what I get:

  ?xml version=1.0 encoding=utf-8 ?
- html
- head
  meta content=HTML Tidy, see www.w3.org name=generator /
  titleUntitled/title
  /head
- body
  psome  text 's/p
  /body
  /html

Maybe someone can explain me what am I doing wrong and how can I make
HTMLGenerator to tidy the input according given properties.

Please help me.
Thank you very much

Anna

- Original Message -
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 4:30 PM
Subject: RE: Configuring JTidy


should be in a file called jtidy.properties in the same directory as the
sitemap?  the properties file style would contain each name=value pair on a
separate line.

Geoff Howard
-Original Message-
From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:15 AM
To: cocoon-users
Subject: Configuring JTidy


Hi all.
I have a very  simple and stupid question.
In the 2.0.4 version of cocoon the HTMLGenerator now can accept a JTidy
configuration file.
The example that is given in the user documentation is:

  map:generator type=html
src=org.apache.cocoon.generation.HTMLGenerator
jtidy-configjtidy.properties/jtidy-config
  /map:generator

I am probably very stupid, but from this documentation I don't understand
where am I supposed to write the additional JTidy properties.
Let's say I want to set the following properties:
output-xml=no, output-xhtml=yes,quote-marks=yes
Can someone please give me an example of how am I defining HTMLGenerator to
use this properties when tidying the input file?

Thank you very much for help.

Anna


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Configuring JTidy

2002-12-17 Thread Anna Afonchenko
Hi Hussayn.
Thank you for pointing my out my typo, I corrected it.
But I still don't get the output that I want.
I changed the serializer to the html, but looking at the source of the
output page, I still get:

html xmlns=http://www.w3.org/1999/xhtml;
   head
  meta http-equiv=Content-Type content=text/html; charset=utf-8

  meta content=HTML Tidy, see www.w3.org name=generator
  titleUntitled/title
   /head
   body
  psome  text 's/p
   /body
/html

e.g. I don't have doctype declaration, and quotes are not escaped as
entities.

Maybe somebody already used jtidy properties inCocoon?
Please explain me my mistake!!!

Thank you very much for help

Anna
- Original Message -
From: SAXESS - Hussayn Dabbous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 11:36 AM
Subject: Re: Configuring JTidy


hi;

i didn't use the jtidy with cocoon yet, hence
i'm just guessing:

1.) if you want HTML as output, your serialiser should be
 the html serialiser. You are using the xml serialiser
 so you get xml back instead of html.

2.) In your jtidy.properties you may have a typo:

  output-xml=no
  outpu-xhtml=yes  == this corrected in your properties ?
  quote-marks=yes
  uppercase-tags=no
  doctype=transitional

regards, hussayn

Anna Afonchenko wrote:
 Maybe I do something wrong, but I don't get the result that I want.
 I declared the HTMLGenerator with jtidy-config property and created the
 jtidy.properties
 file in the same directory with the sitemap.xmap file.
 In the jtidy.properties file I wrote the following lines:

 output-xml=no
 outpu-xhtml=yes
 quote-marks=yes
 uppercase-tags=no
 doctype=transitional

 The input html file is:

 html
  head
   titleUntitled/title
  /head
  body
   psome  text 's
  /body
 /html

 If I run Tidy externally (using tidyui program) with these properties set,
I
 get the following tidied file:
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

 html xmlns=http://www.w3.org/1999/xhtml;
 head
 titleUntitled/title
 /head

 body
 psome quot; text #39;s/p
 /body
 /html

 and that's how I want HTMLGenerator in cocoon to return it too, but if I
run
 the same input file through cocoon pipeline with HTMLGenerator and
serialize
 the output as xml, that's what I get:

   ?xml version=1.0 encoding=utf-8 ?
 - html
 - head
   meta content=HTML Tidy, see www.w3.org name=generator /
   titleUntitled/title
   /head
 - body
   psome  text 's/p
   /body
   /html

 Maybe someone can explain me what am I doing wrong and how can I make
 HTMLGenerator to tidy the input according given properties.

 Please help me.
 Thank you very much

 Anna

 - Original Message -
 From: Geoff Howard [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 16, 2002 4:30 PM
 Subject: RE: Configuring JTidy


 should be in a file called jtidy.properties in the same directory as the
 sitemap?  the properties file style would contain each name=value pair on
a
 separate line.

 Geoff Howard
 -Original Message-
 From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 4:15 AM
 To: cocoon-users
 Subject: Configuring JTidy


 Hi all.
 I have a very  simple and stupid question.
 In the 2.0.4 version of cocoon the HTMLGenerator now can accept a JTidy
 configuration file.
 The example that is given in the user documentation is:

   map:generator type=html
 src=org.apache.cocoon.generation.HTMLGenerator
 jtidy-configjtidy.properties/jtidy-config
   /map:generator

 I am probably very stupid, but from this documentation I don't understand
 where am I supposed to write the additional JTidy properties.
 Let's say I want to set the following properties:
 output-xml=no, output-xhtml=yes,quote-marks=yes
 Can someone please give me an example of how am I defining HTMLGenerator
to
 use this properties when tidying the input file?

 Thank you very much for help.

 Anna


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check 

Re: Configuring JTidy

2002-12-17 Thread Bertrand Delacretaz
Anna Afonchenko wrote:
. . .

Maybe someone can explain me what am I doing wrong and how can I make
HTMLGenerator to tidy the input according given properties.


I haven't used this feature yet, but from the source code of the 
HTMLGenerator you can see that it should output a message saying 
Loading configuration from at the debug level if the jtidy-config 
parameter is recognized.

Are you using the latest CVS code of Cocoon?

Maybe you could try putting the name of a non-existent file in the 
jtidy-config parameter, if you're using the correct version the 
HTMLGenerator should throw an Exception in this case.

-Bertrand


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



cocoon container: tomcat or not?

2002-12-17 Thread Cocoon User

after  one year from the first stable cocoon 2 version
is tomcat the best container for cocoon?


we use the first cocoon2 rc1 version on tomcat the last 18 months in
production.

we have test other cocoon2 versions in development environment but never
something else than tomcat!

your experiences from other containers?


stavros kounis
http://www.osmosis.gr


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Configuring JTidy

2002-12-17 Thread Anna Afonchenko
I downloaded a new version 2.0.4 of Cocoon this week.
If I change the name of the file in jtidy-config to unexisting file, I get
the following error message:

type fatal

message UnnamedSelector: ComponentSelector could not find the component for
hint [html]

description org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint
[html]

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/ub/test.html

Where can I see this message Loading configuration from by the
HTMLGenerator?
It doesn't show up in the command line where the tomcat runs.

I am confused.
What's my problem?
Or maybe it's JTidy problem?
Help me, please, I just don't understand what's happening!

Thank you
Anna


- Original Message -
From: Bertrand Delacretaz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 12:20 PM
Subject: Re: Configuring JTidy



I haven't used this feature yet, but from the source code of the
HTMLGenerator you can see that it should output a message saying
Loading configuration from at the debug level if the jtidy-config
parameter is recognized.

Are you using the latest CVS code of Cocoon?

Maybe you could try putting the name of a non-existent file in the
jtidy-config parameter, if you're using the correct version the
HTMLGenerator should throw an Exception in this case.

-Bertrand


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Configuring JTidy

2002-12-17 Thread Bertrand Delacretaz
Anna Afonchenko wrote:
. . .

description org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint
[html]

. . .

Seems to indicate that you're indeed running the right version.


Where can I see this message Loading configuration from by the
HTMLGenerator?


It should be logged at the debug level, provided this level is activated 
for logging. I'm not sure if this log goes to the console or to a file 
in command-line mode, though.

Log levels are configured in logkit.conf, there is some info at the wiki 
about this (configuring the logs).

Does JTidy usually complain about invalid parameters? If so you could 
try giving an invalid value in your properties file and see if it fails, 
which would mean that your properties are indeed taken into account.

Hope this helps,
-Bertrand


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



RE: cocoon container: tomcat or not?

2002-12-17 Thread Luca Morandini
Stavros,

I used both Tomcat and WebLogic in production environments: I've found both of them 
quite reliable with Cocoon, bar a nasty problem
when compiling Cocoon components with Tomcat under Solaris.

No statistics to show though.

Best regards,

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


 -Original Message-
 From: Cocoon User [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:36 AM
 To: [EMAIL PROTECTED]
 Subject: cocoon container: tomcat or not?



 after  one year from the first stable cocoon 2 version
 is tomcat the best container for cocoon?


 we use the first cocoon2 rc1 version on tomcat the last 18 months in
 production.

 we have test other cocoon2 versions in development environment but never
 something else than tomcat!

 your experiences from other containers?


 stavros kounis
 http://www.osmosis.gr


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




value-substitution in Cocoon

2002-12-17 Thread Anna Afonchenko



I have the following 
question:
I know that in Cocoon I can use value 
substitution inside a pipeline, e.g. if I have a pipeline
map:pipeline
 map:match 
pattern="*/*.html"
 map:generate 
src=""/
 map:transform 
src=""
 
map:parameter name="param" value="{1}"/
 
/map:transform
 
/map:match
/map:pipeline

and if I write the URI http://localhost:8080/cocoon/param1/some.html

then in the pipeline the stylesheet 
some.xsl will receive a parameter with name param and value param1. So this is 
my question:
Can I somehow parse/evaluate this 
parameter {1} inside the sitemap (not inside the xsl).
E.g., can I somehow, having 
{1}="param1" extract the last character ("1" in this case) and send to the xsl 
only it, or, having parameter {1}=1, send {1}+1, i.e. 2 to the 
stylesheet?

I need this because I want to build 
pipeline that will get some parameter n, and after it is executed I want to call 
the same pipeline with parameter n+1.
Is this possible in 
sitemap?

Thank you very much for 
help.

Anna


Java 1.4 configuration for Cocoon

2002-12-17 Thread Ines Robbers
Hello!

I'm trying to install cocoon with the help of
http://xml.apache.org/cocoon/installing/index.html and got stuck here:

Java 1.4 configuration 
...follow these steps: 
1. Create %JAVA_HOME%\jre\lib\endorsed directory. 
2. Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the
.\lib\core\ to the %JAVA_HOME%\jre\lib\endorsed\ directory.

There are no such files on my system. Perhaps I downloaded the wrong
cocoon?
I am using WindowsXP and saved the file: 
cocoon-2.0.4-vm14-bin.zip, 06-Dec-2002 04:05, 19M  -[ Latest
binary distribution for JDK 1.4] 
from http://xml.apache.org/cocoon/dist/ on my computer.

Perhaps someone could help?

Many thanks!!

Ines



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: value-substitution in Cocoon

2002-12-17 Thread Konstantin Piroumian
Hi!
(Please do not use HTML mails in the mailing list.)

I see two ways to solve this task:
  1. Use an action that will get the original parameter and generate another
one, which you'll pass to the transformer.
  2. Use a the Request input module, e.g.  map:parameter name=param
value={request:substring(requestURI, 0, 1)}/ - this sample will give you
the first letter (see /samples/module/sitemap.xmap and XPath reference to
learn how to get the last character).

It sounds a little strange what you are trying to do though...

Regards,
  Konstantin

- Original Message -
From: Anna Afonchenko
To: cocoon-users
Sent: Tuesday, December 17, 2002 14:55
Subject: value-substitution in Cocoon


I have the following question:
I know that in Cocoon I can use value substitution inside a pipeline, e.g.
if I have a pipeline
map:pipeline
  map:match pattern=*/*.html
map:generate src={2}.html/
map:transform src=some.xsl
  map:parameter name=param value={1}/
/map:transform
  /map:match
/map:pipeline

and if I write the URI http://localhost:8080/cocoon/param1/some.html

then in the pipeline the stylesheet some.xsl will receive a parameter with
name param and value param1. So this is my question:
Can I somehow parse/evaluate this parameter {1} inside the sitemap (not
inside the xsl).
E.g., can I somehow, having {1}=param1 extract the last character (1 in
this case) and send to the xsl only it, or, having parameter {1}=1, send
{1}+1, i.e. 2 to the stylesheet?

I need this because I want to build pipeline that will get some parameter n,
and after it is executed I want to call the same pipeline with parameter
n+1.
Is this possible in sitemap?

Thank you very much for help.

Anna


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




how to connect two pipelines in cocoon?

2002-12-17 Thread Oskar Casquero
Hello,

I have the following pipelines in cocoon:

!-- This pipeline generates an XML document from an structured text
file --
map:match pattern=MAST_TXT2MAST_XMLresponse
map:act type=fileUploadAction
map:parameter name=file-name value=mast/
map:generate type=textparser src={src}
map:parameter name=grammar value=cocoon:/mast-out.grm/
map:parameter name=includeignorabletokens value=true/
/map:generate
map:transform src=stylesheets/chaperon2mastXML.xsl/
map:serialize type=text/
/map:act
/map:match

!-- This pipeline stores an XML document in eXist database using the xmldb
logicsheet--
map:match pattern=eXistAdmin
map:generate type=serverpages src=serverpages/xadmin.xsp/
map:transform src=stylesheets/doc2html.xsl/
map:serialize type=xhtml/
/map:match

I want to store the XML file in the database, so I would like to connect the
first pipeline with the second one, creating a chain, where the first
pipeline's output SAX events feed the second pipeline's generator. How can I
do this?

Thank you,
Oskar


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Java 1.4 configuration for Cocoon

2002-12-17 Thread Luca Morandini
Ines,

you could either download the source distribution and build it (I prefer this method), 
or search those JARs under
your-servlet-container-home/webapps/cocoon/WEB-INF/lib.

The lib directory is filled with JARs the first time Cocoon in invoked (the servlet 
container takes care of expanding the
cocoon.war): try invoking Cocoon, maybe on JDK 1.4 it will not work, but most probably 
it will explode the WAR just the same and you
will be able to proceed with you installation.

Best regards,

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


 -Original Message-
 From: Ines Robbers [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 1:08 PM
 To: [EMAIL PROTECTED]
 Subject: Java 1.4 configuration for Cocoon


 Hello!

 I'm trying to install cocoon with the help of
 http://xml.apache.org/cocoon/installing/index.html and got stuck here:

 Java 1.4 configuration
 ...follow these steps:
 1. Create %JAVA_HOME%\jre\lib\endorsed directory.
 2. Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the
 .\lib\core\ to the %JAVA_HOME%\jre\lib\endorsed\ directory.

 There are no such files on my system. Perhaps I downloaded the wrong
 cocoon?
 I am using WindowsXP and saved the file:
 cocoon-2.0.4-vm14-bin.zip, 06-Dec-2002 04:05, 19M  -[ Latest
 binary distribution for JDK 1.4]
 from http://xml.apache.org/cocoon/dist/ on my computer.

 Perhaps someone could help?

 Many thanks!!

 Ines



 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Java 1.4 configuration for Cocoon

2002-12-17 Thread Joerg Heinicke
Hello Ines,

/lib/core is the directory in the source distribution. In the binary one you 
have it's %CONTAINER_HOME%/webapps/cocoon/WEB-INF/lib/ if you have already 
deployed it into a container. Or if you have still only the zip, unzip it. A 
cocoon.war shell appear, unzip it, and you will find them in extracted 
directory WEB-INF/lib.

Regards,

Joerg

Ines Robbers wrote:
Hello!

I'm trying to install cocoon with the help of
http://xml.apache.org/cocoon/installing/index.html and got stuck here:

Java 1.4 configuration 
...follow these steps: 
1. Create %JAVA_HOME%\jre\lib\endorsed directory. 
2. Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the
.\lib\core\ to the %JAVA_HOME%\jre\lib\endorsed\ directory.

There are no such files on my system. Perhaps I downloaded the wrong
cocoon?
I am using WindowsXP and saved the file: 
cocoon-2.0.4-vm14-bin.zip, 06-Dec-2002 04:05, 19M  -[ Latest
binary distribution for JDK 1.4] 
from http://xml.apache.org/cocoon/dist/ on my computer.

Perhaps someone could help?

Many thanks!!

Ines

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Using the Cocoon pipeline outside web apps

2002-12-17 Thread Upayavira
Olivier,

What you are asking for is currently 'kind of' provided by the command line interface.

However, when I have made enquiries about this to the various Cocoon lists, it has 
been 
suggested that someone could develop a 'Cocoon Bean'. This would be a programmatic 
interface to Cocoon, allowing you to either:

1) Request a single URI, passing an output stream to receive the result
2) Request a batch of URIs, spidering if necessary, and write them to a specified 
directory.

If all goes to plan, I would like to see if I can implement this over the Christmas 
period. 
But I'm new to the Cocoon internals, so I don't know how successful I'll be.

Regards, Upayavira


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: how to connect two pipelines in cocoon?

2002-12-17 Thread Vermeulen, Francis
Hi,

you can use the map:call resource. sitemap element to invoke a
pipeline fragment from another pipeline. I use this too, here is en extract
from my sitemap:

map:pipeline  
map:match pattern=do-*.html
map:act set=process
map:parameter name=descriptor
   value=context://resources/{1}-form.xml/
map:parameter name=validate-set value=input /
map:call resource=controller
map:parameter  name=style value={style}
/
/map:call
map:serialize /
/map:act
map:generate src=docs/xml/error-login.xml/
map:serialize /
/map:match
map:handle-errors
!-- 
This pipeline specifies a different error handler.
--
map:transform src=stylesheets/error2html.xsl/
map:serialize status-code=500/
/map:handle-errors
/map:pipeline

map:resources
map:resource name=controller

map:generate type=serverpages
src=docs/templates/controller.xsp
map:parameter name=event value=action /
/map:generate
map:transform type=cinclude/
map:transform src=stylesheets/{style}.xsl /
map:serialize type=html /

/map:resource 
 /map:resources

Regards,
Francis

-Original Message-
From: Oskar Casquero [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 17 december 2002 13:15
To: [EMAIL PROTECTED]
Subject: how to connect two pipelines in cocoon?


Hello,

I have the following pipelines in cocoon:

!-- This pipeline generates an XML document from an structured text
file --
map:match pattern=MAST_TXT2MAST_XMLresponse
map:act type=fileUploadAction
map:parameter name=file-name value=mast/
map:generate type=textparser src={src}
map:parameter name=grammar value=cocoon:/mast-out.grm/
map:parameter name=includeignorabletokens value=true/
/map:generate
map:transform src=stylesheets/chaperon2mastXML.xsl/
map:serialize type=text/
/map:act
/map:match

!-- This pipeline stores an XML document in eXist database using the xmldb
logicsheet--
map:match pattern=eXistAdmin
map:generate type=serverpages src=serverpages/xadmin.xsp/
map:transform src=stylesheets/doc2html.xsl/
map:serialize type=xhtml/
/map:match

I want to store the XML file in the database, so I would like to connect the
first pipeline with the second one, creating a chain, where the first
pipeline's output SAX events feed the second pipeline's generator. How can I
do this?

Thank you,
Oskar


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




AW: value-substitution in Cocoon

2002-12-17 Thread Sternath Elmar



Hi 
Anna,

you could 
implement an action which takes your HTTP request parameter as input parameter, 
then execute some JAVA code inside the action getting the last character, 
incrementing it or whatever elseand let the action return the result. 
Inside the act tags in your sitemap, you can then access the return 
value of the action and pass it to the stylesheet.

Regards,
Elmar

  -Ursprngliche Nachricht-Von: Anna Afonchenko 
  [mailto:[EMAIL PROTECTED]]Gesendet: Dienstag, 17. Dezember 2002 
  12:55An: cocoon-usersBetreff: value-substitution in 
  Cocoon
  I have the following 
  question:
  I know that in Cocoon I can use 
  value substitution inside a pipeline, e.g. if I have a pipeline
  map:pipeline
   map:match 
  pattern="*/*.html"
   map:generate 
  src=""/
   
  map:transform src=""
   
  map:parameter name="param" value="{1}"/
   
  /map:transform
   
  /map:match
  /map:pipeline
  
  and if I write the URI http://localhost:8080/cocoon/param1/some.html
  
  then in the pipeline the stylesheet 
  some.xsl will receive a parameter with name param and value param1. So this is 
  my question:
  Can I somehow parse/evaluate this 
  parameter {1} inside the sitemap (not inside the xsl).
  E.g., can I somehow, having 
  {1}="param1" extract the last character ("1" in this case) and send to the xsl 
  only it, or, having parameter {1}=1, send {1}+1, i.e. 2 to the 
  stylesheet?
  
  I need this because I want to build 
  pipeline that will get some parameter n, and after it is executed I want to 
  call the same pipeline with parameter n+1.
  Is this possible in 
  sitemap?
  
  Thank you very much for 
  help.
  
  Anna


Writing output of pipeline to a file

2002-12-17 Thread Anna Afonchenko



Hello All!
I know that today I ask too many 
questions, but since cocoon is new to me,
sometimes I don't even know where to 
look for the information, so you are my only help.
Thanks for everyone who took time to 
answer my questions. Here is another one:

At the end of the pipeline the result 
fileis output to the browser.
I need the result file also to be 
saved in the file on my hard drive.
How can I do this?
I read about the 
SourceWritingTransformer, but I understood that I can write source:write 
tag in xml only, not in xsl.

Or maybe I can use it to do what I 
need, and I just don't know how?
Please tell me.

Thank you very much for your 
help.

Anna


CDATA sections

2002-12-17 Thread Emmanuil Batsis (Manos)
[resending this one, seems I used a non-subscribed address originally]


Hi all,

I'm building an app that involves client-side editing of XML delivered 
by Cocoon. I'm using an XSLT transformer to deliver a visual 
representation of an XML document and another transformer to convert the 
modified visual representation to XML. My problem lies in CDATA section 
preservation, as XSLT's model is not aware of those.

I'm not sure where to head for a solution:

* Some Xalan extension that makes XSLT CDATA aware
* Some pipeline hack where I convert CDATA to custom PIs
* Some other way I have no clue of

Any advice or existing resources would be very much appreciated.

Manos



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Re: Writing output of pipeline to a file

2002-12-17 Thread Ludovic de Beaurepaire



Hi Anna,

I had this problem and didn't find a solution for 
caching the output of the pipeline to perform an OutputAction as saving in a 
file. Finally i chose to save the XML, and to perfom the 
transformation/serialization when a request need the transformed file. It 
supposes that the transformers are not modified.

Another solution should be using the CommandLine 
classes to perform the pipeline in an action but i can't say more about 
it.

Hope a better solution exists...

Ludovic

  - Original Message - 
  From: 
  Anna Afonchenko 
  
  To: cocoon-users 
  Sent: Tuesday, December 17, 2002 2:19 
  PM
  Subject: Writing output of pipeline to a 
  file
  
  Hello All!
  I know that today I ask too many 
  questions, but since cocoon is new to me,
  sometimes I don't even know where 
  to look for the information, so you are my only help.
  Thanks for everyone who took time 
  to answer my questions. Here is another one:
  
  At the end of the pipeline the 
  result fileis output to the browser.
  I need the result file also to be 
  saved in the file on my hard drive.
  How can I do this?
  I read about the 
  SourceWritingTransformer, but I understood that I can write 
  source:write tag in xml only, not in xsl.
  
  Or maybe I can use it to do what I 
  need, and I just don't know how?
  Please tell me.
  
  Thank you very much for your 
  help.
  
  Anna


Re: Writing output of pipeline to a file

2002-12-17 Thread Anna Afonchenko



Hi Ludovic. Thank you for 
answering.
Can you say what do you do to save 
this XML file?
I mean, if I have the following 
pipeline:
map:match 
pattern="some.html"
 map:generate 
src=""/
 map:transform 
src=""/
 map:serialize 
type="xml"/
/map:match
this pipeline produces an xml file. 
What should I use in order to save this file as "some.xml".

Sorry for asking almost exactly the 
same, I just didn't understood from you answer what should I do.
Thank you very much for 
help.

Anna

  - Original Message - 
  From: 
  Ludovic de Beaurepaire 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, December 17, 2002 4:03 
  PM
  Subject: Re: Writing output of pipeline 
  to a file
  
  Hi Anna,
  
  I had this problem and didn't find a solution for 
  caching the output of the pipeline to perform an OutputAction as saving in a 
  file. Finally i chose to save the XML, and to perfom the 
  transformation/serialization when a request need the transformed file. It 
  supposes that the transformers are not modified.
  
  Another solution should be using the CommandLine 
  classes to perform the pipeline in an action but i can't say more about 
  it.
  
  Hope a better solution exists...
  
  Ludovic
  
- Original Message - 
From: 
Anna 
Afonchenko 
To: cocoon-users 
Sent: Tuesday, December 17, 2002 2:19 
PM
Subject: Writing output of pipeline to 
a file

Hello All!
I know that today I ask too many 
questions, but since cocoon is new to me,
sometimes I don't even know where 
to look for the information, so you are my only help.
Thanks for everyone who took time 
to answer my questions. Here is another one:

At the end of the pipeline the 
result fileis output to the browser.
I need the result file also to be 
saved in the file on my hard drive.
How can I do this?
I read about the 
SourceWritingTransformer, but I understood that I can write 
source:write tag in xml only, not in xsl.

Or maybe I can use it to do what 
I need, and I just don't know how?
Please tell me.

Thank you very much for your 
help.

Anna


Re: Writing output of pipeline to a file

2002-12-17 Thread Boris Althaus



Halle Anna,

With a stylesheet like that you can write files and having an 
output as well.If it is the best method?

?xml version="1.0" 
encoding="ISO-8859-1"?xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" 
extension-element-prefixes="redirect"xsl:output method="xml" 
encoding="ISO-8859-1" indent="yes"/xsl:template 
match="/"htmlheadtitle//headbodyxsl:apply-templates//body/html

/xsl:templatexsl:template 
match="output"redirect:open 
file="path-to-your-file"/redirect:write 
file="path-to-your-file"xsl:copy-of 
select="*"//redirect:writeredirect:close 
file="path-to-your-file"//xsl:template/xsl:stylesheet

  - Original Message - 
  From: 
  Anna Afonchenko 
  
  To: cocoon-users 
  Sent: Tuesday, December 17, 2002 2:19 
  PM
  Subject: Writing output of pipeline to a 
  file
  
  Hello All!
  I know that today I ask too many 
  questions, but since cocoon is new to me,
  sometimes I don't even know where 
  to look for the information, so you are my only help.
  Thanks for everyone who took time 
  to answer my questions. Here is another one:
  
  At the end of the pipeline the 
  result fileis output to the browser.
  I need the result file also to be 
  saved in the file on my hard drive.
  How can I do this?
  I read about the 
  SourceWritingTransformer, but I understood that I can write 
  source:write tag in xml only, not in xsl.
  
  Or maybe I can use it to do what I 
  need, and I just don't know how?
  Please tell me.
  
  Thank you very much for your 
  help.
  
  Anna


FORMS

2002-12-17 Thread Carlos González
Title: FORMS





Hi All, 


I am very interested in something that would let me fill some forms, and bind these form data to xml.


I am evaluating products like Altova's Authentic Web Edition (very expensive, 30k USD per 50 concurrent users), but the functionality, except the client behavior that allows to edit the whole xml before sending it to the server, is near from what I'm looking for.

I have seen Cocoon Forms, and it seems that is what I need.


Could you give me some suggestions, hints, ..., whatever.


Also, Cocoon forms page says that Cocoon 2.1 must be downloaded in order to test the example at url http://localhost:8080/cocoon/samples/xmlform/, but I am unable to get this version neither in the download page nor in the cvs.

Where could I find this package?. Is it present in other releases, or only in 2.1?


Thank you very much in advance.


Carlos.



Carlos Gonzalez-Cadenas
Software Architect
e-xtendnow





AW: Writing output of pipeline to a file

2002-12-17 Thread Sternath Elmar



Hi 
Anna,

if no cocoon 
standard solution exists for this problem, you could implement your own 
Transformer inheriting from Cocoon's AbstractTransformer.The transformer 
processes all elements of your XML streamin corresponding methods like 
startElement, etc. You could redefine these methods and implement your file 
writing stuffinside them.

Regards,
Elmar

-Ursprngliche Nachricht-Von: Anna Afonchenko 
[mailto:[EMAIL PROTECTED]]Gesendet: Dienstag, 17. Dezember 2002 
14:20An: cocoon-usersBetreff: Writing output of pipeline 
to a file

  Hello All!
  I know that today I ask too many 
  questions, but since cocoon is new to me,
  sometimes I don't even know where 
  to look for the information, so you are my only help.
  Thanks for everyone who took time 
  to answer my questions. Here is another one:
  
  At the end of the pipeline the 
  result fileis output to the browser.
  I need the result file also to be 
  saved in the file on my hard drive.
  How can I do this?
  I read about the 
  SourceWritingTransformer, but I understood that I can write 
  source:write tag in xml only, not in xsl.
  
  Or maybe I can use it to do what I 
  need, and I just don't know how?
  Please tell me.
  
  Thank you very much for your 
  help.
  
  Anna


Re: Writing output of pipeline to a file

2002-12-17 Thread Ludovic de Beaurepaire



First, i had just to save it (not to send the 
result file to the client). I did it in a stylesheet like this :

?xml version="1.0" 
encoding="ISO-8859-1"?xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"extension-element-prefixes="redirect"
xsl:output method="xml" 
encoding="ISO-8859-1"/xsl:template 
match="/"redirect:write 
file="{$path}"xsl:copy-of 
select="*"//redirect:write
TEXTEoutput for the 
client/TEXTE
/xsl:template 
/xsl:stylesheet
But there was problems with some configuration, so 
finally i did it in my Action who had to generate the XML.

If you have to duplicate your XML stream, one for 
saving, another for the client, i thinkyou have to do this in an action. 
It generates the XML file and this one is next 
transformed/serialized.


map:match 
pattern="some.html"
 map:act 
type="YourAction" map:generate 
src=""/ 
 map:transform 
src=""/
 map:serialize 
type="html"/
/map:match

Ludovic

  - Original Message - 
  From: 
  Anna Afonchenko 
  
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, December 17, 2002 3:09 
  PM
  Subject: Re: Writing output of pipeline 
  to a file
  
  Hi Ludovic. Thank you for 
  answering.
  Can you say what do you do to save 
  this XML file?
  I mean, if I have the following 
  pipeline:
  map:match 
  pattern="some.html"
   map:generate 
  src=""/
   
  map:transform src=""/
   
  map:serialize type="xml"/
  /map:match
  this pipeline produces an xml file. 
  What should I use in order to save this file as "some.xml".
  
  Sorry for asking almost exactly the 
  same, I just didn't understood from you answer what should I do.
  Thank you very much for 
  help.
  
  Anna
  
- Original Message - 
From: 
Ludovic de Beaurepaire 
To: [EMAIL PROTECTED] 
Sent: Tuesday, December 17, 2002 4:03 
PM
Subject: Re: Writing output of pipeline 
to a file

Hi Anna,

I had this problem and didn't find a solution 
for caching the output of the pipeline to perform an OutputAction as saving 
in a file. Finally i chose to save the XML, and to perfom the 
transformation/serialization when a request need the transformed file. It 
supposes that the transformers are not modified.

Another solution should be using the 
CommandLine classes to perform the pipeline in an action but i can't say 
more about it.

Hope a better solution exists...

Ludovic

  - Original Message - 
  From: 
  Anna 
  Afonchenko 
  To: cocoon-users 
  Sent: Tuesday, December 17, 2002 2:19 
  PM
  Subject: Writing output of pipeline 
  to a file
  
  Hello All!
  I know that today I ask too 
  many questions, but since cocoon is new to me,
  sometimes I don't even know 
  where to look for the information, so you are my only help.
  Thanks for everyone who took 
  time to answer my questions. Here is another one:
  
  At the end of the pipeline the 
  result fileis output to the browser.
  I need the result file also to 
  be saved in the file on my hard drive.
  How can I do this?
  I read about the 
  SourceWritingTransformer, but I understood that I can write 
  source:write tag in xml only, not in xsl.
  
  Or maybe I can use it to do 
  what I need, and I just don't know how?
  Please tell me.
  
  Thank you very much for your 
  help.
  
  Anna


Interbase JDBC bugs when migrating to JDK 1.4

2002-12-17 Thread Paolo Scaffardi
Title: Messaggio




I have a linux web application based on Cocoon 2.0.3, tomcat 4.1.12, JDK 
1.3, InterClient 2.0.1 and Firebird SuperServer 1.0. I need to migrate to JDK 
1.4 but i still have problems with InterClient because some queries now throw 
this exception: "interbase.interclient.InvalidOperationException: [interclient] 
Invalidoperation to read past end of cursor".

Thus, i replaced InterClient with Firebird JCA-JDBC class 4 Beta 1 and 
everything seems work fine, but  wait a moment: while inspecting database 
tables with IBExpert (or some other tool) they differs from the one accessed 
from my application. Note that queries are Cocoon-generated by ESQL logicsheet 
in a XSP page, and they were working fine before. It seems no commitis 
done (i left set it to autocommit intococoon.xconf). If i restart the application, the 
database is as the first time.

How can resolve my problem? Is it a InterClient related bug? Is it FireBird 
related bug? Is it a Cocoon bug?

ByeBye,
Paolo Scaffardi


XML Schema's or DTDs for sitemaps/logicsheets?

2002-12-17 Thread Ben Young
Are there any Schemas or DTDs available for the sitemap or logicsheets?

Thanks,
Ben


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Cocoon 2.0.3 and WebSphere Studio Application Developer 5.0

2002-12-17 Thread robert_hitchins
Hi All,
 
Was wondering if anyone has had any experience deploying the Cocoon 
2.0.3 WAR file under WebSphere Studio Application Developer 5.0 or 
WebSphere Application Server 5.0?  
 
I import the WAR in WSAD 4.0.3 and it works just fine...when I import 
it under WSAD 5.0, it appears to import fine, but when I go to run the 
demo app the browser hangs after the progress bar is completely filled.
 
Any hints/suggestions would be much appreciated!
 
Thanks in advance,
 
Bob Hitchins
 


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: FORMS

2002-12-17 Thread Josema Alonso
FORMSHello,
Yes, you must download 2.1 from CVS and build it. Information on how to get
it and build it step by step is available at:
http://xml.apache.org/cocoon/installing/index.html

Then you could test the XMLForm samples. I've been succesfully using them
for a few months backed by a Xindice respository.

Best.

ps: please, not HTML next time, thanks.


- Original Message -
From: Carlos González
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 3:34 PM
Subject: FORMS


Hi All,
I am very interested in something that would let me fill some forms, and
bind these form data to xml.
I am evaluating products like Altova's Authentic Web Edition (very
expensive, 30k USD per 50 concurrent users), but the functionality, except
the client behavior that allows to edit the whole xml before sending it to
the server, is near from what I'm looking for.
I have seen Cocoon Forms, and it seems that is what I need.
Could you give me some suggestions, hints, ..., whatever.
Also, Cocoon forms page says that Cocoon 2.1 must be downloaded in order to
test the example at url http://localhost:8080/cocoon/samples/xmlform/, but I
am unable to get this version neither in the download page nor in the cvs.
Where could I find this package?. Is it present in other releases, or only
in 2.1?
Thank you very much in advance.
Carlos.


Carlos Gonzalez-Cadenas
Software Architect
e-xtendnow



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Writing output of pipeline to a file

2002-12-17 Thread Upayavira
The question is, do you want to run Cocoon as a servlet (i.e. accessing it via HTTP), 
and have the pipeline save a file on the way, or do you just want to get the file 
saved, 
without needing a servlet?

If it is the latter, then you should consider using the Command Line interface. 
Basically, 
you can ask the command line interface to get for you a URI, which it will then save 
to 
disk for you. You can then do with that whatever you want.

Regards, Upayavira

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Using the Cocoon pipeline outside web apps

2002-12-17 Thread Geoff Howard
i believe someone is working on this (unless that was you?).  Check 
the dev list archives over the last week for Cocoon Bean.

Geoff

 -Original Message-
 From: Upayavira [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 7:24 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Using the Cocoon pipeline outside web apps
 
 
 Olivier,
 
 What you are asking for is currently 'kind of' provided by the 
 command line interface.
 
 However, when I have made enquiries about this to the various 
 Cocoon lists, it has been 
 suggested that someone could develop a 'Cocoon Bean'. This would 
 be a programmatic 
 interface to Cocoon, allowing you to either:
 
 1) Request a single URI, passing an output stream to receive the result
 2) Request a batch of URIs, spidering if necessary, and write 
 them to a specified 
 directory.
 
 If all goes to plan, I would like to see if I can implement this 
 over the Christmas period. 
 But I'm new to the Cocoon internals, so I don't know how 
 successful I'll be.
 
 Regards, Upayavira
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Using the Cocoon pipeline outside web apps

2002-12-17 Thread Geoff Howard
I'm so sorry - this was you on the dev list.  I should have
checked before sending.

Geoff

 -Original Message-
 From: Geoff Howard [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 11:27 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Using the Cocoon pipeline outside web apps
 
 
 i believe someone is working on this (unless that was you?).  Check 
 the dev list archives over the last week for Cocoon Bean.
 
 Geoff
 
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Configuring JTidy

2002-12-17 Thread Martin Holz
Hi,


Anna Afonchenko [EMAIL PROTECTED] writes:

 Hi Hussayn.
 Thank you for pointing my out my typo, I corrected it.
 But I still don't get the output that I want.
 I changed the serializer to the html, but looking at the source of the
 output page, I still get:
 
 html xmlns=http://www.w3.org/1999/xhtml;
head
   meta http-equiv=Content-Type content=text/html; charset=utf-8
 
   meta content=HTML Tidy, see www.w3.org name=generator
   titleUntitled/title
/head
body
   psome  text 's/p
/body
 /html
 
 e.g. I don't have doctype declaration, and quotes are not escaped as
 entities.
 
 Maybe somebody already used jtidy properties inCocoon?
 Please explain me my mistake!!!
 
  -Original Message-
  From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 16, 2002 4:15 AM
  To: cocoon-users
  Subject: Configuring JTidy
 
 
  Hi all.
  I have a very  simple and stupid question.
  In the 2.0.4 version of cocoon the HTMLGenerator now can accept a JTidy
  configuration file.
  The example that is given in the user documentation is:
 
map:generator type=html
  src=org.apache.cocoon.generation.HTMLGenerator
  jtidy-configjtidy.properties/jtidy-config
/map:generator
 

You should have a look, how reponsibitities are shared between 
generators, transformers and serializers in cocoon.
Setting the doctype is responsibility of the serializer
Any attempt of a generator to set the doctype is ignored.
So the HTMLGenerator is only doing half of JTidys job.

You can configure the HTMLSerializer to include the 
doctype. 
See http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

Martin

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




excalibur-xmlutils sources

2002-12-17 Thread Phil Shafer

Is there an archived set of sources available for the
contents of excalibur-xmlutil-20020820.jar? I'm getting
a NPE in org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX()
and can't see what I'm doing wrong. The current sources for
jakarta-avalon-excalibur don't have this class (but do have
the interface XMLizer), but I may be looking in the wrong cvs
module. Any help would be greatly appreciated.

Thanks,
 Phil


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




schematron

2002-12-17 Thread jtbamcai
Hi!
how can I validate a date like this -mm-dd with schematron? 
thanks in advance.
iker.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: schematron

2002-12-17 Thread Joerg Heinicke
jtbamcai wrote:
 Hi!
 how can I validate a date like this -mm-dd with schematron?
 thanks in advance.
 iker.

Hello,

Schematron is XSLT, so you can use normal expressions.

Example:

assert test=substring(date, 1, 4)  2000 and substring(date, 1, 4) 
lt; 2005
/assert

But XSLT has no date-specific functionality, it knows nothing about 
dates. So I think there is a better validator than schematron for dates.

Regards,

Joerg


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



[Fwd: [ANN] Apache Tomcat 4.1.17 Stable released]

2002-12-17 Thread Antonio Gallardo
The Tomcat Team announces the immediate availability of Apache Tomcat
4.1.17 Stable.

Tomcat 4.1.17 includes many bugfixes and performance tweaks over Tomcat
4.1.12. Please see the release notes for a complete list of the changes.

Downloads (source and binaries):
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.17/

Release notes:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.17/RELEASE-NOTES

Important note: When upgrading from another Tomcat 4.x release, the
Tomcat work directory must be cleared.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Cocoon Action Problem

2002-12-17 Thread Linjun Xu !
I am having problems with the hello world example in the cocoon
documentation action section.
It's giving me an ConfigurationException.
The exception is shown below:

org.apache.avalon.framework.configuration.ConfigurationException: Error in
sitemap configuration :
at
org.apache.cocoon.www.Uiui.sitemap_xmap.configure(sitemap_xmap.java:176)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Unknown
Source)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(Unknown
Source)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:135)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java:345)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:323)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassNotFoundException:
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:219)
at
org.apache.cocoon.www.Uiui.sitemap_xmap$Configurer.configActions(sitemap_xmap.java:232)
at
org.apache.cocoon.www.Uiui.sitemap_xmap.configure(sitemap_xmap.java:160)


I think it is caused by the following tag in my sitemap.xmap
  map:actions
map:action name=hello-world class=test.HelloWorldAction/
  /map:actions

I guess it is unable to find the class test.HelloWorldAction. But
I already put the test/HelloWorldAction.class inside the
web-inf/classes directory. I also tried other directories, but all
generate the same error messages.

Does anyone have an idea what is wrong ? Do I need to do some extra
configuration for using action?  My cocoon configuration works for
generating HTML from xml files.

Thanks a lot.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




CDATA sections

2002-12-17 Thread m batsis

Hi all,

I'm building an app that involves client-side editing of XML delivered 
by Cocoon. I'm using an XSLT transformer to deliver a visual 
representation of an XML document and another transformer to convert the 
modified visual representation to XML. My problem lies in CDATA section 
preservation, as XSLT's model is not aware of those.

I'm not sure where to head for a solution:

* Some Xalan extension that makes XSLT CDATA aware
* Some pipeline hack where I convert CDATA to custom PIs
* Some other way I have no clue of

Any advice or existing resources would be very much appreciated.

Manos


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



for loop in XSLT

2002-12-17 Thread Lautaro Brasseur



Somebody knows how to implement a for-like loop in 
XSLT? I found the following example in XSLT 2.0, but it doesn't work in 
1.0:
 xsl:for-each select="1 to 5" 
xsl:variable name="x" select="$x+1"/ 
xsl:for-each



Re: for loop in XSLT

2002-12-17 Thread Tony Collen
Lautaro Brasseur wrote:


Somebody knows how to implement a for-like loop in XSLT? I found the following example in XSLT 2.0, but it doesn't work in 1.0:

 xsl:for-each select=1 to 5
   xsl:variable name=x select=$x+1/
 xsl:for-each



Lautaro,

Please ask any XSL-related questions to the Mulberry XSL-List.  It's 
located at http://www.mulberrytech.com/xsl/xsl-list/  

Thanks,
Tony


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Re: for loop in XSLT

2002-12-17 Thread Yves Vindevogel
Something like this :

?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;
xsl:template match=/
pTest Page/p

xsl:call-template name=forloop
xsl:with-param name=counter select=1/
/xsl:call-template
/xsl:template

xsl:template name=forloop
xsl:param name=counter/

pxsl:value-of select=$counter//p

xsl:if test=$counter lt; 5
xsl:call-template name=forloop
xsl:with-param name=counter select=$counter +1/
/xsl:call-template
/xsl:if
/xsl:template
/xsl:stylesheet



 Somebody knows how to implement a for-like loop in XSLT? I found the
 following example in XSLT 2.0, but it doesn't work in 1.0:

   xsl:for-each select=1 to 5
 xsl:variable name=x select=$x+1/
   xsl:for-each

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: excalibur-xmlutils sources

2002-12-17 Thread Ahmed
On Tue, 2002-12-17 at 19:46, Phil Shafer wrote:
 Is there an archived set of sources available for the
 contents of excalibur-xmlutil-20020820.jar? I'm getting
 a NPE in org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX()
 and can't see what I'm doing wrong. The current sources for
 jakarta-avalon-excalibur don't have this class (but do have
 the interface XMLizer), but I may be looking in the wrong cvs
 module. Any help would be greatly appreciated.

I have got similar problems when trying to build from sources.

I think you could get what you are looking for from cvs 
(http://cvs.apache.org/viewcvs.cgi/jakarta-avalon-excalibur) with
commands like:
$ export CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvspublic
$ cvs login
$ cvs checkout -D 2002-08-20 jakarta-avalon-excalibur


I am just like you, a Cocoon user.
I have got a C/C++, CVS, Autotools background. 
I am new to Java. 
Finding jars in CVS was a great surprise for me. 
Is there .so in apache-httpd CVS?



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Cocoon Action Problem

2002-12-17 Thread Geoff Howard
snip/
 Caused by: java.lang.ClassNotFoundException:
snip/

 I think it is caused by the following tag in my sitemap.xmap
   map:actions
 map:action name=hello-world class=test.HelloWorldAction/
   /map:actions

 I guess it is unable to find the class test.HelloWorldAction. But
 I already put the test/HelloWorldAction.class inside the
 web-inf/classes directory. I also tried other directories, but all
 generate the same error messages.


You are right - it's not finding test.HelloWorldAction

- is the path to the class file
WEB-INF/classes/test/HellowWorldAction.class?
- did you restart cocoon or tomcat/servlet container?
- what do the logs say during startup about hint hello-world?

Geoff Howard


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




sub sitemaps problems

2002-12-17 Thread Tomasz Muldner
Hi, I'm using Tomcat 4.1.12 and Cocoon: cocoon-2.0.4-vm14-bin, jdk 1.4.1,
windows xp
I tried one example from the Cocoon book, listing 4.28 (gallery listing) to
be executed from a sub sitemap.
In the directory
mount
I created a directory
tm
and in this directory, I created a directory
gallery (with jpeg files), xsl file and a local sitemap (sitemap.xmap) -
last two files are included

When I enter:
http://localhost:8080/cocoon/mount/tm/gallery/
it shows the directory listing, but when I do this:
http://localhost:8080/cocoon/mount/tm/gallery
it complains:




type resource-not-found

message Resource not found

description The requested URI /cocoon/mount/tm/gallery was not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/mount/tm/gallery
path-info

mount/tm/gallery

Dr. Tomasz Müldner, Professor, Graduate Program Coordinator
Jodrey School of Computer Science
Acadia University, Wolfville, NS, Canada B4P 2R6
phone: 902-585-1578  FAX: (902) 585-1067
Email:
university-related:  [EMAIL PROTECTED]
personal:[EMAIL PROTECTED]
Internet:
university-related:  http://dragon.acadiau.ca/~solid
personal:   http://www3.ns.sympatico.ca/tmuldner/




sitemap.xmap
Description: Binary data


sitemap.xmap
Description: Binary data
-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


return connection to jbean from connection pool question

2002-12-17 Thread Bas Peters
I am trying to get familiar with Cocoon (2.1) and try to expand the XMLform
HowToWizard demo by adding an insert statement to write data to a MySQL
database. I added a jBean.insert() method in the HowToWizardAction class,
added an insert() method in the bean class and added a DB class with a
static method that returns a Connection object. This works.

To use a connection pool I added the driver in web.xml and the datasource in
cocoon.xconf
I tested the pool (demo) using a simple ESQL page. It works fine.

Then I changed the DB class to use a connection pool by implementing
Composable (code below), but I receive a null pointer exception from the
pipeline when insert is executed. When I put the code in the
HowToWizardAction class it works fine (since it's an action). I have the
feeling that the compose method is never executed. Do I have to add the DB
class in the sitemap (as what?) or the cocoon.xconf to make sure that DB is
initialized? Is this a useful approach in Cocoon, or should I use a
different approach to return a Connection from a connection pool to the bean
class?

The DB class using the connection pool:

snippet
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.DriverManager;

import org.apache.avalon.framework.component.Composable;
import org.apache.avalon.framework.component.ComponentManager;
import org.apache.avalon.framework.component.ComponentSelector;
import org.apache.avalon.framework.component.ComponentException;
import org.apache.avalon.excalibur.datasource.DataSourceComponent;

public class DB implements Composable {

public DB() {}

public static Connection getConnection() {
 Connection con = null;
 try {
 con = datasource.getConnection();
 } catch (SQLException e) {
 e.printStackTrace();
 }
 return con;
}

private static DataSourceComponent datasource;

public void compose(ComponentManager manager) throws ComponentException
{
 ComponentSelector selector = (ComponentSelector)manager.lookup
 (DataSourceComponent.ROLE + Selector);
 datasource = (DataSourceComponent)selector.select(demo);
}
}
/snippet


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: sub sitemaps problems

2002-12-17 Thread SAXESS - Hussayn Dabbous
I had essentially the same problem with my webapp.
I solved it as follows:

map:match pattern=gallery
  map:redirect-to session=false uri=gallery//
/map:match

map:match pattern=gallery/**
  map:mount uri-prefix=gallery
 check-reload=yes
 reload-method=synchron
 src=gallery/ /
/map:match

I posted a question to this list, but no better
solution was posted nor any hint, why the problem
exists.

regards, hussayn

Tomasz Muldner wrote:

Hi, I'm using Tomcat 4.1.12 and Cocoon: cocoon-2.0.4-vm14-bin, jdk 1.4.1,
windows xp
I tried one example from the Cocoon book, listing 4.28 (gallery listing) to
be executed from a sub sitemap.
In the directory
mount
I created a directory
tm
and in this directory, I created a directory
gallery (with jpeg files), xsl file and a local sitemap (sitemap.xmap) -
last two files are included

When I enter:
http://localhost:8080/cocoon/mount/tm/gallery/
it shows the directory listing, but when I do this:
http://localhost:8080/cocoon/mount/tm/gallery
it complains:




type resource-not-found

message Resource not found

description The requested URI /cocoon/mount/tm/gallery was not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/mount/tm/gallery
path-info

mount/tm/gallery

Dr. Tomasz Müldner, Professor, Graduate Program Coordinator
Jodrey School of Computer Science
Acadia University, Wolfville, NS, Canada B4P 2R6
phone: 902-585-1578  FAX: (902) 585-1067
Email:
university-related:  [EMAIL PROTECTED]
personal:[EMAIL PROTECTED]
Internet:
university-related:  http://dragon.acadiau.ca/~solid
personal:   http://www3.ns.sympatico.ca/tmuldner/




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: sub sitemaps problems

2002-12-17 Thread Joerg Heinicke
 I posted a question to this list, but no better
 solution was posted nor any hint, why the problem
 exists.

I don't know a better solution, but isn't the reason obvious?

http://localhost:8080/cocoon/mount/tm/gallery/ points to a directory 
'gallery'

while
http://localhost:8080/cocoon/mount/tm/gallery points to a file 'gallery'.

'gallery' is of course different to 'gallery/'.

You can match on gallery** to catch both, but beware, that you are on 
2 different directory levels, so relative links may not work in one 
case. So maybe your redirect is already the best solution.

Regards,

Joerg

SAXESS - Hussayn Dabbous wrote:
I had essentially the same problem with my webapp.
I solved it as follows:

map:match pattern=gallery
  map:redirect-to session=false uri=gallery//
/map:match

map:match pattern=gallery/**
  map:mount uri-prefix=gallery
 check-reload=yes
 reload-method=synchron
 src=gallery/ /
/map:match

I posted a question to this list, but no better
solution was posted nor any hint, why the problem
exists.

regards, hussayn

Tomasz Muldner wrote:


Hi, I'm using Tomcat 4.1.12 and Cocoon: cocoon-2.0.4-vm14-bin, jdk 1.4.1,
windows xp
I tried one example from the Cocoon book, listing 4.28 (gallery 
listing) to
be executed from a sub sitemap.
In the directory
mount
I created a directory
tm
and in this directory, I created a directory
gallery (with jpeg files), xsl file and a local sitemap (sitemap.xmap) -
last two files are included

When I enter:
http://localhost:8080/cocoon/mount/tm/gallery/
it shows the directory listing, but when I do this:
http://localhost:8080/cocoon/mount/tm/gallery
it complains:

 



type resource-not-found

message Resource not found

description The requested URI /cocoon/mount/tm/gallery was not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/mount/tm/gallery
path-info

mount/tm/gallery

Dr. Tomasz Müldner


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




context problem

2002-12-17 Thread Hong Gia Dinh
Title: context problem





Hi all


i got the headache prolem like this 
i have the files and sitemap like this :


 map:resources
  map:resource name=admin-page
   map:generate type=serverpages src="">
   map:transform type=i18n
map:parameter name=locale value={../locale}/
   /map:transform
   map:transform src="">
map:parameter name=use-request-parameters value=true/
map:parameter name=css-stylesheet value=admin/admin.css/
map:parameter name=base-url value=/saigoncoop/
map:parameter name=locale value={../locale}/
map:parameter name=page value={target}/
   /map:transform
   map:transform type=log
map:parameter name=logile value=logfile.log/
map:parameter name=append value=no/
   /map:transform
   map:serialize/
  /map:resource
 /map:resources
 !-- === Pipelines = --
 map:pipelines
  map:pipeline
   map:act type=locale
map:match pattern=admin-*
 map:act type=form-validator
  map:parameter name=descriptor value=context:///admin/system/admin-system-descriptor.xml/

  map:parameter name=validate-set value=admin-system-validate/
  map:call resource=admin-page
   map:parameter name=target value={1}/
  /map:call
 /map:act  
 map:call resource=admin-page
  map:parameter name=target value={1}-error/
 /map:call 
/map:match

map:match pattern=adminstatic-*
 map:call resource=admin-page
  map:parameter name=target value={1}/
 /map:call
/map:match
   /map:act
 /map:pipeline
 map:pipeline   
   map:match pattern=admin/*.css
map:read mime-type=text/css src="">
   /map:match
   map:match pattern=portal/images/*.gif
map:read mime-type=image/gif src="">
   /map:match
   map:match pattern=portal/images/*.jpg
map:read mime-type=image/jpg src="">
   /map:match
   map:match pattern=portal/images/*.swf
map:read mime-type=image/swf src="">
   /map:match
   map:match pattern=admin/images/*.gif
map:read mime-type=image/gif src="">
   /map:match
   map:match pattern=admin/images/*.jpg
map:read mime-type=image/jpg src="">
   /map:match
  /map:pipeline



but when i just can run the {1}-error pages of all pages  i cant run the valid pages!!! but when i replace {1} by the hard coded pages , it can run well the valid and error pages !!

i dont know how to solve it! when i run with {1} and the error pages form , i input the value but it cant find the correct page, it produces error like this :


org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: admin/system/.xsp could not be found. (possible context problem)

how to fix it??? it' sstrange that i can run all the pages that match adminstatic-* rather well!!!


can you all show me what i did wrong ??


Thanks so much GD





Re: FORMS

2002-12-17 Thread Ivelin Ivanov
Title: FORMS




XMLForm is not supported in version before 2.1.

You can download 2.1 here:
http://cvs.apache.org/snapshots/xml-cocoon2/


  - Original Message - 
  From: 
  Carlos 
  González 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, December 17, 2002 8:34 
  AM
  Subject: FORMS
  
  Hi All, 
  I am very interested in something that would let me fill some 
  forms, and bind these form data to xml. 
  I am evaluating products like Altova's Authentic Web Edition 
  (very expensive, 30k USD per 50 concurrent users), but the functionality, 
  except the client behavior that allows to edit the whole xml before sending it 
  to the server, is near from what I'm looking for.
  I have seen Cocoon Forms, and it seems that is what I 
  need. 
  Could you give me some suggestions, hints, ..., 
  whatever. 
  Also, Cocoon forms page says that Cocoon 2.1 must be 
  downloaded in order to test the example at url http://localhost:8080/cocoon/samples/xmlform/, but I am 
  unable to get this version neither in the download page nor in the 
  cvs.
  Where could I find this package?. Is it present in other 
  releases, or only in 2.1? 
  Thank you very much in advance. 
  Carlos. 
  Carlos Gonzalez-Cadenas Software 
  Architect e-xtendnow 



Re: FORMS

2002-12-17 Thread Ivelin Ivanov

Josema,

Many people requested an example of XMLForm with Xindice.
Can you submit some source code or even better a HOW-TO doc?

Thank you,

Ivelin



- Original Message -
From: Josema Alonso [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 9:59 AM
Subject: Re: FORMS


FORMSHello,
Yes, you must download 2.1 from CVS and build it. Information on how to get
it and build it step by step is available at:
http://xml.apache.org/cocoon/installing/index.html

Then you could test the XMLForm samples. I've been succesfully using them
for a few months backed by a Xindice respository.

Best.

ps: please, not HTML next time, thanks.


- Original Message -
From: Carlos González
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 3:34 PM
Subject: FORMS


Hi All,
I am very interested in something that would let me fill some forms, and
bind these form data to xml.
I am evaluating products like Altova's Authentic Web Edition (very
expensive, 30k USD per 50 concurrent users), but the functionality, except
the client behavior that allows to edit the whole xml before sending it to
the server, is near from what I'm looking for.
I have seen Cocoon Forms, and it seems that is what I need.
Could you give me some suggestions, hints, ..., whatever.
Also, Cocoon forms page says that Cocoon 2.1 must be downloaded in order to
test the example at url http://localhost:8080/cocoon/samples/xmlform/, but I
am unable to get this version neither in the download page nor in the cvs.
Where could I find this package?. Is it present in other releases, or only
in 2.1?
Thank you very much in advance.
Carlos.


Carlos Gonzalez-Cadenas
Software Architect
e-xtendnow



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: schematron

2002-12-17 Thread Ivelin Ivanov

Joerg's response is correct, although a technical detail is that Schematron
is based on XPath, not XSTL (which uses XPath itself).


- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 1:27 PM
Subject: Re: schematron


 jtbamcai wrote:
   Hi!
   how can I validate a date like this -mm-dd with schematron?
   thanks in advance.
   iker.

 Hello,

 Schematron is XSLT, so you can use normal expressions.

 Example:

 assert test=substring(date, 1, 4)  2000 and substring(date, 1, 4)
 lt; 2005
 /assert

 But XSLT has no date-specific functionality, it knows nothing about
 dates. So I think there is a better validator than schematron for dates.

 Regards,

 Joerg


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




cvs2.1 xmlform sample broken?

2002-12-17 Thread Thor Heinrichs-Wolpert
I see some files moved in CVS by  nicolaken such as
src/java/org/apache/cocoon/samples/xmlform
UsageFeedbackAction.java
UserBean.java
WizardAction.java

but the sitemaps and examples don't seem to have been modified.

Is something up?

Cheers,
Thor HW

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: sub sitemaps problems

2002-12-17 Thread Geoff Howard
What about map:match type=regexp pattern=^gallery[/]?$ as a better
solution? (if relative links are not an issue)

Geoff Howard

 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]

   I posted a question to this list, but no better
   solution was posted nor any hint, why the problem
   exists.

 I don't know a better solution, but isn't the reason obvious?

 http://localhost:8080/cocoon/mount/tm/gallery/ points to a directory
 'gallery'

 while
 http://localhost:8080/cocoon/mount/tm/gallery points to a file 'gallery'.

 'gallery' is of course different to 'gallery/'.

 You can match on gallery** to catch both, but beware, that you are on
 2 different directory levels, so relative links may not work in one
 case. So maybe your redirect is already the best solution.

 Regards,

 Joerg

 SAXESS - Hussayn Dabbous wrote:
  I had essentially the same problem with my webapp.
  I solved it as follows:
 
  map:match pattern=gallery
map:redirect-to session=false uri=gallery//
  /map:match
 
  map:match pattern=gallery/**
map:mount uri-prefix=gallery
   check-reload=yes
   reload-method=synchron
   src=gallery/ /
  /map:match
 
  I posted a question to this list, but no better
  solution was posted nor any hint, why the problem
  exists.
 


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: cvs2.1 xmlform sample broken?

2002-12-17 Thread Ivelin Ivanov

Thanks for the notification Thor.

Nicola, what is the deal?


Ivelin


- Original Message - 
From: Thor Heinrichs-Wolpert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 10:03 PM
Subject: cvs2.1 xmlform sample broken?


I see some files moved in CVS by nicolaken such as
src/java/org/apache/cocoon/samples/xmlform
 UsageFeedbackAction.java
 UserBean.java
 WizardAction.java

but the sitemaps and examples don't seem to have been modified.

Is something up?

Cheers,
Thor HW

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Configuring JTidy

2002-12-17 Thread Anna Afonchenko
OK, thank you, I now understand how to set a doctype.
But what about other settings, like converting quotes to entities.
Not that I need it so much, but I am just curious, why this doesn't work
through
jtidy-config. I just want to know if that's me doing something wrong, or
maybe this is some JTidy/Cocoon bug?

Thank you for answering.

Anna

- Original Message -
From: Martin Holz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 7:00 PM
Subject: Re: Configuring JTidy



You should have a look, how reponsibitities are shared between
generators, transformers and serializers in cocoon.
Setting the doctype is responsibility of the serializer
Any attempt of a generator to set the doctype is ignored.
So the HTMLGenerator is only doing half of JTidys job.

You can configure the HTMLSerializer to include the
doctype.
See http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

Martin

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Passing request parameters - and making use of them in the XSL

2002-12-17 Thread Lenya L. Khachaturov
Hello,

It seems like everybody knows how to do this, at least the docs mention
this so briefly, that it must be dead simple. Anyway, I didn't get it :-)
Please help me on this:

map:match pattern=archives/**
...
map:transform src=my.xsl type=xslt
  map:parameter name=param value={1}
/map:transform
...
/map:match

Now, when I point the browser to http://mysite/archives/december,
the parameter named param with the december value should be passed to
the stylesheet. In the stylesheet I have: xsl:param name=param / 
As far as I understood, xsl:value-of select=param should print
december - right? Well, it doesn't. What am I doing wrong?

-- 
Lenya Khachaturov
mailto:[EMAIL PROTECTED]

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




AW: Passing request parameters - and making use of them in the XSL

2002-12-17 Thread Kirchhoff, Lars
hi 

you have to reference the param with a $. In your case 

 xsl:value-of select=$param

ciao Lars

 -Ursprüngliche Nachricht-
 Von: Lenya L. Khachaturov [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 18. Dezember 2002 15:15
 An: [EMAIL PROTECTED]
 Betreff: Passing request parameters - and making use of them 
 in the XSL
 
 
 Hello,
 
 It seems like everybody knows how to do this, at least the 
 docs mention
 this so briefly, that it must be dead simple. Anyway, I 
 didn't get it :-)
 Please help me on this:
 
 map:match pattern=archives/**
 ...
 map:transform src=my.xsl type=xslt
   map:parameter name=param value={1}
 /map:transform
 ...
 /map:match
 
 Now, when I point the browser to http://mysite/archives/december,
 the parameter named param with the december value should 
 be passed to
 the stylesheet. In the stylesheet I have: xsl:param name=param / 
 As far as I understood, xsl:value-of select=param should print
 december - right? Well, it doesn't. What am I doing wrong?
 
 -- 
 Lenya Khachaturov
 mailto:[EMAIL PROTECTED]
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Passing request parameters - and making use of them in the XSL

2002-12-17 Thread Anna Afonchenko
Lenya
I tried your example, it prints the parameter for me.
You may have a typo in expression

xsl:value-of select=param

should be
xsl:value-of select=$param

At least, this is the only reason I see.

Anna

- Original Message - 
From: Lenya L. Khachaturov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 9:14 AM
Subject: Passing request parameters - and making use of them in the XSL


Hello,

It seems like everybody knows how to do this, at least the docs mention
this so briefly, that it must be dead simple. Anyway, I didn't get it :-)
Please help me on this:

map:match pattern=archives/**
...
map:transform src=my.xsl type=xslt
  map:parameter name=param value={1}
/map:transform
...
/map:match

Now, when I point the browser to http://mysite/archives/december,
the parameter named param with the december value should be passed to
the stylesheet. In the stylesheet I have: xsl:param name=param / 
As far as I understood, xsl:value-of select=param should print
december - right? Well, it doesn't. What am I doing wrong?

-- 
Lenya Khachaturov
mailto:[EMAIL PROTECTED]

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Passing request parameters - and making use of them in the XSL

2002-12-17 Thread Dr. Robert Spiske
Hi!
At 10:14 18.12.2002 +0300, you wrote:

Hello,

As far as I understood, xsl:value-of select=param should print
december - right? Well, it doesn't. What am I doing wrong?


Try: xsl:value-of select=$param

Have a nice day
Robert


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: XML Schema's or DTDs for sitemaps/logicsheets?

2002-12-17 Thread Konstantin Piroumian
You'll find a more or less up-to-date XSD for the sitemap in
/src/documentation/xdocs/drafts/sitemap-2.1-draft.xsd

There is also a DTD for the sitemap and a RelaxNG schema somewhere there...

Konstantin

From: Ben Young [EMAIL PROTECTED]

 Are there any Schemas or DTDs available for the sitemap or logicsheets?

 Thanks,
 Ben


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Writing output of pipeline to a file

2002-12-17 Thread Anna Afonchenko



Thank you all for answering me, but I 
still can't manage to do it.
Here is my pipeline:
map:match 
pattern="test.html"
 map:generate 
src=""/
 map:transform 
src=""/
 map:serialize 
type="xml"/
map:match

Here is my 
writeToFile.xsl:
?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/Formatxmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"extension-element-prefixes="redirect"
xsl:output method="xml"/
xsl:template match="/"
xsl:copy-of select="*"/
redirect:open 
file="testWrite.xml"/redirect:write 
file="testWrite.xml"xsl:copy-of 
select="*"//redirect:write
redirect:close file="testWrite.xml"/
/xsl:template
/xsl:stylesheet

When I am running this, I get the following error 
message from the Cocoon:

type 
fatal
message 
Exception in HTMLGenerator.generate()
description org.apache.cocoon.ProcessingException: 
Exception in HTMLGenerator.generate(): java.lang.NullPointerException
sender 
org.apache.cocoon.servlet.CocoonServlet
source 
Cocoon servlet
request-uri
If I remove all the redirect: lines, then I get the 
serialized input file, so the input is OK, obviously,
I have some problems with this redirect:
Can anybody please tell me what's wrong?
Thank you very much for help.
Anna


  - Original Message - 
  From: 
  Ludovic de Beaurepaire 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, December 17, 2002 4:36 
  PM
  Subject: Re: Writing output of pipeline 
  to a file
  
  First, i had just to save it (not to send the 
  result file to the client). I did it in a stylesheet like this :
  
  ?xml version="1.0" 
  encoding="ISO-8859-1"?xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"extension-element-prefixes="redirect"
  xsl:output method="xml" 
  encoding="ISO-8859-1"/xsl:template 
  match="/"redirect:write 
  file="{$path}"xsl:copy-of 
  select="*"//redirect:write
  TEXTEoutput for the 
  client/TEXTE
  /xsl:template 
  /xsl:stylesheet
  But there was problems with some configuration, 
  so finally i did it in my Action who had to generate the XML.
  
  If you have to duplicate your XML stream, one for 
  saving, another for the client, i thinkyou have to do this in an action. 
  It generates the XML file and this one is next 
  transformed/serialized.
  
  
  map:match 
  pattern="some.html"
   map:act 
  type="YourAction" map:generate 
  src=""/ 
   
  map:transform src=""/
   
  map:serialize type="html"/
  /map:match
  
  Ludovic
  
- Original Message - 
From: 
Anna 
Afonchenko 
To: [EMAIL PROTECTED] 

Sent: Tuesday, December 17, 2002 3:09 
PM
Subject: Re: Writing output of pipeline 
to a file

Hi Ludovic. Thank you for 
answering.
Can you say what do you do to 
save this XML file?
I mean, if I have the following 
pipeline:
map:match 
pattern="some.html"
 
map:generate src=""/
 
map:transform src=""/
 
map:serialize type="xml"/
/map:match
this pipeline produces an xml 
file. What should I use in order to save this file as 
"some.xml".

Sorry for asking almost exactly 
the same, I just didn't understood from you answer what should I 
do.
Thank you very much for 
help.

Anna

  - Original Message - 
  From: 
  Ludovic de Beaurepaire 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, December 17, 2002 4:03 
  PM
  Subject: Re: Writing output of 
  pipeline to a file
  
  Hi Anna,
  
  I had this problem and didn't find a solution 
  for caching the output of the pipeline to perform an OutputAction as 
  saving in a file. Finally i chose to save the XML, and to perfom the 
  transformation/serialization when a request need the transformed file. It 
  supposes that the transformers are not modified.
  
  Another solution should be using the 
  CommandLine classes to perform the pipeline in an action but i can't say 
  more about it.
  
  Hope a better solution exists...
  
  Ludovic
  
- Original Message - 
From: 
Anna 
Afonchenko 
To: cocoon-users 
Sent: Tuesday, December 17, 2002 
2:19 PM
Subject: Writing output of pipeline 
to a file

Hello All!
I know that today I ask too 
many questions, but since cocoon is new to me,
sometimes I don't even know 
where to look for the information, so you are my only help.
Thanks for everyone who took 
time to answer my questions. Here is another one:

At the end of the pipeline 
the result fileis output to the browser.
I need the result file also 
to be saved in the file on my hard drive.
How can I do