RE: file generator error

2003-01-13 Thread Sylvain.Thevoz
Hi,

It means that if I replace the '' by 'amp;', the link isn't correct anymore.
The problem seems to be that the Tomcat web server doesn't convert 'amp;' to '' and 
use 'amp;' to retrieve the web page.

Any idea?
Is it a Tomcat bug?

Thank you
Sylvain



-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: vendredi, 10. janvier 2003 19:29
À: [EMAIL PROTECTED]
Objet: Re: file generator error


I checked the link and Mozilla recognized the content as XML, so I guess 
that's not the problem. But doesn't work anymore is not really a 
helpful error message.

Joerg

J.Pietschmann wrote:
 [EMAIL PROTECTED] wrote:
 
 If I substitute '' by 'amp;', the sitemap compilation is OK.
 But the link doesn't work anymore!
 
 Did it ever work?
 
 I guess the source is HTML rather than XML, I think you
 have to tell the sitemap to use a HTML generator. Look
 up details in the Cocoon doc, in particular in the section
 about generators


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




sql errors and esql

2003-01-13 Thread Sarah Windler
Hi 
I don't understand, why some sql errors goes through the
esql:error-results pipe and others not. 
For example:
1. SQL select mgmt_ip_addressm from v_ps_port_traffic;
select mgmt_ip_addressm from v_ps_port_traffic
   *
ERROR at line 1:
ORA-00904: MGMT_IP_ADDRESSM: invalid identifier

2.SQL select  mgmt_ip_address from v_ps_port_traffic;
select  mgmt_ip_address from v_ps_port_traffic
 *
ERROR at line 1:
ORA-04063: package body PORTSTATS.PS_PKG_UTL has errors

The first sql error goes to the esql:error-results pipe, but the second
error switches to the esql:results pipe.I don't understand from the
source code
of esql, why I don't receive all sqlplus errors transparently.
We have installed Cocoon-2.0.4.
Thank you very much
Regards
Sarah Windler

-
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: sitemap war

2003-01-13 Thread Konstantin Piroumian
Hi!

Take a look at the webapp properties, you can define which resources to copy
into the WAR. And you can also setup a new file type somewhere in Tools-IDE
settings (or so), so .xmap extension will be recognized.

Konstantin

- Original Message -
From: Fernando Wermus [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 10, 2003 23:25
Subject: sitemap  war


 I?m Fernando. I?m new with Cocoon.
 I am using Jbuilder to create a webapp. My problem is that the
sitemap.xmap
 doesn?t appear in the war file, in the application. What?s more, the
 Jbuilder 6.0 doesn?t reconize the extension .xmap, except .map . Do you
know
 how to run the sitemap.map file under a webapp Cocoon in Jbuiler.

 thanks



 -
 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: expires parameter

2003-01-13 Thread Carsten Ziegeler
Miles Elam wrote:
 
 I'm using 2.1-dev and for the life of me, I can't figure out how to get 
 the expires parameter to work.  I tried following the instructions on 
 the web site (http://xml.apache.org/cocoon/performancetips.html), but 
 they had no effect.
 
 I must say that the instructions are a little ambiguous since 
 map:pipeline[s] exists in both map:components and on its own (the 
 current topic of discussion on the developer list).  I made the 
 assumption that the expires parameter goes into the elements on their 
 own as a global expires doesn't make much sense to me.
 
 However, after putting in items such as
 
   map:pipeline
 map:parameter name=expires value=access plus 1 minutes/
 
 map:match pattern=debug.xml
   map:generate type=request/
   map:serialize type=xml/
 /map:match
   /map:pipeline
 
 I get no enhanced behavior.  No expiration header gets set -- and it's 
 easy to see what headers get set with that particular pipeline.  Should 
 I file a bug or am I missing something important?
 
The syntax above seems correct.

Hi, I did only a quick look at the source code, but it seems that
the expires is only set if the request is *not* served from the 
cache. So, you could try to use the none caching implementation
of the pipeline (map:pipeline type=noncaching).

Carsten 

Carsten Ziegeler 
Open Source Group, SN AG


-
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: sql errors and esql

2003-01-13 Thread Christian Haul
On 13.Jan.2003 -- 09:47 AM, Sarah Windler wrote:
 Hi 
 I don't understand, why some sql errors goes through the
 esql:error-results pipe and others not. 
 For example:
 1. SQL select mgmt_ip_addressm from v_ps_port_traffic;
 select mgmt_ip_addressm from v_ps_port_traffic
*
 ERROR at line 1:
 ORA-00904: MGMT_IP_ADDRESSM: invalid identifier
 
 2.SQL select  mgmt_ip_address from v_ps_port_traffic;
 select  mgmt_ip_address from v_ps_port_traffic
  *
 ERROR at line 1:
 ORA-04063: package body PORTSTATS.PS_PKG_UTL has errors
 
 The first sql error goes to the esql:error-results pipe, but the second
 error switches to the esql:results pipe.I don't understand from the
 source code
 of esql, why I don't receive all sqlplus errors transparently.
 We have installed Cocoon-2.0.4.

Syntax  other setup errors do not go to the esql:error-results while
run-time errors do. At least, that's the way it should be.

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

-
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: sql errors and esql

2003-01-13 Thread Windler Burri, Sarah
Hi 
Thank you for your reply, but I am not agree:
1. Both errors in the example are runtime errors! Or more precisaly: Who
decides, which error ist a syntax or runtime error? 
2. We loose a lot of transparency, when eslq decides about errors during
runtime.
Regards 
Sarah Windler

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]] 
Sent: Montag, 13. Januar 2003 10:38
To: [EMAIL PROTECTED]
Subject: Re: sql errors and esql


On 13.Jan.2003 -- 09:47 AM, Sarah Windler wrote:
 Hi
 I don't understand, why some sql errors goes through the
 esql:error-results pipe and others not. 
 For example:
 1. SQL select mgmt_ip_addressm from v_ps_port_traffic;
 select mgmt_ip_addressm from v_ps_port_traffic
*
 ERROR at line 1:
 ORA-00904: MGMT_IP_ADDRESSM: invalid identifier
 
 2.SQL select  mgmt_ip_address from v_ps_port_traffic;
 select  mgmt_ip_address from v_ps_port_traffic
  *
 ERROR at line 1:
 ORA-04063: package body PORTSTATS.PS_PKG_UTL has errors
 
 The first sql error goes to the esql:error-results pipe, but the 
 second error switches to the esql:results pipe.I don't understand from

 the source code of esql, why I don't receive all sqlplus errors 
 transparently. We have installed Cocoon-2.0.4.

Syntax  other setup errors do not go to the esql:error-results while
run-time errors do. At least, that's the way it should be.

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

-
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: sql errors and esql

2003-01-13 Thread Christian Haul
On 13.Jan.2003 -- 10:57 AM, Windler Burri, Sarah wrote:
 Hi 
 Thank you for your reply, but I am not agree:
 1. Both errors in the example are runtime errors! Or more precisaly: Who
 decides, which error ist a syntax or runtime error? 

The try{ block starts just before prepareCall() or prepareStatement()
is invoked and ends with } catch (SQLException) after the normal
results have been dealt with.

So, either your query throws the error before that or does not throw
an SQLException in both cases.

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

-
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 based website as example site for newbies ...

2003-01-13 Thread SAXESS - Hussayn Dabbous
Hy, all;

First i want to thank you for all the support i gained during
the last 2 months from this mailing list.

Now i have mastered my first company website based entirely
on XML and cocoon. (curious people may look at http://www.saxess.de )

I am still at the very beginning of the cocoon capabilities,
but maybe it is a good idea to make a beginners tutorial, that
shows at a living example:

a.) howto organize a small to midrange website with XML
b.) howto create a scalable navigation framework
c.) howto organize the site with sitemap(s)
d.) howto resolve entitites ...

and so on ...

If there is significant interest, i could start creating such
a tutorial so that other newbies could get o smoother quickstart...
Meanwhile i have written down some of my experiences in our
knowledge wiki at

http://www.saxess.com/JSPWiki/Wiki.jsp?page=Tipstricks

I would be pleased, if anyone of the more experienced users
would give some input and remarks. If you think, some of
my wiki pages should be moved to the cocoon wiki, please
tell me ...

regards, hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
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: sql errors and esql

2003-01-13 Thread Sarah Windler
Thank you for the hint. I am trying to understand, what you mean:

1.Setup the database connection   -- setup error
2. Setup a prepStatement (con.prepareStatement(queryString) -- ???
3. exeute the query: prepStmt.execute()]  -- runtime error

Is the second a runtime or setup error?
regards
Sarah Windler

Christian Haul wrote:
 
 On 13.Jan.2003 -- 10:57 AM, Windler Burri, Sarah wrote:
  Hi
  Thank you for your reply, but I am not agree:
  1. Both errors in the example are runtime errors! Or more precisaly: Who
  decides, which error ist a syntax or runtime error?
 
 The try{ block starts just before prepareCall() or prepareStatement()
 is invoked and ends with } catch (SQLException) after the normal
 results have been dealt with.
 
 So, either your query throws the error before that or does not throw
 an SQLException in both cases.
 
 Chris.
 --
 C h r i s t i a n   H a u l
 [EMAIL PROTECTED]
 fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
 
 -
 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]

-- 
ETH Zuerich
Informatikdienste/Kommunikation
Sarah Windler  phone: +41 1 632 35 43
ETH Zentrum RZ G 24  fax: +41 1 632 12 25
CH-8092 Zuerich  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: sql errors and esql

2003-01-13 Thread Christian Haul
On 13.Jan.2003 -- 12:26 PM, Sarah Windler wrote:
 Thank you for the hint. I am trying to understand, what you mean:
 
 1.Setup the database connection   -- setup error
 2. Setup a prepStatement (con.prepareStatement(queryString) -- ???
 3. exeute the query: prepStmt.execute()]  -- runtime error
 
 Is the second a runtime or setup error?

That should be a run-time error -- if it does throw an SQLException.

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

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




Article on XML Journal Magazine about DBPrism/Cocoon and MetaBOX

2003-01-13 Thread Marcelo F. Ochoa
Hi all:
Building Applications with less code, MetaBOX and declarative
programming model.

This article shows how to build database Web applications using Oracle,
two open-source frameworks (DBPrism/Cocoon), and MetaBOX software.
Building database Web applications is commonly a repetitive task; many
such applications are based on insert/delete/update statements of tables
in a form of simple rows, multiple rows, or master/detail combinations.
See complete article at http://www.sys-con.com/xml/article.cfm?id=542
Download Full Print Edition at http://www.sys-con.com/xml/pdf/metabox.pdf

Best regards, Marcelo.

--
Marcelo F. Ochoa - [EMAIL PROTECTED]
Do you Know DB Prism? Look @ http://www.dbprism.com.ar/dbprism/doc/Home.html
More info?
Chapter 21 of the book Professional XML Databases (Wrox Press 
http://www.wrox.com/)
Chapter 8 of the book Oracle  Open Source (O'Reilly 
http://www.oreilly.com/catalog/oracleopen/)
---
Lab. de Sistemas - Fac. de Cs. Exactas - UNICEN
Paraje Arroyo Seco - Campus Universitario
(7000) Tandil - Bs. AS. - Argentina
Te: +54-2293-30 Fax: +54-2293-31




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



XMLForm view: what is the id

2003-01-13 Thread Sylvain.Thevoz
Hi all,

Here the beginning of an XMLForm view called form1.xml:

?xml version=1.0 ?
document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
xf:form id=form-feedback view=form1 action=delete.html

In the third line there is a id=form-feedback.
What does this id means?

Thank you
Sylvain

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




Set SQL results into an array

2003-01-13 Thread Maxime.Gheysen
Hi everybody,
I use microsoft SQL server, and XSP pages. I also use ESQL for all my DB
commands.

I want to insert data with query like INSERT Into blabla (ID) values
(MyArray)
In this query MyArray is the result of another query. How can I make
it? 
Here is an example :


Table : XY
Columns : ID, Num, Date, Descript

Table : blabla
Columns : ID, Num_ID, Num_text


First I select some entries from table XY :
Select * 
From xy
Where Descript LIKE '%abc'


Then I want to put them into an array (oARRAY) and make a query to
insert entries with these paramters.
INSERT INTO blabla
  (Num_ID, Num_text)
VALUES (oARRAY[1], 'abc')
INSERT INTO blabla
  (Num_ID, Num_text)
VALUES (oARRAY[2], 'abc')
...

Or do someone have another solution? 
Thanks a lot for your help!

-
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: HTTP 302 error

2003-01-13 Thread Eric BERTHOMIER
I've found the problem and the solution.

When I use Java j2sdk1.4.1_01 I've got the error 192.168.2.50 - - 
[10/Jan/2003:15:21:48 1000] GET /oeuf HTTP/1.1 302 - but if I use Java 
jdk1.3.1_06 all work.

Eric

At 19:18 10/01/2003 +0100, Joerg Heinicke wrote:
Can you tell a bit more, what you are doing?

Joerg

Eric BERTHOMIER wrote:

Hello,
I'm a poor Cocoon's newbie and I've got this error on my log file :
192.168.2.50 - - [10/Jan/2003:15:21:48 1000] GET /oeuf HTTP/1.1 302 -
I've found this article about that : 
http://www.nameonthe.net/tomcat302test.jsp but I don't know how resolve 
my problem despite everything.
Could you help me ?
Thanks


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


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

-
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: file generator error

2003-01-13 Thread Joerg Heinicke
Hello Sylvain,

this has nothing to do with Tomcat, but only with XML. amp; is the 
representation of the ampersand character. But the  is a special 
character in XML, so it must be escaped. If the file is parsed, you have 
only the  character in memory or where ever. Of course there can still 
be a bug in XML parser or generator or anywhere else. Have a look into 
the log files, maybe you will find some hints there.

Regards,

Joerg

[EMAIL PROTECTED] wrote:
Hi,

It means that if I replace the '' by 'amp;', the link isn't correct anymore.
The problem seems to be that the Tomcat web server doesn't convert 'amp;' to '' and use 'amp;' to retrieve the web page.

Any idea?
Is it a Tomcat bug?

Thank you
Sylvain



-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: vendredi, 10. janvier 2003 19:29
À: [EMAIL PROTECTED]
Objet: Re: file generator error


I checked the link and Mozilla recognized the content as XML, so I guess 
that's not the problem. But doesn't work anymore is not really a 
helpful error message.

Joerg

J.Pietschmann wrote:

[EMAIL PROTECTED] wrote:



If I substitute '' by 'amp;', the sitemap compilation is OK.
But the link doesn't work anymore!


Did it ever work?

I guess the source is HTML rather than XML, I think you
have to tell the sitemap to use a HTML generator. Look
up details in the Cocoon doc, in particular in the section
about generators



-
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:lang=de question

2003-01-13 Thread Joerg Heinicke
XHTML 1 spec: http://www.w3.org/TR/xhtml1/#C_7

Of course xml:lang and lang should not differ.

Regards,

Joerg

Ines Robbers wrote:

Hi,

Can someone tell me what is the correct way of marking the language as
german:

html xmlns=http://www.w3.org/1999/xhtml; xml:lang=de lang=de
or
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=de
or
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=de
or any other possibilities...  :-)

What is the difference between xml:lang=en and lang=de?

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]




cookie http header in a request generator

2003-01-13 Thread Eduardo Zurita



Hello,

 Can I use a pipeline request 
generator to send a cookie to a remote server?. The idea is to capture the 
cookie from the client (browser) and pass it as a parameter to cocoon. Then 
cocoon uses this cookie in its requests to remote server, wich serves XML data 
only if that cookie is present. I took a look at docs but I could'nt find 
information about.

 Thanks in advance.
 
 
Eduardo.


RE: file generator error

2003-01-13 Thread Geoff Howard
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 13, 2003 3:25 AM
 To: [EMAIL PROTECTED]
 Subject: RE: file generator error


 Hi,

 It means that if I replace the '' by 'amp;', the link isn't
 correct anymore.
 The problem seems to be that the Tomcat web server doesn't
 convert 'amp;' to '' and use 'amp;' to retrieve the web page.

 Any idea?
 Is it a Tomcat bug?

 Thank you
 Sylvain

I think I have confirmed some problem - try
http://localhost:8080/cocoon/samples/system/request.html?foo=baramp;fee=fi

it gives:
...
  requestParameters
parameter name=amp;fee
  valuefi/value
/parameter
parameter name=foo
  valuefee/value
/parameter
  /requestParameters
...

Don't have time to do more than that now.

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]




RE: file generator error

2003-01-13 Thread Sylvain.Thevoz
Hi Geoff,

How do you debug this and how do you find your result?

Thank you
Regards
Sylvain

-Message d'origine-
De: Geoff Howard [mailto:[EMAIL PROTECTED]]
Date: lundi, 13. janvier 2003 15:46
À: [EMAIL PROTECTED]
Objet: RE: file generator error


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 13, 2003 3:25 AM
 To: [EMAIL PROTECTED]
 Subject: RE: file generator error


 Hi,

 It means that if I replace the '' by 'amp;', the link isn't
 correct anymore.
 The problem seems to be that the Tomcat web server doesn't
 convert 'amp;' to '' and use 'amp;' to retrieve the web page.

 Any idea?
 Is it a Tomcat bug?

 Thank you
 Sylvain

I think I have confirmed some problem - try
http://localhost:8080/cocoon/samples/system/request.html?foo=baramp;fee=fi

it gives:
...
  requestParameters
parameter name=amp;fee
  valuefi/value
/parameter
parameter name=foo
  valuefee/value
/parameter
  /requestParameters
...

Don't have time to do more than that now.

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]


-
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: cookie http header in a request generator

2003-01-13 Thread SAXESS - Hussayn Dabbous
Hy,

You may look at :

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg22672.html

regards, Hussayn

Eduardo Zurita wrote:

Hello,
 
Can I use a pipeline request generator to send a cookie to a remote 
server?. The idea is to capture the cookie from the client (browser) and 
pass it as a parameter to cocoon. Then cocoon uses this cookie in its 
requests to remote server, wich serves XML data only if that cookie is 
present. I took a look at docs but I could'nt find information about.
 
Thanks in advance.
   
Eduardo.

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
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: output-encoding in HTMLGenerator, please help!

2003-01-13 Thread Joerg Heinicke
Hello Yuri,

I only can confirm the bug in HTML generator. It seems it can not read 
the KOI8-R encoded file correctly. I tested it with your html snippet 
saved to a static file.

serializer.setOutputProperty(OutputKeys.ENCODING, KOI8-R); of course 
does not help, because that's only the output. Configuring the 
serializer in the sitemap to KOI8-R works correctly, if the input file 
is not encoded in KOI8-R (and I guess in some other more or less exotic 
encodings too).
If it were a bug in the serializer, the character reference like #240; 
would be ok, because a character, that's not directly available in this 
encoding, must be expressed/referenced by such a reference.

I hope, I didn't say anything wrong ;-) Yuri, I think it's the best to 
post a bug in bugzilla at http://nagoya.apache.org/bugzilla/.

Regards,

Joerg

Yury Mikhienko wrote:
Hi all!

Can anyone help me with the following problem:

I have a KOI8-R encoded HTML document. After processing this document with HTMLGenerator, in output I have ISO-8859-1 encoded document  :((

for example
The source document:
(from URL: /test)
html
head
meta http-equiv=Content-Type content=text/html; charset=KOI8-R
titleðÒÉ×ÅÔ!/title
/head
body vlink=blue link=blue alink=red bgcolor=white
 
titleðÒÉ×ÅÔ!/title

/body
/html

 (in sitemap.xmap):
map:serializer logger=sitemap.serializer.xml mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer
  buffer-size1024/buffer-size
  encodingKOI8-R/encoding
/map:serializer

...

   map:match pattern=test
map:generate src=work/test/test.xml/
map:transform src=work/test/test-page2html.xsl/
map:serialize type=html/
   /map:match

map:match pattern=test-include
 map:generate  src=http://localhost/cocoon/test; type=html
 /map:generate
 map:serialize type=xml/
/map:match

After HTMLGenerator processing I get the:

?xml version=1.0 encoding=KOI8-R?
html xmlns=http://www.w3.org/1999/xhtml;
head

meta content=HTML Tidy, see www.w3.org name=generator/

meta content=text/html; charset=KOI8-R http-equiv=Content-Type/
!-- It Wrong --
title#240;#210;#201;#215;#197;#212;!/titletitle#240;#210;#201;#215;#197;#212;!/title
!-- !!! --
/head
body bgcolor=white alink=red link=blue vlink=blue//html

I add the following line in HTMLGenerator :
 ...
Transformer serializer = TransformerFactory.newInstance().newTransformer();
serializer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, yes);
//### NEW    
 serializer.setOutputProperty(OutputKeys.ENCODING, KOI8-R);
//
NodeList nl = processor.selectNodeList(doc, xpath);

...

But that dont solve the problem :((( .

Where I'm wrong? Please, help me!

Thanx for advise.


-
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: file generator error

2003-01-13 Thread Joerg Heinicke
Hello Geoff and Sylvain,

I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).

Using this sitemap snippet

map:match pattern=test
  map:generate 
src=http://www.moreover.com/cgi-local/page?o=xmlamp;c=Virus%20warnings/
  map:serialize type=xml/
/map:match

I have this in my core.log, where you can see that the link is resolved 
correctly. Furthermore I get the same result requesting the virus 
warnings from Cocoon and directly from www.moreover.com.

Regards,

Joerg

DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Resolving 
'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' with 
base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Resolved to systemID 
'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings'
DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Making URL from 
http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient] 
(/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings_S-xml-1
DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent] 
(/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings_S-xml-1
DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient] 
(/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent] 
(/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
DEBUG   (2003-01-13) 16:49.00:234   [core.manager] (/cocoon/joerg/test) 
Thread-9/XMLizerImpl: No mime-type for xmlizing 
http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings, 
guessing text/xml

Geoff Howard wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 3:25 AM
To: [EMAIL PROTECTED]
Subject: RE: file generator error


Hi,

It means that if I replace the '' by 'amp;', the link isn't
correct anymore.
The problem seems to be that the Tomcat web server doesn't
convert 'amp;' to '' and use 'amp;' to retrieve the web page.

Any idea?
Is it a Tomcat bug?

Thank you
Sylvain



I think I have confirmed some problem - try
http://localhost:8080/cocoon/samples/system/request.html?foo=baramp;fee=fi

it gives:
...
  requestParameters
parameter name=amp;fee
  valuefi/value
/parameter
parameter name=foo
  valuefee/value
/parameter
  /requestParameters
...

Don't have time to do more than that now.

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]




RE: file generator error

2003-01-13 Thread Sylvain.Thevoz
Hi Joerg,

I'm using Cocoon 2.1 dev but an old version (17.10.2002).

It could be the problem, no?

Geoff: which version do you use?

Regards
Sylvain

-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: lundi, 13. janvier 2003 16:56
À: [EMAIL PROTECTED]
Objet: Re: file generator error


Hello Geoff and Sylvain,

I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).

Using this sitemap snippet

map:match pattern=test
   map:generate 
src=http://www.moreover.com/cgi-local/page?o=xmlamp;c=Virus%20warnings/
   map:serialize type=xml/
/map:match

I have this in my core.log, where you can see that the link is resolved 
correctly. Furthermore I get the same result requesting the virus 
warnings from Cocoon and directly from www.moreover.com.

Regards,

Joerg

DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Resolving 
'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' with 
base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Resolved to systemID 
'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings'
DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Making URL from 
http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient] 
(/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings_S-xml-1
DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent] 
(/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings_S-xml-1
DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient] 
(/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent] 
(/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
DEBUG   (2003-01-13) 16:49.00:234   [core.manager] (/cocoon/joerg/test) 
Thread-9/XMLizerImpl: No mime-type for xmlizing 
http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings, 
guessing text/xml

Geoff Howard wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 3:25 AM
To: [EMAIL PROTECTED]
Subject: RE: file generator error


Hi,

It means that if I replace the '' by 'amp;', the link isn't
correct anymore.
The problem seems to be that the Tomcat web server doesn't
convert 'amp;' to '' and use 'amp;' to retrieve the web page.

Any idea?
Is it a Tomcat bug?

Thank you
Sylvain
 
 
 I think I have confirmed some problem - try
 http://localhost:8080/cocoon/samples/system/request.html?foo=baramp;fee=fi
 
 it gives:
 ...
   requestParameters
 parameter name=amp;fee
   valuefi/value
 /parameter
 parameter name=foo
   valuefee/value
 /parameter
   /requestParameters
 ...
 
 Don't have time to do more than that now.
 
 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]


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




NewBee - Dynamically created XML

2003-01-13 Thread Steve Millington
Being a newbee to Cocoon, I am wondering if someone can help me with a 
quick strategy to solve the following problem.

I already have a Java program that can produce XML text.

For example, I have a java Bean that has a generate() method that 
returns a String that contains a valid XML fragment.

I would like to use this generate XML in a pipeline, but I can't figure 
it out. The method of attack I used was to use XSP and have an xsp page 
something like:

?xml version=1.0 encoding=ISO-8859-1?

xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;

xsp:structure
 xsp:includecom.mystuff.MyBean/xsp:include
/xsp:structure

page
 xsp:logic
  MyBean mb = new MyBean();
  String theXML = mb.generate();
 /xsp:logic
 xsp:exprtheXML/xsp:expr
/page

/xsp:page

This does not work as I had hoped. The 'theXML' data is not placed into 
the XML tag tree, but rather is used as CDATA inside my page tag.
Is there something cunning I can do to persuade xsp that the data should 
be used to generate XML tag structure, rather than it being textual data.

Or maybe I am barking up the wrong Tree. I would write some 
implementation of Generator, but that looked a bit too complex for my 
liking since it would probably require the coding of MyBean to produce 
some sore of parsed XML rather than the text.

Thanks for any help.

Steve



-
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: XMLForm view: what is the id

2003-01-13 Thread e nio
  That attribute is the unique-id. And as you may have already
come across, the sample XMLFormWizard howto is having a problem
if you also have it defined on the same sitemap.xmap as the
other  Wizard sample and they both use the same id, therefore
make sure this id is different from the Wizard sample.  Look at
the parameter xmlform-id under map:act
type=HowtoWizardAction  block and make it unique from
map:act type=WizardAction.

Hope this helps..

--- [EMAIL PROTECTED] wrote:
 Hi all,
 
 Here the beginning of an XMLForm view called form1.xml:
 
 ?xml version=1.0 ?
 document
 xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;
 xf:form id=form-feedback view=form1 action=delete.html
 
 In the third line there is a id=form-feedback.
 What does this id means?
 
 Thank you
 Sylvain
 

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


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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: Orion 1.5.3 and cocoon2.1 - help complete deployment

2003-01-13 Thread e nio
  Well, I didn't get much additional info since last I posted. I
tried to back down to Cocoon2.0.4 source and compiled and seems
like everything work okay with Tomcat 4.1.12.  However, orion
1.5.3 is a beast to conquer. With 2.0.4 + orion 1.5.3I could not
even get anything to do with cocoon displayed anymore. Anyone
else out there had been through this path and was successful?
Can you share your tips in getting orion to work with cocoon?
Also if someone can elaborate on my original issue why it
kept looking for a  cocoon/cocoon/samples/welcome/sitemap.xmap,
ie why basically the sub mounts are not working?

Regards,
enio
--- e nio [EMAIL PROTECTED] wrote:
 
 
 Thank you for the response, yes I have looked at Steve's
 procedure, I mentioned it in step 9 of my original post.
 Someone
 also have mentioned to me that since orion is an app server I
 have to have that application.xml added to make the package
 looked like an .ear. Effectively I have to convert the war
 into
 an ear by adding a META-INF/application.xml and repackaging
 the
 whole thing as ear.
 Anyhows, I can get to the documents/ but nothing under the
 samples/ dir.  What I must do to the main sitemap.xmap or the
 one located at samples/sitemap.xmap so it does not seek for a
 cocoon/samples/welcome/sitemap.xmap ?  
 
 enio
 --- Lajos Moczar [EMAIL PROTECTED] wrote:
  Don't know if you've checked this out already, but Steve
 Punte
  has 
  Cocoon-Orion integration instructions at 
  http://www.candlelightsoftware.com/orion-cocoon.html.
  
  Regards,
  
  Lajos
  
  
  e nio wrote:
 I tried deploying cocoon2.1 which I have recently
   downloaded and compiled, it deploys fine on Tomcat
   4.1.12 but not on Orion 1.5.3.  It is only partially
   working on Orion 1.5.3, partially since I can use
   http://localhost:/  which becomes
   http://localhost:/documents/index.html which is
   the main page and I can click on all the menu items or
   the links within the page without much of a problem. 
   However if I typed in
   http://localhost:/samples/welcome which should go
   to the sample pages, I get an error instead:
   
   org.apache.cocoon.ProcessingException: Failed to load
   sitemap from
   
  
 

file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap:
org.apache.cocoon.ResourceNotFoundException: Resource
   not found.:
org.apache.excalibur.source.SourceNotFoundException:
   Resource not found
   
  
 

file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap
   
   Steps I have done are:
   1. remove from /u01/OJSP/j3ee/orion/ 
   xalan.jar,xerces.jar, and jaxp.jar and replaced those
   with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and
   xml-apis.jar accordingly.
   
   2. put cocoon.war at
   /u01/OJSP/j3ee/orion/applications/
   
   3. in orion/server.xml added application
   name=cocoon path=../applications/cocoon /
   
   4. in orion/application.xml added 
   web-module id=default path=../applications/ /
   and
   library
   path=../applications/cocoon/cocoon/WEB-INF/lib/
   library
   path=../applications/cocoon/cocoon/WEB-INF/classes/
   
   5. in orion/default-web-site.xml added
   web-app application=cocoon name=cocoon root=/
   /
   
   6. in orion/lib/  I added cocoon.jar
   
   7. I think I started orion, for cocoon.war to expand
   then stop, and restarted. Then I have to modify the
   cocoon dir to look like this
   
   orion/applications/cocoon/cocoon/- added one dir
   above, I dont know why I must, but I did.
   orion/applications/cocoon/cocoon/META-INF/application.xml
-- this is not same application.xml as in
   orion/config/, the file content is like so:
   
   ?xml version=1.0?
   !DOCTYPE application PUBLIC -//Sun Microsystems,
   Inc.//DTD J2EE Application 1.2//EN
   http://java.sun.com/j2ee/dtds/application_1_2.dtd;
   
   application
  display-nameCocoon servlet/display-name
  descriptionCocoon/description
  module
 web
web-uricocoon/web-uri
context-root//context-root
 /web
  /module
   /application
   
   8.  on orion/config/global-web-application.xml I
   commented out the servlet servlet-namexsl...
   block
   
   9. downloaded the batik-all-1.5b.2.jar per
   candlelightsotware.com to replaced the current one (I
   did verify current one can't be unjarred)
   
   10. restarted orion and browsed http://localhost:/
   result is posted above.
   
   Am I missing a step, or botched a step here? please
   help complete the steps. Why would the documents work
   but the samples does not? I surmised that it does not
   want to go to the submount, is the configs on orion
   wrong?  This same cocoon.war works on Tomcat 4.1.12
   without the application.xml modification I have to do
   for orion. Fyi, I never was able to get cocoon+orion
   before after so many tries, this time it is partial
 success.
   
   __
   Do you Yahoo!?
   

Cocoon 2.0.4 + orion 1.5.3 Not Working

2003-01-13 Thread e nio
  Per subject, it does not work, please help if possible. Forgot
to include the stack trace errors on my previous post today:

Cocoon 2 - Internal server error


type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language
Exception:
org.apache.cocoon.components.language.LanguageException: Error
compiling sitemap_xmap: Line
1928, column 58: method substitute(java.util.List,
java.lang.String) not found in class
org.apache.cocoon.www.sitemap_xmap Line 1930, column 14: method
substitute(java.util.List,
java.lang.String) not found in class
org.apache.cocoon.www.sitemap_xmap Line 1939, column 41:
method substitute(java.util.List, java.lang.String) not found in
class
org.apache.cocoon.www.sitemap_xmap Line 2008, column 39: method
substitute(java.util.List,...snip snip snip

stack-trace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error
compiling sitemap_xmap:
Line 1928, column 58:  method substitute(java.util.List,
java.lang.String) not found in class
org.apache.cocoon.www.sitemap_xmap
Line 1930, column 14:  method substitute(java.util.List,
java.lang.String) not found in class
org.apache.cocoon.www.sitemap_xmap
Line 1939, column 41:  method substitute(java.util.List,
java.lang.String) not found in class
org.apache.cocoon.www.sitemap_xmap...snip snip snip

Thanks in advance for helping me resolve.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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: Orion 1.5.3 and cocoon2.1 - help complete deployment

2003-01-13 Thread Brian Johnson
Do you have the Cocoon webapp mounted under /cocoon instead of /? All  
of the sitemaps assume that cocoon is not part of the path of the  
request.

On Monday, January 13, 2003, at 01:19  PM, e nio wrote:

  Well, I didn't get much additional info since last I posted. I
tried to back down to Cocoon2.0.4 source and compiled and seems
like everything work okay with Tomcat 4.1.12.  However, orion
1.5.3 is a beast to conquer. With 2.0.4 + orion 1.5.3I could not
even get anything to do with cocoon displayed anymore. Anyone
else out there had been through this path and was successful?
Can you share your tips in getting orion to work with cocoon?
Also if someone can elaborate on my original issue why it
kept looking for a  cocoon/cocoon/samples/welcome/sitemap.xmap,
ie why basically the sub mounts are not working?

Regards,
enio
--- e nio [EMAIL PROTECTED] wrote:



Thank you for the response, yes I have looked at Steve's
procedure, I mentioned it in step 9 of my original post.
Someone
also have mentioned to me that since orion is an app server I
have to have that application.xml added to make the package
looked like an .ear. Effectively I have to convert the war
into
an ear by adding a META-INF/application.xml and repackaging
the
whole thing as ear.
Anyhows, I can get to the documents/ but nothing under the
samples/ dir.  What I must do to the main sitemap.xmap or the
one located at samples/sitemap.xmap so it does not seek for a
cocoon/samples/welcome/sitemap.xmap ?

enio
--- Lajos Moczar [EMAIL PROTECTED] wrote:

Don't know if you've checked this out already, but Steve

Punte

has
Cocoon-Orion integration instructions at
http://www.candlelightsoftware.com/orion-cocoon.html.

Regards,

Lajos


e nio wrote:

  I tried deploying cocoon2.1 which I have recently
downloaded and compiled, it deploys fine on Tomcat
4.1.12 but not on Orion 1.5.3.  It is only partially
working on Orion 1.5.3, partially since I can use
http://localhost:/  which becomes
http://localhost:/documents/index.html which is
the main page and I can click on all the menu items or
the links within the page without much of a problem.
However if I typed in
http://localhost:/samples/welcome which should go
to the sample pages, I get an error instead:

org.apache.cocoon.ProcessingException: Failed to load
sitemap from







file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/ 
sitemap.xmap:
 org.apache.cocoon.ResourceNotFoundException: Resource
not found.:
 org.apache.excalibur.source.SourceNotFoundException:
Resource not found







file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/ 
sitemap.xmap

Steps I have done are:
1. remove from /u01/OJSP/j3ee/orion/
xalan.jar,xerces.jar, and jaxp.jar and replaced those
with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and
xml-apis.jar accordingly.

2. put cocoon.war at
/u01/OJSP/j3ee/orion/applications/

3. in orion/server.xml added application
name=cocoon path=../applications/cocoon /

4. in orion/application.xml added
web-module id=default path=../applications/ /
and
library
path=../applications/cocoon/cocoon/WEB-INF/lib/
library
path=../applications/cocoon/cocoon/WEB-INF/classes/

5. in orion/default-web-site.xml added
web-app application=cocoon name=cocoon root=/
/

6. in orion/lib/  I added cocoon.jar

7. I think I started orion, for cocoon.war to expand
then stop, and restarted. Then I have to modify the
cocoon dir to look like this

orion/applications/cocoon/cocoon/- added one dir
above, I dont know why I must, but I did.
orion/applications/cocoon/cocoon/META-INF/application.xml
 -- this is not same application.xml as in
orion/config/, the file content is like so:

?xml version=1.0?
!DOCTYPE application PUBLIC -//Sun Microsystems,
Inc.//DTD J2EE Application 1.2//EN
http://java.sun.com/j2ee/dtds/application_1_2.dtd;

application
   display-nameCocoon servlet/display-name
   descriptionCocoon/description
   module
  web
 web-uricocoon/web-uri
 context-root//context-root
  /web
   /module
/application

8.  on orion/config/global-web-application.xml I
commented out the servlet servlet-namexsl...
block

9. downloaded the batik-all-1.5b.2.jar per
candlelightsotware.com to replaced the current one (I
did verify current one can't be unjarred)

10. restarted orion and browsed http://localhost:/
result is posted above.

Am I missing a step, or botched a step here? please
help complete the steps. Why would the documents work
but the samples does not? I surmised that it does not
want to go to the submount, is the configs on orion
wrong?  This same cocoon.war works on Tomcat 4.1.12
without the application.xml modification I have to do
for orion. Fyi, I never was able to get cocoon+orion
before after so many tries, this time it is partial

success.


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com








access cocoon as component from transformer

2003-01-13 Thread Brian Johnson
I have a transformer that sends portions of an xml document through 
another sitemap pipeline and inserts the results in the current 
pipeline. Under Cocoon 2.0.4, I used the ComponentManager to lookup a 
Processor and process a new environment with the xml fragment, but 
under Cocoon 2.1 it seems there are a few more processing steps that I 
would like to have a separate component handle. I have two questions:
1. Is there a better way to accomplish what I'm trying to do?
or
2. Is there a way to lookup cocoon as a component from the transformer, 
or do I need to create my own processor component that handles the 
necessary pre- and post- opps on the Environment before it is sent to 
the PipelineProcessor?
Thanks.
Brian


-
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 2.0.4 + orion 1.5.3 Not Working

2003-01-13 Thread Steven Punte
Give it a try as identially as possible to the instructions I've posted on candlelightsoftware.com. That is, use cocoon 2.0.3, orion 1.5.4, jdk 1.3.1, etc... Once you have a working system, then step by step migrate to the versions you desire. Overall, you will spend LESS time in this manner than trying to do everything at once. Also, did Orion without cocoon and just it's default app come alive? Did the orion jsp pages operate? These are good intermeidate check points. Unfortionately, most java error messages / stack traces, are not very helpful.
 Steve Punte
e nio [EMAIL PROTECTED] wrote:
Per subject, it does not work, please help if possible. Forgotto include the stack trace errors on my previous post today:Cocoon 2 - Internal server errortype fatalmessage Language Exceptiondescription org.apache.cocoon.ProcessingException: LanguageException:org.apache.cocoon.components.language.LanguageException: Errorcompiling sitemap_xmap: Line1928, column 58: method substitute(java.util.List,java.lang.String) not found in classorg.apache.cocoon.www.sitemap_xmap Line 1930, column 14: methodsubstitute(java.util.List,java.lang.String) not found in classorg.apache.cocoon.www.sitemap_xmap Line 1939, column 41:method substitute(java.util.List, java.lang.String) not found inclassorg.apache.cocoon.www.sitemap_xmap Line 2008, column 39: methodsubstitute(java.util.List,...stack-traceorg.apache.cocoon.ProcessingException: Language Exception:org.apache.cocoon.components.language.LanguageException: Errorcompiling sitemap_xmap:Line 1928, column 58: method substitute(java.util.List,java.lang.String) not found in classorg.apache.cocoon.www.sitemap_xmapLine 1930, column 14: method substitute(java.util.List,java.lang.String) not found in classorg.apache.cocoon.www.sitemap_xmapLine 1939, column 41: method substitute(java.util.List,java.lang.String) not found in classorg.apache.cocoon.www.sitemap_xmap...Thanks in advance for helping me resolve.__Do you Yahoo!?Yahoo! Mail Plus - Powerful. Affordable. Sign up now.http://mailplus.yahoo.com-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Re: HOWTO: Cocoon 2.0.4 + Apache client-side caching

2003-01-13 Thread Bruce Robertson
Quoting SAXESS - Hussayn Dabbous [EMAIL PROTECTED]:
 
 Wouldn't it be great to place this HOWTO into the cocon wiki ?
 
 regards, hussayn
 

The HOWTO, with some additional notes from the weekend's experience,
can now be found at:

http://wiki.cocoondev.org/Wiki.jsp?page=CocoonAndApacheModRequest

Thanks to you and Tony for kindly suggesting this.

Yrs,
-- 
Bruce Robertson, 
Dept. of Classics, Mount Allison University
http://heml.mta.ca

-
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 2.0.4 + orion 1.5.3 Not Working

2003-01-13 Thread e nio
   I've done some cleaning up, so I may only have orion 1.5.3 +
jdk 1.4.0_01 + Cocoon 2.0.4.  Yes the default orion apps comes
alive under default-web-app/examples and even the sample xml/xsl
files under default-web-app/examples/xsl/.  Btw, Thank you for
posting howtos at your site. 
   Further, I wanted to know from you if the crimson.jar and
parser.jar can be removed without any conflict? And how to tell
orion to use the xalan/xerces combo instead of orion's default
parsers?

Thanks,
enio
--- Steven Punte [EMAIL PROTECTED] wrote:
 
 Give it a try as identially as possible to the instructions
 I've posted on candlelightsoftware.com.  That is, use cocoon
 2.0.3, orion 1.5.4, jdk 1.3.1, etc...  Once you have a working
 system, then step by step migrate to the versions you desire. 
 Overall, you will spend LESS time in this manner than trying
 to do everything at once.  Also, did Orion without cocoon and
 just it's default app come alive?  Did the orion jsp pages
 operate?  These are good intermeidate check points. 
 Unfortionately, most java error messages / stack traces, are
 not very helpful.
 Steve Punte
  e nio [EMAIL PROTECTED] wrote:Per subject, it does not
 work, please help if possible. Forgot
 to include the stack trace errors on my previous post today:
 
 Cocoon 2 - Internal server error
 
 
 type fatal
 
 message Language Exception
 
 description org.apache.cocoon.ProcessingException: Language
 Exception:
 org.apache.cocoon.components.language.LanguageException: Error
 compiling sitemap_xmap: Line
 1928, column 58: method substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap Line 1930, column 14:
 method
 substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap Line 1939, column 41:
 method substitute(java.util.List, java.lang.String) not found
 in
 class
 org.apache.cocoon.www.sitemap_xmap Line 2008, column 39:
 method
 substitute(java.util.List,...
 
 stack-trace
 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error
 compiling sitemap_xmap:
 Line 1928, column 58: method substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap
 Line 1930, column 14: method substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap
 Line 1939, column 41: method substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap...
 
 Thanks in advance for helping me resolve.
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 

-
 Please check that your question has not already been answered
 in the
 FAQ before posting. 
 
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




form encoding UTF-8 / ISO-8859-1

2003-01-13 Thread Martin Koeppe

Hello,

I'm using a recent developer version of cocoon 2.1 (Jan 9 2003),
tomcat 4.1.12 on SuSE Linux 8.0 Kernel 2.4.20,
and I found a problem with parsing the request parameters from a GET
request:

The browser (both Mozilla and IE) sends them as UTF-8, but cocoon
interprets them as ISO-8859-1. The problem can be seen e.g. with form
validator: if you enter a non-ASCII7 character, and there is something not
correct for the form validator within ANOTHER field, you get the first
field back changed.

I have enabled container-encoding and form-encoding in web.xml, and
set both to utf-8, but with no success (no change in behaviour).

1) Can someone help?


I looked at the source, too:
org.apache.cocoon.environment.http.HttpRequest

There are getCharacterEncoding() and setCharacterEncoding().
Whereas get...() is mapped to the servlet engine function,
set...() seems to be implemented within cocoon.

In my experiments a call to set...(UTF-8) directly before reading the
parameters within a flow script didn't work, either. (no change)
get...() always returned null.

2) Can someone explain the idea of the set...() function, in combination
with decode(), i.e. why that should work? Or: what should be done to get
it work?

3) Why doesn't get...() return the value that was set before with
set...(), i.e. why is the servlet value returned, whereas the cocoon
internal value seems to be used?


Thanks in advance

Martin Koeppe

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




access cocoon as component from transformer

2003-01-13 Thread Brian Johnson
I have a transformer that sends portions of an xml document through 
another sitemap pipeline and inserts the results in the current 
pipeline. Under Cocoon 2.0.4, I used the ComponentManager to lookup a 
Processor and process a new environment with the xml fragment, but 
under Cocoon 2.1 it seems there are a few more processing steps that I 
would like to have a separate component handle. I have two questions:
1. Is there a better way to accomplish what I'm trying to do?
or
2. Is there a way to lookup cocoon as a component from the transformer, 
or do I need to create my own processor component that handles the 
necessary pre- and post- opps on the Environment before it is sent to 
the PipelineProcessor?
Thanks.
Brian


-
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: Orion 1.5.3 and cocoon2.1 - help complete deployment

2003-01-13 Thread e nio
 However I dont quite follow why with a url of
http://localhost:/  the main sitemap.xmap matcher would then
redirect to http://localhost:/documents/index.html but yet
it would not go to samples/welcome/  

Regards,
e nio
--- Brian Johnson [EMAIL PROTECTED] wrote:
 Do you have the Cocoon webapp mounted under /cocoon instead of
 /? All  
 of the sitemaps assume that cocoon is not part of the path of
 the  
 request.
 
 On Monday, January 13, 2003, at 01:19  PM, e nio wrote:
 
Well, I didn't get much additional info since last I
 posted. I
  tried to back down to Cocoon2.0.4 source and compiled and
 seems
  like everything work okay with Tomcat 4.1.12.  However,
 orion
  1.5.3 is a beast to conquer. With 2.0.4 + orion 1.5.3I could
 not
  even get anything to do with cocoon displayed anymore.
 Anyone
  else out there had been through this path and was
 successful?
  Can you share your tips in getting orion to work with
 cocoon?
  Also if someone can elaborate on my original issue why
 it
  kept looking for a 
 cocoon/cocoon/samples/welcome/sitemap.xmap,
  ie why basically the sub mounts are not working?
 
  Regards,
  enio
  --- e nio [EMAIL PROTECTED] wrote:
 
 
  Thank you for the response, yes I have looked at
 Steve's
  procedure, I mentioned it in step 9 of my original post.
  Someone
  also have mentioned to me that since orion is an app server
 I
  have to have that application.xml added to make the package
  looked like an .ear. Effectively I have to convert the war
  into
  an ear by adding a META-INF/application.xml and repackaging
  the
  whole thing as ear.
  Anyhows, I can get to the documents/ but nothing under
 the
  samples/ dir.  What I must do to the main sitemap.xmap or
 the
  one located at samples/sitemap.xmap so it does not seek for
 a
  cocoon/samples/welcome/sitemap.xmap ?
 
  enio
  --- Lajos Moczar [EMAIL PROTECTED] wrote:
  Don't know if you've checked this out already, but Steve
  Punte
  has
  Cocoon-Orion integration instructions at
  http://www.candlelightsoftware.com/orion-cocoon.html.
 
  Regards,
 
  Lajos
 
 
  e nio wrote:
I tried deploying cocoon2.1 which I have recently
  downloaded and compiled, it deploys fine on Tomcat
  4.1.12 but not on Orion 1.5.3.  It is only partially
  working on Orion 1.5.3, partially since I can use
  http://localhost:/  which becomes
  http://localhost:/documents/index.html which is
  the main page and I can click on all the menu items or
  the links within the page without much of a problem.
  However if I typed in
  http://localhost:/samples/welcome which should go
  to the sample pages, I get an error instead:
 
  org.apache.cocoon.ProcessingException: Failed to load
  sitemap from
 
 
 
 
 

file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/
 
  sitemap.xmap:
   org.apache.cocoon.ResourceNotFoundException: Resource
  not found.:
   org.apache.excalibur.source.SourceNotFoundException:
  Resource not found
 
 
 
 
 

file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/
 
  sitemap.xmap
 
  Steps I have done are:
  1. remove from /u01/OJSP/j3ee/orion/
  xalan.jar,xerces.jar, and jaxp.jar and replaced those
  with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and
  xml-apis.jar accordingly.
 
  2. put cocoon.war at
  /u01/OJSP/j3ee/orion/applications/
 
  3. in orion/server.xml added application
  name=cocoon path=../applications/cocoon /
 
  4. in orion/application.xml added
  web-module id=default path=../applications/ /
  and
  library
  path=../applications/cocoon/cocoon/WEB-INF/lib/
  library
  path=../applications/cocoon/cocoon/WEB-INF/classes/
 
  5. in orion/default-web-site.xml added
  web-app application=cocoon name=cocoon root=/
  /
 
  6. in orion/lib/  I added cocoon.jar
 
  7. I think I started orion, for cocoon.war to expand
  then stop, and restarted. Then I have to modify the
  cocoon dir to look like this
 
  orion/applications/cocoon/cocoon/- added one dir
  above, I dont know why I must, but I did.
  orion/applications/cocoon/cocoon/META-INF/application.xml
   -- this is not same application.xml as in
  orion/config/, the file content is like so:
 
  ?xml version=1.0?
  !DOCTYPE application PUBLIC -//Sun Microsystems,
  Inc.//DTD J2EE Application 1.2//EN
  http://java.sun.com/j2ee/dtds/application_1_2.dtd;
 
  application
 display-nameCocoon servlet/display-name
 descriptionCocoon/description
 module
web
   web-uricocoon/web-uri
   context-root//context-root
/web
 /module
  /application
 
  8.  on orion/config/global-web-application.xml I
  commented out the servlet servlet-namexsl...
  block
 
  9. downloaded the batik-all-1.5b.2.jar per
  candlelightsotware.com to replaced the current one (I
  did verify current one can't be unjarred)
 
  10. restarted orion and browsed http://localhost:/
  result is posted above.
 
  Am I missing a step, or botched a step here? please
  help complete the 

Re: NewBee - Dynamically created XML

2003-01-13 Thread Cocoon User

use aggregation in site map

to create a final xml from some xml fragments

we have test many ways to solve a problem like this
from xsp (dynamic pages) to c or x include but we have a least descide
touse sitemap aggregation

stavros



On Mon, 13 Jan 2003, Steve Millington wrote:

 Being a newbee to Cocoon, I am wondering if someone can help me with a
 quick strategy to solve the following problem.

 I already have a Java program that can produce XML text.

 For example, I have a java Bean that has a generate() method that
 returns a String that contains a valid XML fragment.

 I would like to use this generate XML in a pipeline, but I can't figure
 it out. The method of attack I used was to use XSP and have an xsp page
 something like:

 ?xml version=1.0 encoding=ISO-8859-1?

 xsp:page language=java
 xmlns:xsp=http://apache.org/xsp;
 xmlns:xsp-request=http://apache.org/xsp/request/2.0;

 xsp:structure
   xsp:includecom.mystuff.MyBean/xsp:include
 /xsp:structure

 page
   xsp:logic
MyBean mb = new MyBean();
String theXML = mb.generate();
   /xsp:logic
   xsp:exprtheXML/xsp:expr
 /page

 /xsp:page

 This does not work as I had hoped. The 'theXML' data is not placed into
 the XML tag tree, but rather is used as CDATA inside my page tag.
 Is there something cunning I can do to persuade xsp that the data should
 be used to generate XML tag structure, rather than it being textual data.

 Or maybe I am barking up the wrong Tree. I would write some
 implementation of Generator, but that looked a bit too complex for my
 liking since it would probably require the coding of MyBean to produce
 some sore of parsed XML rather than the text.

 Thanks for any help.

 Steve



 -
 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: file generator error

2003-01-13 Thread Geoff Howard
don't remember seeing a bug fix related to this, but that could be it - I
use a cvs version of 2.1 from early december (12/7 I think).  Joerg, do you
get the result I do on the request generator example (Sylvain too)?

Geoff

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 13, 2003 11:07 AM
 To: [EMAIL PROTECTED]
 Subject: RE: file generator error


 Hi Joerg,

 I'm using Cocoon 2.1 dev but an old version (17.10.2002).

 It could be the problem, no?

 Geoff: which version do you use?

 Regards
 Sylvain

 -Message d'origine-
 De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
 Date: lundi, 13. janvier 2003 16:56
 À: [EMAIL PROTECTED]
 Objet: Re: file generator error


 Hello Geoff and Sylvain,

 I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).

 Using this sitemap snippet

 map:match pattern=test
map:generate
 src=http://www.moreover.com/cgi-local/page?o=xmlamp;c=Virus%20wa
 rnings/
map:serialize type=xml/
 /map:match

 I have this in my core.log, where you can see that the link is resolved
 correctly. Furthermore I get the same result requesting the virus
 warnings from Cocoon and directly from www.moreover.com.

 Regards,

 Joerg

 DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
 Thread-9/SourceResolverImpl: Resolving
 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' with
 base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
 DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
 Thread-9/SourceResolverImpl: Resolved to systemID
 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings'
 DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
 Thread-9/SourceResolverImpl: Making URL from
 http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
 DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient]
 (/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key:
 PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20w
 arnings_S-xml-1
 DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent]
 (/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file:
 PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20w
 arnings_S-xml-1
 DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient]
 (/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key:
 PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
 DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent]
 (/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file:
 PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings
 DEBUG   (2003-01-13) 16:49.00:234   [core.manager] (/cocoon/joerg/test)
 Thread-9/XMLizerImpl: No mime-type for xmlizing
 http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings,
 guessing text/xml

 Geoff Howard wrote:
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 13, 2003 3:25 AM
 To: [EMAIL PROTECTED]
 Subject: RE: file generator error
 
 
 Hi,
 
 It means that if I replace the '' by 'amp;', the link isn't
 correct anymore.
 The problem seems to be that the Tomcat web server doesn't
 convert 'amp;' to '' and use 'amp;' to retrieve the web page.
 
 Any idea?
 Is it a Tomcat bug?
 
 Thank you
 Sylvain
 
 
  I think I have confirmed some problem - try
 
 http://localhost:8080/cocoon/samples/system/request.html?foo=bara
mp;fee=fi

 it gives:
 ...
   requestParameters
 parameter name=amp;fee
   valuefi/value
 /parameter
 parameter name=foo
   valuefee/value
 /parameter
   /requestParameters
 ...

 Don't have time to do more than that now.

 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]


-
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: NewBee - Dynamically created XML

2003-01-13 Thread Geoff Howard
Check out the util logicsheet (documentation is poor - you'll have to look
at the source).  You'd find it at
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/com
ponents/language/markup/xsp/java/util.xsl?rev=1.7content-type=text/vnd.view
cvs-markup

I think you'll want to do:
...
page
   xsp:logic
MyBean mb = new MyBean();
String theXML = mb.generate();
   /xsp:logic
   util:include-expr
   util:exprxsp:exprtheXML/xsp:expr/util:expr
   /util:include-expr
/page
...

Make sure to include the util namespace in the doc:
xmlns:util=http://apache.org/xsp/util/2.0;

HTH,
Geoff Howard

 -Original Message-
 From: Steve Millington [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 13, 2003 12:11 PM
 To: [EMAIL PROTECTED]
 Subject: NewBee - Dynamically created XML


 Being a newbee to Cocoon, I am wondering if someone can help me with a
 quick strategy to solve the following problem.

 I already have a Java program that can produce XML text.

 For example, I have a java Bean that has a generate() method that
 returns a String that contains a valid XML fragment.

 I would like to use this generate XML in a pipeline, but I can't figure
 it out. The method of attack I used was to use XSP and have an xsp page
 something like:

 ?xml version=1.0 encoding=ISO-8859-1?

 xsp:page language=java
 xmlns:xsp=http://apache.org/xsp;
 xmlns:xsp-request=http://apache.org/xsp/request/2.0;

 xsp:structure
   xsp:includecom.mystuff.MyBean/xsp:include
 /xsp:structure

 page
   xsp:logic
MyBean mb = new MyBean();
String theXML = mb.generate();
   /xsp:logic
   xsp:exprtheXML/xsp:expr
 /page

 /xsp:page

 This does not work as I had hoped. The 'theXML' data is not placed into
 the XML tag tree, but rather is used as CDATA inside my page tag.
 Is there something cunning I can do to persuade xsp that the data should
 be used to generate XML tag structure, rather than it being textual data.

 Or maybe I am barking up the wrong Tree. I would write some
 implementation of Generator, but that looked a bit too complex for my
 liking since it would probably require the coding of MyBean to produce
 some sore of parsed XML rather than the text.

 Thanks for any help.

 Steve



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




[RT] [ANN] Cocoon Course

2003-01-13 Thread Michael Nash
Hello All:

It was suggested to me on the krysalis-jakarta-adv list that this would be an 
acceptable place for an announcement about a Cocoon course - please let me know if I 
should be posting elsewhere...

JGlobal Ltd. is offering an introductory training course in Cocoon with an emphasis on 
building flexible web sites, both static and dynamic, targeted at multiple end-user 
devices and displays. Discusses the concepts and advantages of separation of content 
and style, with detailed hands-on examples. Details and schedules at 
http://www.jglobalonline.com/cocoonapps.html.

Our courses are held in Freeport, Grand Bahama, just a 30 minute flight from Ft. 
Lauderdale, Florida.

This training course shows how Cocoon can be integrated into existing web solutions 
with no disruption,and how multiple devices and languages can be easily supported. 
Introduces XML and XSL as well as other templating technologies (such as JSP and 
Velocity/Webmacro), and shows how these can be put into practical use in the dynamic 
web.

Audience: Web/Java Developers - HTML experience assumed, basic XML experience helpful.

Drop us a line at [EMAIL PROTECTED] if you're interested in this or any of our 
other courses!

Regards,

Michael Nash
JGlobal Ltd.
http://www.jglobalonline.com


-
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 2.0.4 + orion 1.5.3 Not Working

2003-01-13 Thread e nio
 Is jdk1.4.0.01 compatible with cocoon2.0.4? Seems not, or
perhaps this is known issue and I just can't recall.  Anyhow, I
went looking for a jdk1.3.1 on my system, and used it to
recompile cocoon.2.0.4. It works great with Tomcat4.1.12 (not
all samples work but its okay) but same  war file (deployed per
candlelightsoftware.com intructions) is also working now.
However, some samples work in Tomcat but not in orion, an
example is jsp in cocoon.  It could not find
cocoon/samples/jsp/welcome.htm. Really strange.  
   Anyhow for Steve, by using id=defaultWebApp this makes the
default localhost:/ points to cocoon and the sample code
that comes with orion is basically inaccessable because of this
mapping?

Regards,
e nio
--- Steven Punte [EMAIL PROTECTED] wrote:
 
 Give it a try as identially as possible to the instructions
 I've posted on candlelightsoftware.com.  That is, use cocoon
 2.0.3, orion 1.5.4, jdk 1.3.1, etc...  Once you have a working
 system, then step by step migrate to the versions you desire. 
 Overall, you will spend LESS time in this manner than trying
 to do everything at once.  Also, did Orion without cocoon and
 just it's default app come alive?  Did the orion jsp pages
 operate?  These are good intermeidate check points. 
 Unfortionately, most java error messages / stack traces, are
 not very helpful.
 Steve Punte
  e nio [EMAIL PROTECTED] wrote:Per subject, it does not
 work, please help if possible. Forgot
 to include the stack trace errors on my previous post today:
 
 Cocoon 2 - Internal server error
 
 
 type fatal
 
 message Language Exception
 
 description org.apache.cocoon.ProcessingException: Language
 Exception:
 org.apache.cocoon.components.language.LanguageException: Error
 compiling sitemap_xmap: Line
 1928, column 58: method substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap Line 1930, column 14:
 method
 substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap Line 1939, column 41:
 method substitute(java.util.List, java.lang.String) not found
 in
 class
 org.apache.cocoon.www.sitemap_xmap Line 2008, column 39:
 method
 substitute(java.util.List,...
 
 stack-trace
 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error
 compiling sitemap_xmap:
 Line 1928, column 58: method substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap
 Line 1930, column 14: method substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap
 Line 1939, column 41: method substitute(java.util.List,
 java.lang.String) not found in class
 org.apache.cocoon.www.sitemap_xmap...
 
 Thanks in advance for helping me resolve.
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 

-
 Please check that your question has not already been answered
 in the
 FAQ before posting. 
 
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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 2.0.4 + orion 1.5.3 Not Working

2003-01-13 Thread Steven Punte
Enio:
 I think 1.4.0 with Cocoon has "some" issues, but the basic stuff works.
 Yes, you should be able to remove crimson.jar and parser.jar. Orion doesn't use them specifically, only apps do.
 steve
e nio [EMAIL PROTECTED] wrote:
I've done some cleaning up, so I may only have orion 1.5.3 +jdk 1.4.0_01 + Cocoon 2.0.4. Yes the default orion apps comesalive under default-web-app/examples and even the sample xml/xslfiles under default-web-app/examples/xsl/. Btw, Thank you forposting "howtos" at your site. Further, I wanted to know from you if the crimson.jar andparser.jar can be removed without any conflict? And how to tellorion to use the xalan/xerces combo instead of orion's defaultparsers?Thanks,enio--- Steven Punte <[EMAIL PROTECTED]>wrote:  Give it a try as identially as possible to the instructions I've posted on candlelightsoftware.com. That is, use cocoon 2.0.3, orion 1.5.4, jdk 1.3.1, etc... Once you have a working system, then step by step migrate to the versions you desire.  Overall, you will spend LESS time in this manner than trying to do everything at once. Also, did Orion without cocoon and just it's default app come alive? Did the orion jsp pages operate? These are good intermeidate check points.  Unfortionately, most java error messages / stack traces, are not very helpful. Steve Punte e nio <[EMAIL PROTECTED]>wrote:Per subject, it does not work, please help if possible. Forgot to include the stack trace errors on my previous post today:  Cocoon 2 - Internal server error   type fatal  message Language Exception  description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 1928, column 58: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 1930, column 14: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 1939, column 41: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 2008, column 39: method substitute(java.util.List,...  stack-trace  org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 1928, column 58: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 1930, column 14: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 1939, column 41: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap...  Thanks in advance for helping me resolve.  __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting.   To unsubscribe, e-mail:  For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now__Do you Yahoo!?Yahoo! Mail Plus - Powerful. Affordable. Sign up now.http://mailplus.yahoo.com-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Re: Cocoon 2.0.4 + orion 1.5.3 Not Working

2003-01-13 Thread Steven Punte
I have found a few problems with 1.4.0, but havn't worked them out yet, instead just stayed with 1.3.1. Orion requires you copy the tools.jar from whatever JDK installation you have to it's home directory in order for JSP to work. In this manner, it is having you supply the appropriate java compiler. 
Yes, my instructions are intented to move the default orion web app out of the way and instead replace it with the top of the cocoon default app. This is intentional. But lots of arrangements are possible. See Orion docs for more details.
steve

e nio [EMAIL PROTECTED] wrote:
Is jdk1.4.0.01 compatible with cocoon2.0.4? Seems not, orperhaps this is known issue and I just can't recall. Anyhow, Iwent looking for a jdk1.3.1 on my system, and used it torecompile cocoon.2.0.4. It works great with Tomcat4.1.12 (notall samples work but its okay) but same war file (deployed percandlelightsoftware.com intructions) is also working now.However, some samples work in Tomcat but not in orion, anexample is jsp in cocoon. It could not findcocoon/samples/jsp/welcome.htm. Really strange. Anyhow for Steve, by using id="defaultWebApp" this makes thedefault "localhost:/" points to cocoon and the sample codethat comes with orion is basically inaccessable because of thismapping?Regards,e nio--- Steven Punte <[EMAIL PROTECTED]>wrote:  Give it a try as identially as possible to the instructions I've posted on candlelightsoftware.com. That is, use cocoon 2.0.3, orion 1.5.4, jdk 1.3.1, etc... Once you have a working system, then step by step migrate to the versions you desire.  Overall, you will spend LESS time in this manner than trying to do everything at once. Also, did Orion without cocoon and just it's default app come alive? Did the orion jsp pages operate? These are good intermeidate check points.  Unfortionately, most java error messages / stack traces, are not very helpful. Steve Punte e nio <[EMAIL PROTECTED]>wrote:Per subject, it does not work, please help if possible. Forgot to include the stack trace errors on my previous post today:  Cocoon 2 - Internal server error   type fatal  message Language Exception  description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 1928, column 58: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 1930, column 14: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 1939, column 41: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 2008, column 39: method substitute(java.util.List,...  stack-trace  org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 1928, column 58: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 1930, column 14: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap Line 1939, column 41: method substitute(java.util.List, java.lang.String) not found in class org.apache.cocoon.www.sitemap_xmap...  Thanks in advance for helping me resolve.  __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting.   To unsubscribe, e-mail:  For additional commands, e-mail: - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now__Do you Yahoo!?Yahoo! Mail Plus - Powerful. Affordable. Sign up now.http://mailplus.yahoo.com-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Trouble connecting StreamGenerator to HSSFSerializer

2003-01-13 Thread Eric Simmerman
I'm having trouble combining two Cocoon samples into the same mapping.
I setup this simple mapping using the Stream and POI examples in Cocoon
2.0.4:

   map:match pattern=convert
 map:generate type=stream/
 map:serialize type=xls/
   /map:match

When I fill the Stream example's form (OrderPage.xml modified to
action=convert), with the content from the POI's sample
(hypothetical-sales.xml) and POST it, I get:


type fatal
message Exception in StreamGenerator.generate()
description org.apache.cocoon.ProcessingException: Exception in
StreamGenerator.generate(): java.lang.NullPointerException
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.apache.cocoon.ProcessingException: Exception in
StreamGenerator.generate(): java.lang.NullPointerException
at
org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:1
64)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)


I was of course hoping that the POSTed XML from hypothetical-sales.xml would
be serialized into XLS and fed back to me as the response. Can anyone
explain why I receive the NullPointer, and/or help me achieve my desired
result?

Thanks,
-Eric Simmerman


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




i18n again!!!!

2003-01-13 Thread Hong Gia Dinh



Hi 
all,
I know 
that we can change language from text, button, attribute 

now if 
i want to change image according to languages!!! because some of my images 
having the text on it!! how can i do that?? with cocoon 2.0.3 
??
because i cant use i18n:when in cocoon 2.0.3 how can i change 
image as well as i change the text 

Thanks 
a lot
GD


i18n again

2003-01-13 Thread Hong Gia Dinh
Title: i18n again





Hi all,


I have rather large messages files! Can i have any way to define many messages for each language??? 
My messages_en.xml contains too many data! and i dont want a too large message, because it is very hard to managed and supervised! now i want to separate into number of messages such as messages_en_1.xml messages_en_1_1.xml . . . . can i do something like that or can i separate into small files to manage clearer?

Thanks a lot in advance
GD





i18n:when ????????????

2003-01-13 Thread Hong Gia Dinh
Title:  i18n:when 





Can you all tell me where i18n:when is implemented???


in which version of Cocoon??? i am using cocoon 2.0.3 but cant find and use it!
Thanks a lot



-Original Message-
From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
Sent: 13 October 2002 16:48
To: '[EMAIL PROTECTED]'
Subject: RE: i18n:when



 From: Alex Romayev [mailto:[EMAIL PROTECTED]] 
 
 Hello,
 
 Just wanted to follow through on the discussion from a
 couple of month back. There was a proposal that
 Konstantin was going to work on to implement i18:when
 tag as an alternative to using message files, so that
 you could have in the same file something like:


Yes, that's true. 
And it was implemented by Matthieu Sozeau as we discussed. As the
implementation was done long time ago (several months) it needs
synchronization with the current version of Cocoon, but I hadn't time to do
it. Though, if anybody needs the full implementation with updated samples
and dictionary handling, just let me know (kpiroumian at apache dot org).


 
 page
 title
 i18:when locale='en'hello/i18n:when
 i18n:when locale='fr'bonjour/i18n:when
 /title
 /page


But note, that this is not an alternative to message bundles, but an
addition. You can still have all the pages generated from a bundle, but
provide some specific messages for a particular language. 


 
 Now here is my question (I'm making some assumptions
 here, so please correct me if I'm wrong):
 
 I18nTransformer is not cacheable, which generally is
 not a problem, since it is used as one of the last
 transformers in a pipeline, when most of the
 heavy-duty processing is already done. Now, this
 might not be true for i18n:when tag, which is most
 likely to be the first step in a pipeline and hence
 the rest of the pipleline is not going to get cached. 
 Also note, that there is no reason why the result of
 i18n:when could not be cached.


So seems that i18n transformer can be cached based on the selected locale
and cache validity of the used dictionary. I have to think about it, but
again I have absolutely no time to work on it, sorry.


 
 Is this concern valid or am I missing something?


Seems reasonable and not only for the i18n:when case.


Regards,
 Konstantin


 
 Cheers,
 -Alex
 
 -
 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: Useful directory structure (was AW: i18n with sub sitemaps)

2003-01-13 Thread Hong Gia Dinh
Title: RE: Useful directory structure (was AW: i18n with sub sitemaps)





Hi Piroumian


I found that you declare that :




One thing I'd do for sure: move some of the used resources to the WEB-INF,
so they would not be accidentally sent to the user. So, WEB-INF can look
like:
WEB-INF\
 translations\
  common.xml
  common_de.xml
  ...
  search.xml
  search_de.xml
  ...
 validation\
  rules.xml
  ... 
etc.


I understand that Cocoon allows to place _all_ the webapp resources inside
of the WEB-INF and define paths in the sitemap, but I don't like this
approach and like to see all webapp contents in their usual places (/,
images/, css/, etc.). 


But for the translations, validation rules, etc. - they are some kind of a
meta-data that are used by several componenets to process the response and
they are never referred from the user's browser - so the best place for them
is a sub-directory of WEB-INF.


--
 Konstantin Piroumian


you used common_de and search_de so how to declare in the sitemap?? because as fas as i read sitemap just allows us to declare one messages name!!!

i think i want this structure much
Thanks a lot





'\n' character in cocoon output stream

2003-01-13 Thread Yury Mikhienko
Hi all!

Ho to I can insert the '\n' character (0x0a)  in cocoon output stream (in serialized 
document)?
I wish this symbol add  in transformation step (if it possible).

Thanx for advise.

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

-
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: i18n again!!!!

2003-01-13 Thread Kim Jelmoni

you can for example:

in xml :

?xml version=1.0 encoding=UTF-8?

imageheader xmlns:i18n=http://apache.org/cocoon/i18n/2.0;
  topmenu name=HEADER_CHLOCALE_G i18n:attr=name
target=groups.html?locale=de_CH height=7 width=10/
  topmenu name=HEADER_CHLOCALE_F i18n:attr=name
target=groups.html?locale=fr_CH height=7 width=11/
  topmenu name=HEADER_CHLOCALE_E i18n:attr=name
target=groups.html?locale=en_CH height=7 width=11/
/imageheader

and in message catalog file :

message key=HEADER_CHLOCALE_Gimages/de.gif/message


On Tue, 2003-01-14 at 04:57, Hong Gia Dinh wrote:
 Hi all,
 I know that we can change language from text, button, attribute 
 now if i want to change image according to languages!!! because some
 of my images having the text on it!! how can i do that?? with cocoon
 2.0.3 ??
 because i cant use i18n:when in cocoon 2.0.3 how can i change image
 as well as i change the text 
  
 Thanks a lot
 GD


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