Unable to find transformer handler

2002-10-10 Thread Billy Ng



Hi 
folks,I am very new to cocoon. I follow the how-to to install 
cocoon on my Linuxbox. I can see the Cocoon's home page on 
runninghttp://localhost:8080/cocoon. However, when I try to run the hello.rtf 
withadding the following definition in sitemap.xmapmap:match 
pattern="hello.rtf"map:generate 
src="docs/samples/hello-page.xml"/map:transform 
src="stylesheets/page/simple-page2fo.xsl"/map:serialize 
type="fo2rtf"//map:matchI got the following error, what 
did I do wrong? I am using Tomcat 4.0.3,and J2SE 
1.4org.apache.cocoon.ProcessingException: Unable to get transformer 
handler 
forstylesheets/page/simple-page2fo.xsl:org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: 
Exception increating Transform 
Handleratorg.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:338)atorg.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:390)atorg.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:307)atorg.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484)atorg.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)atorg.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)atorg.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:162)atorg.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)atorg.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)atorg.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)atorg.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)atorg.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)atorg.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)at 
org.apache.cocoon.Cocoon.process(Cocoon.java:595)at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1034)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)atorg.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)atorg.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)atorg.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)atorg.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)atorg.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)atorg.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)at 
java.lang.Thread.run(Thread.java:536)Caused by: 
org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException:Exception in 
creating Transform 

example in the Cocoon book

2002-10-10 Thread Sylvain.Thevoz

Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example in it 
doesn't work.

The pipeline fragment is:

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/
8. map:read src=download/{file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/ 
13./map:act
14./map:match
15./map:pipeline

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

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]




Re: example in the Cocoon book

2002-10-10 Thread Bertrand Delacretaz

On Thursday 10 October 2002 10:04, [EMAIL PROTECTED] wrote:
. . .
 How to check (debug) the value {file}?
. . .

I cannot help with your specific problem, but have you looked at the cocoon 
logs under WEB-INF/logs?

They should tell you what's happening, maybe after configuring the log levels 
in logkit.xconf.

Sometimes (but in this case I doubt it) you will also find info in the tomcat 
logs.

-Bertrand

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

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




DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML

2002-10-10 Thread Roger Ting

Hi thx for your response.

The funny thing is below
What works:
1. i read the XSP that uses ESQL with serverpages generator it will generate 
the xml file.
2. I save the xml file generated using the the XSP.
3. Do transformation with Xalan or Saxon (Tried both) and the output
is correct.

What doesn't works:
1. I read the same XSP.
2. pipe it into a XSLT transformer.
3. Serialize it in SVG or XML.
4. 60% of the output is gone.

2 processes are the same except for the first i save it before i transform 
and serialize the xml file generated from the XSP with ESQL.
The second process i pipe the output from XSP directly into the XSLT
transformer and it drop most of the output. Another user also faces
the same problem. We are using 2 different computers.

===HERE IS MY XSLT =
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:icr=http://www.cs.mu.oz.au/340/s340gf;
xmlns:svg=http://www.w3.org/2000/svg;

xsl:output method=xml indent=yes/
xsl:template match=icr:report
svg width=300 height=300 
titleThe graphs for the dailyly section /title
g transform=translate(100, 100)
xsl:apply-templates select=icr:fall/
/g
/svg
/xsl:template

xsl:template match=icr:fall
g transform= translate(-20,-80) scale(2,2)
text 
xsl:attribute name=font-size
xsl:value-of select=6 /
/xsl:attribute
Patient falls record
/text
/g

g transform=translate(0,100) scale(2,-2) 
!--drawing the axes--
   line x1=0 y1=0 x2=140 y2=0 style=stroke: black;/
   line x1=0 y1=0 x2=0 y2=80 style=stroke: black;/
/g

 !--- Doesn't transform from here onwards ---
xsl:for-each select=icr:monthly
xsl:call-template name=draw-bar 
xsl:with-param name=n select=@numerator/
xsl:with-param name=d select=@denominator/
xsl:with-param name=count select=position()/
xsl:with-param name=threshold select=@threshold/
xsl:with-param name=next 
select=following-sibling::icr:monthly/attribute::numerator/
xsl:with-param name=last select=count(icr:monthly)/
/xsl:call-template
xsl:call-template name=write-text 
xsl:with-param name=count select=position()/
/xsl:call-template
/xsl:for-each

/xsl:template

xsl:template name=draw-bar
xsl:param name=n/
xsl:param name=d/
xsl:param name=count/
xsl:param name=threshold/
xsl:param name=next/
xsl:param name=last/


g transform=translate(0,100) scale(2,-2) 
!-- these are the bars in order --
rect style=fill:none; stroke:black; stroke-width=1
xsl:attribute name=y
0
/xsl:attribute
xsl:attribute name=x
xsl:value-of select=$count*5/
/xsl:attribute
xsl:attribute name=width
5
/xsl:attribute
xsl:attribute name=height
xsl:value-of select=20*($n div $d) /
/xsl:attribute
/rect

rect style=fill:red;stroke:red;
xsl:attribute name=y
xsl:value-of select=$threshold/
/xsl:attribute
xsl:attribute name=x
xsl:value-of select=$count*5+1/
/xsl:attribute
xsl:attribute name=width
2
/xsl:attribute
xsl:attribute name=height
2
/xsl:attribute
/rect

rect style=fill:blue;stroke:blue;
xsl:attribute name=yxsl:value-of 
select=$n*10//xsl:attribute
xsl:attribute name=xxsl:value-of 
select=$count*5+1//xsl:attribute
xsl:attribute name=width
2
/xsl:attribute

Re: example in the Cocoon book

2002-10-10 Thread Bertrand Delacretaz

On Thursday 10 October 2002 10:35, [EMAIL PROTECTED] wrote:
 Here you have the root.log:
 org.apache.cocoon.ResourceNotFoundException: 
 Resource not found 
 file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/download
at 
org.apache.cocoon.components.source.URLSource.getInputStream(URLSource.java:152)
at 
org.apache.cocoon.reading.ResourceReader.generate(ResourceReader.java:134)
at
. . .

Looks like the ResourceReader is trying to read 
file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/download instead of your cox.bmp 
file?

To isolate the problem, I'd try replacing
map:read src=download/{file}/
with
map:read src=download/cox.bmp/

To find out whether the problem lies in ResourceReader or in the sitemap 
variable substition.

-Bertrand

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

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




RE: example in the Cocoon book

2002-10-10 Thread Sylvain.Thevoz

So, it works if I replace {file} by the name of the file.

We can say that is a value substitution problem!?

Sylvain

-Message d'origine-
De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 10:46
À: Thévoz Sylvain, IT-DCS-CPS-CLI-DAR
Cc: [EMAIL PROTECTED]
Objet: Re: example in the Cocoon book


On Thursday 10 October 2002 10:35, [EMAIL PROTECTED] wrote:
 Here you have the root.log:
 org.apache.cocoon.ResourceNotFoundException: 
 Resource not found 
 file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/download
at 
org.apache.cocoon.components.source.URLSource.getInputStream(URLSource.java:152)
at 
org.apache.cocoon.reading.ResourceReader.generate(ResourceReader.java:134)
at
. . .

Looks like the ResourceReader is trying to read 
file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/download instead of your cox.bmp 
file?

To isolate the problem, I'd try replacing
map:read src=download/{file}/
with
map:read src=download/cox.bmp/

To find out whether the problem lies in ResourceReader or in the sitemap 
variable substition.

-Bertrand

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

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




Re: example in the Cocoon book

2002-10-10 Thread Bertrand Delacretaz

On Thursday 10 October 2002 11:02, [EMAIL PROTECTED] wrote:
 So, it works if I replace {file} by the name of the file.
 We can say that is a value substitution problem!?

I think so, from your log we saw that map:read src=download/{file}/ 
translates to download/, but I don't know enough about this substitution 
mechanism to tell you what the problem is. 
Maybe you need to use {../file}? (just a wild guess)

-Bertrand

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

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




RE: example in the Cocoon book

2002-10-10 Thread Matthew Langham

Hi,

guess what - this is a bug in the book :).


8. map:read src=download/{file}/


That line should read:

   map:read src=download/{../file}/

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/
8. map:read src=download/{file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/
13./map:act
14./map:match
15./map:pipeline

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

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]


-
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: example in the Cocoon book

2002-10-10 Thread Sylvain.Thevoz

Thank you Matthew, but could you explain why!?

Is the line 7. map:parameter name=url value=download/{file}/  is correct?

Thank you
Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:17
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


Hi,

guess what - this is a bug in the book :).


8. map:read src=download/{file}/


That line should read:

   map:read src=download/{../file}/

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/
8. map:read src=download/{file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/
13./map:act
14./map:match
15./map:pipeline

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

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]


-
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: example in the Cocoon book

2002-10-10 Thread Matthew Langham


Thank you Matthew, but could you explain why!?

Sure :-)

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/

8. map:read src=download/{../file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/
13./map:act
14./map:match
15./map:pipeline

This has to do with the nesting of components. Each time a component is
nested inside another one we need to go up the tree. Notice how the
resource-exists action is nested inside the request action. Also notice
that the Reader is inside the resource-exists action.

Ok, now - the map:parameter attribute of the resource-exists action
belongs to it - so it is at the same level and we can use {file} to
access the parameter that the request action provides to the sitemap.

The Reader is however underneath or inside the resource-exists action,
so it needs to go up one step to access the same file parameter.

This was the non-programmer explanation. Carsten or others can provide a
perhaps more exact explanation.

Matthew















-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Thank you Matthew, but could you explain why!?

Is the line 7. map:parameter name=url value=download/{file}/  is
correct?

Thank you
Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:17
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


Hi,

guess what - this is a bug in the book :).


8. map:read src=download/{file}/


That line should read:

   map:read src=download/{../file}/

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/
8. map:read src=download/{file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/
13./map:act
14./map:match
15./map:pipeline

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

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]


-
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: example in the Cocoon book

2002-10-10 Thread Joerg Heinicke

In line 7 the context still has not changed, your passing a parameter *to* 
the action, but your still have not changed *the context to* the action. 
While in line 8 context has changed.

Regards,

Joerg

[EMAIL PROTECTED] wrote:
 Thank you Matthew, but could you explain why!?
 
 Is the line 7. map:parameter name=url value=download/{file}/  is correct?
 
 Thank you
 Sylvain
 
 -Message d'origine-
 De: Matthew Langham [mailto:[EMAIL PROTECTED]]
 Date: jeudi, 10. octobre 2002 11:17
 À: [EMAIL PROTECTED]
 Objet: RE: example in the Cocoon book
 
 
 Hi,
 
 guess what - this is a bug in the book :).
 
 
 8. map:read src=download/{file}/
 
 
 That line should read:
 
map:read src=download/{../file}/
 
 Matthew
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 10:05 AM
 To: [EMAIL PROTECTED]
 Subject: example in the Cocoon book
 
 
 Hello,
 
 I'm reading the Cocoon book written by Matthew and Carsten and one example
 in it doesn't work.
 
 The pipeline fragment is:
 
 1. map:pipeline
 2. map:match pattern=download
 3. map:act type=request
 4. map:parameter name=parameters value=true/
 6. map:act type=resource-exists
 7. map:parameter name=url value=download/{file}/
 8. map:read src=download/{file}/
 9. /map:act
 10.map:generate src=filenotfound.xml/
 11.map:transform src=filenotfound2html.xsl/
 12.map:serialize/
 13./map:act
 14./map:match
 15./map:pipeline
 
 All seem to work except the line 8.
 Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
 It returns a HTTP error 404 (file not found).
 
 Anyone has an idea?
 How to check (debug) the value {file}?
 
 Thank you
 Sylvain

-- 

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

VIRBUS hat jetzt als erster deutscher Softwarehersteller die Zertifizierung 
für den 3D Secure-Authentifizierungsstandard Verified by Visa erhalten. 
Details unter 
http://www.virbus.de/de/press/pressemitteilung/20020828_verified_by_VISA.


-
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: example in the Cocoon book

2002-10-10 Thread Bert Van Kets

What's the page of this book bug?
I want to correct the bug in the book itself.

Bert

At 11:17 10/10/2002 +0200, you wrote:
Hi,

guess what - this is a bug in the book :).

 
8. map:read src=download/{file}/


That line should read:

map:read src=download/{../file}/

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/
8. map:read src=download/{file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/
13./map:act
14./map:match
15./map:pipeline

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

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]


-
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: example in the Cocoon book

2002-10-10 Thread Matthew Langham

The example is at the bottom of 117. The error is at the top of 118.

Matthew



-Original Message-
From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:32 AM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


What's the page of this book bug?
I want to correct the bug in the book itself.

Bert

At 11:17 10/10/2002 +0200, you wrote:
Hi,

guess what - this is a bug in the book :).

 
8. map:read src=download/{file}/


That line should read:

map:read src=download/{../file}/

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/
8. map:read src=download/{file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/
13./map:act
14./map:match
15./map:pipeline

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line
8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

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]


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




Convert XMLFragment to DOM node

2002-10-10 Thread Robert Onslow


I'm using jre 1.4.1. I have an xsp which captures a fragment of xml, and 
passes it to a class:

capture:fragment-variable name=frag
foobar//foo
/capture:fragment-variable

xsp:logic
MyClass.doSomething(frag);
/xsp:logic

This passes an XMLFragment which I convert to a node:

public class MyClass {

public static void doSomething(XMLFragment frag){

Node node = frag2Node(frag);
...
}
 
public Node frag2Node(XMLFragment frag){

Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDo
cument();
Node dummy = doc.createElement(dummy);
doc.appendChild(dummy);
frag.toDOM(dummy);
return dummy.getFirstChild();
}

When Cocoon runs, I get an exception in the call to frag.toDOM(dummy)
It is a null pointer exception 

java.lang.NullPointerException
at org.apache.xalan.transformer.TransformerIdentityImpl.flushStartDoc(T
ransformerIdentityImpl.java:885)
at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Tr
ansformerIdentityImpl.java:1016)
at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.j
ava:130)
at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.j
ava:130)
at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLB
yteStreamInterpreter.java:126)
at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserializ
e(XMLByteStreamInterpreter.java:102)
at org.apache.cocoon.components.sax.XMLByteStreamFragment.toSAX(XMLByte
StreamFragment.java:100)
at org.apache.cocoon.xml.AbstractSAXFragment.toDOM(AbstractSAXFragment.
java:76)

Can anyone see what the problem is - I've searched in vain!
Alternatively, is there a more elegant way of converting the XMLFragment 
passed by Cocoon as a parameter into a DOM node?!

Robert Onslow




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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]




xsp-request:get-parameter-values - Java String[]

2002-10-10 Thread Christian Joelly

Hello!

i want to write the values from an request parameter to a String array,
but it seem that this task is too complex for my brain ;-) can anybody
tell me how to do that?

String asKst[] = xsp-request:get-parameter-values name=kst/;

doesn't work...

thx, Chris

its Cocoon 2.0.1...

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz

-- Support your government, give Echelon/Carnivore something to parse --
AMTAS ATMD ATSC Abdullah Allah  communist CIA DD2-N DISA DoD GRU Gregori
Irak  Iran KGB  Kurdish LSD  NATO NSTD  Natasha  ORD RTEM  Russia  STRAP
Saddam Hussein  TSP  Yugoslavia   attack  bank  bomb  classfield  cocain
compromise defense  democracy  destroy  destruct  detonator  directorate
elections enforce extasy force  foreign embassy government grass hashish
heroin   illegal  information   international  military systems  missile
million dollars   nuclear  policital   pot  power   presidental  project
restricted data  revolution  rule the world sensitive  smuggle spy steal
system  takeover  terrorist  top-secret  warmod  warrior-T  weapon  weed





msg19039/pgp0.pgp
Description: PGP signature


[final] Re: cocoon second instance

2002-10-10 Thread Cocoon User

the only thing i have to do is  to put cocoon-something.war into webapp
directory and restart tomcat

now i have as many instances of cocoon i want

i access them

http://localhost:8080/cocoon/
http://loclahost:8080/cocoo-new/
..
..

thanks

Kounis Stavros




On Wed, 9 Oct 2002, Vadim Gritsenko wrote:

 Barbara Post wrote:

 Or use an unzipping tool to deploy/unzip the .war then copy the content
 where you want with any name you want for the containing folder.
 Then modify Tomcat's server.xml : add a new context path.
 

 Last step is not necessary. Just put cocoon-new.war into webapps, or
 unzip into webapps/cocoon-new - either way, you will get second cocoon
 deployed in http://localhost:port/cocoon-new/

 Vadim


 Just my 2 cents ;-)
 
 - Original Message -
 From: Katzigas Dimitris [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 02, 2002 1:09 PM
 Subject: Re: cocoon second instance
 
 
 
 
 Ok got it.
 
 I think that tomcat creates a subdirectory under webapps/ by the name of
 
 
 the
 
 
 war file that you deploy.
 e.g. If you deploy the cocoon-new.war i think that it will create a
 cocoon-new/ subdirectory under webapps/.
 I haven't test it with cocoon but works with othes war files.
 
 Good Luck.
 
 Dimitris Katzigas.
 
 - Original Message -
 From: Cocoon User [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 02, 2002 1:58 PM
 Subject: Re: cocoon second instance
 
 
 
 
 yep but i dont want to touch my working installation (i can not modify
 something that work in production machine)
 
 
 On Wed, 2 Oct 2002, Katzigas Dimitris wrote:
 
 
 
 Stavro
 
 Rename the 2.0.1rc installation directory from /webapps/cocoon to
 /webapps/cocoon.old
 then copy the new war file as it is in the webapps/ directory and
 
 
 restart
 
 
 Tomcat.
 Your old cocoon instalation won't be damaged, but you can't use it
 
 
 anymore
 
 
 unless you rename again
 the directory /webapps/cocoon.old to /webapps/cocoon.
 
 Dimitris Katzigas
 
 
 - Original Message -
 From: Cocoon User [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 02, 2002 1:45 PM
 Subject: cocoon second instance
 
 
 
 
 hi folks
 
 
 i have cocoon 2.0.1rc working into omcats /web-app
 
 i want to test cocoon 2.0.3 binary distribution
 without to upgrade or cancel my old installation
 
 
 can i put cocoon's 2.0.3 cocoon.war into /web-app as cocoon_new.war
 
 and restart tomcat
 
 how will tomcat then deploy this .war
 
 is it possible tomcat overwrite my old (but working) cocoon
 
 
 installation?
 
 
 
 thnx
 
 kounis stavros
 
 




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




Writing a custom transformer

2002-10-10 Thread simo kauranen

Hi,

Maybe I'm a little dumb but I can't figure out from
the source codes how I should write my own
transformer. Several questions remain:

Which functions should a transformer implement?

Which function takes in the SAX stream and which emits
it forward and how? 

Where the changes to the SAX are made? I went through
among others the TraxTransformer source code but I
couldn't find the line where the xslt transformation
was made?

Are loggers necessary for a transformer?

Could someone help with these? Thanks!


Simo K.


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.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]




Antwort: accessing Authentication Session Context with java

2002-10-10 Thread michael_hampel

Hello,

  I found our problem...


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




squid + apache + resin + cocoon

2002-10-10 Thread Fabien Gatelier

Hi,

I'm new to cocoon and squid.
I'm trying to configure a squid in front of apache and resin for my cocoon
application.
Can someone provide me a common squid.conf file for cocoon ?
I already configured squid as a web accelerator.
Everything is fine ...
But in the access.log file i just have TCP_MISS (most of the time 304) and
DIRECT, so i think that nothing is cached.
I do not prefer to post this to the squid list, i hope that this question is
cocoon enough.

Fabien.


-
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: example in the Cocoon book

2002-10-10 Thread Sylvain.Thevoz

Thank you Matthew for your explanation, it works fine.
And your book is really the best reference for Cocoon I have seen.

Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:33
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book



Thank you Matthew, but could you explain why!?

Sure :-)

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/

8. map:read src=download/{../file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/
13./map:act
14./map:match
15./map:pipeline

This has to do with the nesting of components. Each time a component is
nested inside another one we need to go up the tree. Notice how the
resource-exists action is nested inside the request action. Also notice
that the Reader is inside the resource-exists action.

Ok, now - the map:parameter attribute of the resource-exists action
belongs to it - so it is at the same level and we can use {file} to
access the parameter that the request action provides to the sitemap.

The Reader is however underneath or inside the resource-exists action,
so it needs to go up one step to access the same file parameter.

This was the non-programmer explanation. Carsten or others can provide a
perhaps more exact explanation.

Matthew















-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Thank you Matthew, but could you explain why!?

Is the line 7. map:parameter name=url value=download/{file}/  is
correct?

Thank you
Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:17
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


Hi,

guess what - this is a bug in the book :).


8. map:read src=download/{file}/


That line should read:

   map:read src=download/{../file}/

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. map:pipeline
2. map:match pattern=download
3. map:act type=request
4. map:parameter name=parameters value=true/
6. map:act type=resource-exists
7. map:parameter name=url value=download/{file}/
8. map:read src=download/{file}/
9. /map:act
10.map:generate src=filenotfound.xml/
11.map:transform src=filenotfound2html.xsl/
12.map:serialize/
13./map:act
14./map:match
15./map:pipeline

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

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]


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

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


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

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


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

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


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

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




RE: Writing a custom transformer

2002-10-10 Thread Piroumian Konstantin

 From: simo kauranen [mailto:[EMAIL PROTECTED]] 
 
 Hi,
 
 Maybe I'm a little dumb but I can't figure out from
 the source codes how I should write my own
 transformer. Several questions remain:
 
 Which functions should a transformer implement?

Transformer is an implementation of a SAX ContentHandler and inherits all
the methods like: startDocument(), startElement(), ..., endElement(),
endDocument(). (For the complete list see SAX2 specification or the
AbstractSAXTrasnformer).

You decide depending on the task you want to solve with your transformer
which ones to override to get the needed result.

The rest of the methods that usually are present, like: configure(),
setup(), recycle(), dispose() are lifecycle interfaces implementations from
Avalon. See http://jakarta.apache.org/avalon for details.

Konstantin

 
 Which function takes in the SAX stream and which emits
 it forward and how? 
 
 Where the changes to the SAX are made? I went through
 among others the TraxTransformer source code but I
 couldn't find the line where the xslt transformation
 was made?
 
 Are loggers necessary for a transformer?
 
 Could someone help with these? Thanks!
 
 
 Simo K.
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts http://uk.my.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]
 

-
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: example in the Cocoon book

2002-10-10 Thread Robert Siqueira

  Hello All !!!

Sorry my ignorance.. but, when I found this cocoon book !?!?!?

 thanks..

[EMAIL PROTECTED] wrote:

 Thank you Matthew for your explanation, it works fine.
 And your book is really the best reference for Cocoon I have seen.

 Sylvain

 -Message d'origine-
 De: Matthew Langham [mailto:[EMAIL PROTECTED]]
 Date: jeudi, 10. octobre 2002 11:33
 À: [EMAIL PROTECTED]
 Objet: RE: example in the Cocoon book

 
 Thank you Matthew, but could you explain why!?
 
 Sure :-)

 1. map:pipeline
 2. map:match pattern=download
 3. map:act type=request
 4. map:parameter name=parameters value=true/
 6. map:act type=resource-exists
 7. map:parameter name=url value=download/{file}/

 8. map:read src=download/{../file}/
 9. /map:act
 10.map:generate src=filenotfound.xml/
 11.map:transform src=filenotfound2html.xsl/
 12.map:serialize/
 13./map:act
 14./map:match
 15./map:pipeline

 This has to do with the nesting of components. Each time a component is
 nested inside another one we need to go up the tree. Notice how the
 resource-exists action is nested inside the request action. Also notice
 that the Reader is inside the resource-exists action.

 Ok, now - the map:parameter attribute of the resource-exists action
 belongs to it - so it is at the same level and we can use {file} to
 access the parameter that the request action provides to the sitemap.

 The Reader is however underneath or inside the resource-exists action,
 so it needs to go up one step to access the same file parameter.

 This was the non-programmer explanation. Carsten or others can provide a
 perhaps more exact explanation.

 Matthew

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 11:19 AM
 To: [EMAIL PROTECTED]
 Subject: RE: example in the Cocoon book

 Thank you Matthew, but could you explain why!?

 Is the line 7. map:parameter name=url value=download/{file}/  is
 correct?

 Thank you
 Sylvain

 -Message d'origine-
 De: Matthew Langham [mailto:[EMAIL PROTECTED]]
 Date: jeudi, 10. octobre 2002 11:17
 À: [EMAIL PROTECTED]
 Objet: RE: example in the Cocoon book

 Hi,

 guess what - this is a bug in the book :).

 
 8. map:read src=download/{file}/
 

 That line should read:

map:read src=download/{../file}/

 Matthew

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 10, 2002 10:05 AM
 To: [EMAIL PROTECTED]
 Subject: example in the Cocoon book

 Hello,

 I'm reading the Cocoon book written by Matthew and Carsten and one example
 in it doesn't work.

 The pipeline fragment is:

 1. map:pipeline
 2. map:match pattern=download
 3. map:act type=request
 4. map:parameter name=parameters value=true/
 6. map:act type=resource-exists
 7. map:parameter name=url value=download/{file}/
 8. map:read src=download/{file}/
 9. /map:act
 10.map:generate src=filenotfound.xml/
 11.map:transform src=filenotfound2html.xsl/
 12.map:serialize/
 13./map:act
 14./map:match
 15./map:pipeline

 All seem to work except the line 8.
 Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
 It returns a HTTP error 404 (file not found).

 Anyone has an idea?
 How to check (debug) the value {file}?

 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]

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

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

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

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

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

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

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. 

Re: xsp-request:get-parameter-values - Java String[]

2002-10-10 Thread Atlanoff

Hello Christian,
--

How about like this sample:
I used vector instead array, but it works correctly.


xsp:structure
 xsp:includejava.util.Vector/xsp:include
/xsp:structure

xsp:logic
Vector v = (Vector)request.getAttribute(checkup);
for(int i=0; i lt; v.size(); i++) {

}
/xsp:logic

===
CJ doesn't work...

CJ thx, Chris

CJ its Cocoon 2.0.1...


-- 
Best regards,
 Atlanoffmailto:[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: example in the Cocoon book

2002-10-10 Thread Antonio Gallardo Rivera

you can buy it at

www.amazon.com search for the keyword Cocoon

Antonio Gallardo

El Jueves, 10 de Octubre de 2002 05:41, Robert Siqueira escribió:
   Hello All !!!

 Sorry my ignorance.. but, when I found this cocoon book !?!?!?

  thanks..

 [EMAIL PROTECTED] wrote:
  Thank you Matthew for your explanation, it works fine.
  And your book is really the best reference for Cocoon I have seen.
 
  Sylvain
 
  -Message d'origine-
  De: Matthew Langham [mailto:[EMAIL PROTECTED]]
  Date: jeudi, 10. octobre 2002 11:33
  À: [EMAIL PROTECTED]
  Objet: RE: example in the Cocoon book
 
 
  Thank you Matthew, but could you explain why!?
  
  Sure :-)
 
  1. map:pipeline
  2. map:match pattern=download
  3. map:act type=request
  4. map:parameter name=parameters value=true/
  6. map:act type=resource-exists
  7. map:parameter name=url value=download/{file}/
 
  8. map:read src=download/{../file}/
  9. /map:act
  10.map:generate src=filenotfound.xml/
  11.map:transform src=filenotfound2html.xsl/
  12.map:serialize/
  13./map:act
  14./map:match
  15./map:pipeline
 
  This has to do with the nesting of components. Each time a component is
  nested inside another one we need to go up the tree. Notice how the
  resource-exists action is nested inside the request action. Also
  notice that the Reader is inside the resource-exists action.
 
  Ok, now - the map:parameter attribute of the resource-exists action
  belongs to it - so it is at the same level and we can use {file} to
  access the parameter that the request action provides to the sitemap.
 
  The Reader is however underneath or inside the resource-exists
  action, so it needs to go up one step to access the same file parameter.
 
  This was the non-programmer explanation. Carsten or others can provide a
  perhaps more exact explanation.
 
  Matthew
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 10, 2002 11:19 AM
  To: [EMAIL PROTECTED]
  Subject: RE: example in the Cocoon book
 
  Thank you Matthew, but could you explain why!?
 
  Is the line 7. map:parameter name=url value=download/{file}/  is
  correct?
 
  Thank you
  Sylvain
 
  -Message d'origine-
  De: Matthew Langham [mailto:[EMAIL PROTECTED]]
  Date: jeudi, 10. octobre 2002 11:17
  À: [EMAIL PROTECTED]
  Objet: RE: example in the Cocoon book
 
  Hi,
 
  guess what - this is a bug in the book :).
 
 
  8. map:read src=download/{file}/
  
 
  That line should read:
 
 map:read src=download/{../file}/
 
  Matthew
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 10, 2002 10:05 AM
  To: [EMAIL PROTECTED]
  Subject: example in the Cocoon book
 
  Hello,
 
  I'm reading the Cocoon book written by Matthew and Carsten and one
  example in it doesn't work.
 
  The pipeline fragment is:
 
  1. map:pipeline
  2. map:match pattern=download
  3. map:act type=request
  4. map:parameter name=parameters value=true/
  6. map:act type=resource-exists
  7. map:parameter name=url value=download/{file}/
  8. map:read src=download/{file}/
  9. /map:act
  10.map:generate src=filenotfound.xml/
  11.map:transform src=filenotfound2html.xsl/
  12.map:serialize/
  13./map:act
  14./map:match
  15./map:pipeline
 
  All seem to work except the line 8.
  Cocoon detect that the {file} exists (line 7) but it can't read it (line
  8). It returns a HTTP error 404 (file not found).
 
  Anyone has an idea?
  How to check (debug) the value {file}?
 
  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]
 
  -
  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. 

Re: [Ann] Amazon Functionality Syndication demo

2002-10-10 Thread Ivelin Ivanov


- Original Message -
From: Piroumian Konstantin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 9:35 AM
Subject: RE: [Ann] Amazon Functionality Syndication demo


 Great showcase!

 Minor issues (e.g.

http://www.cocoonhive.org/portal/page-amazon-bookInfo?AsinSearch=047120708X
 ):
 - the page is wider than it is supposed to be, isn't it?
 - seems that you don't process the inline P, HR and BR
 elements and they come out as text.

Will try to fix. You know I am not good with styling.


 I feel that I've seen that page styles somewhere else ;)

No way, it is entirely original...
well, just borrowed 99% from the Forrest CSS, but you wouldn't know what
Forrest is would you ... ;)


Ivelin



 --
   Konstantin Piroumian


  -Original Message-
  From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 09, 2002 5:45 PM
  To: [EMAIL PROTECTED]
  Subject: [Ann] Amazon Functionality Syndication demo
 
 
 
  As a demo of the WebServiceProxyGenerator
  I built a little portal syndicating Amazon.com functionality.
  I think its value is the simplicity. Using Cocoon's powerful
  sitemap and refactoring Amazon's sample stylesheets anyone
  can build a personalized Amazon.com in hours. 0 lines of
  programming language code (Java,PHP,Perl,Pyhon, etc.)! Only
  styling (XSLT)! Here is the demo:
  http://www.cocoonhive.org/portal/home
 
  -=Ivelin=-
 
 
 
 
  -
  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: xsp-request:get-parameter-values - Java String[]

2002-10-10 Thread Christian Joelly

Hello all!

sorry for that stupid question, i forgot as=array ;-(

thx for your time

Chris

On Thu, Oct 10, 2002 at 12:05:04PM +0200, Christian Joelly wrote:
 i want to write the values from an request parameter to a String array,
 but it seem that this task is too complex for my brain ;-) can anybody
 tell me how to do that?
 
 String asKst[] = xsp-request:get-parameter-values name=kst/;

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz

-- Support your government, give Echelon/Carnivore something to parse --
AMTAS ATMD ATSC Abdullah Allah  communist CIA DD2-N DISA DoD GRU Gregori
Irak  Iran KGB  Kurdish LSD  NATO NSTD  Natasha  ORD RTEM  Russia  STRAP
Saddam Hussein  TSP  Yugoslavia   attack  bank  bomb  classfield  cocain
compromise defense  democracy  destroy  destruct  detonator  directorate
elections enforce extasy force  foreign embassy government grass hashish
heroin   illegal  information   international  military systems  missile
million dollars   nuclear  policital   pot  power   presidental  project
restricted data  revolution  rule the world sensitive  smuggle spy steal
system  takeover  terrorist  top-secret  warmod  warrior-T  weapon  weed





msg19050/pgp0.pgp
Description: PGP signature


Re: Combining Cocoon and Struts

2002-10-10 Thread Werner Guttmann


Dag,
just looking at your sample below again ... given that you are using
Castor XML to convert an object hierarchy to XML (which you then forward
to Cocoon in some way), why not look into the CastorTransformer that generates
SAX events based on an object bound to the request/sesion/context and a
mapping file.
You can actually find samples within the Cocoon distribution, and to
be honest, that's exactly where we will be moving in the near future if
I can get my head around a small problem.
Werner
Dag Nygaard wrote:
Werner Guttmann wrote:
> We have been using both of the following two options to establish
a clean contract
> between Struts and Cocoon:
>
> - Use of XMLizable interface from within XSPs
> - Use of Castor XML
>
> In both cases, you would use Struts actions to go to the model and
return you the
> data and bind it to a the HttpRequest/HttpSession. From there on,
simply forward
> your request to a Cocoon pipeline which takes care of the (de)marshalling
required
> to convert your object model to SAX events which are then processed
further
> downstream.
>
> I hope this helps.
> Werner
Thanks to all of you who previous replied to my question! Alot of
"floating objects" became clearer.
Werner,
I think I know what you are saying, in a broad sense. But since I am
not
that drilled in Cocoon and Struts yet, I hope you (or somebody else?)
could assist us in the right directions a little bit more...
Note: We have already looked at a sucessful Struts-Cocoon combination
where Struts creates a xml-file and forwards control to a Cocoon
pipeline. OK, for research, but not for multiuser environment... :)
Given a new pipeline:
 map:match pattern="myrequest">
 map:generate type="request"/>
 map:transform src="stylesheets/myrequest.xsl"/>
 map:serialize/>
 /map:match>
"borrowed" from the example in
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=100349922300307w=2
How should do I do it in my HelloActionSX.java file? The code below
is
from the version were we write the xml to a file between Struts and
Cocoon, slightly modified... The form contains two string-fields and
a
submit button. The form entries are collected and written with
appropriate xml-tags, to the temp-file. Struts sends control to the
Cocoon-pipeline, which prestents the entries on a new page.
Should we marshal the request in the same way that we marshal the form?
Previously we used a FileWriter as ContentHandler-paramameter to the
marshal-construct. What should we use for the request,
SAXContentHandler? Or, do we somehow just push out the request
directly
to the Cocoon-pipeline?
Struts-code:
public class HelloActionSX extends AbstStrutsActionBase {
 public ActionForward perform(
 ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) throws
IOException,ServletException
{
 // Where to go next
 ActionForward actionForward = null;
 HelloForm helloForm = (HelloForm) form;
// get the form bean
 // Do something with the form - i.e.
extract the values
 String firstname = helloForm.getFirstName();
 String lastname = helloForm.getLastName();
 //-- load mapping
 //-- marshal the form
 Mapping myMapping = new Mapping();
 // FileWriter writer = new FileWriter("tempfile.xml");
*** How do we replace writer? With SAXContentHandler? with unmodified
request, i.e. convert the request in Cocoon? *
 Marshaller marshaller = new Marshaller(writer);
 try {
 myMapping.loadMapping(".../mapping.xml");
 marshaller.setMapping(myMapping);
 marshaller.marshal(helloForm);
 }
 catch ( MarshalException me) {
 System.out.println("MarshalException:
" + me.getMessage() );
 }
 catch ( ValidationException ve ) {
 System.out.println("ValidationException:
" + ve.getMessage() );
 }
 catch ( MappingException mapEx) {
 mapEx.printStackTrace();
 System.out.println("MappingException:
" + mapEx.getMessage() );
 }
 finally {
 //writer.close();
 }
 actionForward = mapping.findForward("hello");
 return actionForward;
 }
}
--
Dag
-
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]>



XSP in XSL and Caching problem!

2002-10-10 Thread Tuomo Lesonen

I'm using 2.1-DEV, and one file in my application is a XSL page which
generates XSP for the serverpagesGenerator. The problem here is, that no
changes are committed to the browser result! Only removing the work-dir
and restarting tomcat helps. And after one reload of that page it's still
the same. I've changed all the pipelines to noncaching, and everything
is set to false that seems like a caching instruction.

I've tryed IE6, and NN7, no difference.

Help, please!

-Tuomo


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

2002-10-10 Thread Mauro Daniel Ardolino

Of course.  But in this case this logic will not be reutilizated anywhere
else.  So I don't want to put this logic in a place that after can be
considered this way.  I think that I will have a lot of logic that I do
not want to reference in the .xconf configuration file.
Am I wrong?
Do I always have to make a logic style sheet as taglib?
When I worked in jsp, some of the logic wasn't in taglibs.

Thanks.

Mauro


On Wed, 9 Oct 2002, Vadim Gritsenko wrote:

 Mauro Daniel Ardolino wrote:
 
 Thanks a lot!!  It works fine.
 
 
 Although it works fine that's not what you really need.
 
 To get best out of Cocoon, you need to make logicsheet (read more on 
 logicsheets in the cocoon docs) out of your
 
 logic/prueba.xsl and use this logicsheet. See XSP sample which uses custom 
logicsheet in logicsheet.xsp file - it's good place to start.
 
 
 Vadim
 
 
 
 -- Mauro
 
 On Mon, 7 Oct 2002, Joerg Heinicke wrote:
 
   
 
 Hello Mauro,
 
 you need two matches:
 
 map:match pattern=prueba.xsp
map:generate type=file src=content/prueba.xml/
map:transform src=logic/prueba.xsl /
map:serialize type=xml/
 /map:match
 
 map:match pattern=prueba.xml
map:generate type=xsp src=cocoon://prueba.xsp/
map:transform src=style/prueba_to_html.xsl/
map:serialize type=html/
 /map:match
 
 Hope that's what you you want. At least it's that what I understand from 
 your two mails ;-)
 
 Regards,
 
 Joerg
 
 Mauro Daniel Ardolino wrote:
 
 
 Hello!
 I cannot understand how to configure a pipeline for this:
 I have a xml-file and a xsl-file(logic).  Applying them I want to obtain a
 xsp page and then apply another xsl-file(style) to obtain a html-file.
 
 Well, I've made this pipeline in my sitemap.xmap:
 
map:match pattern=prueba.xml
 map:generate  type=file src=content/prueba.xml/
 map:transform src=logic/prueba.xsl /
 map:transform src=style/prueba_to_html.xsl/
 map:serialize type=html/
/map:match
 
 If I comment this line:
 map:transform src=style/prueba_to_html.xsl/
 ...I obtain the xsp page.
 But it doesn't transform to a xml-file to after apply the other 
 xsl-style-file.
 
 How can I do that?
 
 Thanks in advance.
 
 Mauro
   
 
 
 
 
 
 -
 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]
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar




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




MB_crossBrowserXML.js

2002-10-10 Thread Emmanuil Batsis (Manos)





MB_crossBrowserXML.js
Description: JavaScript source

-
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: XSP in XSL and Caching problem!

2002-10-10 Thread Rui Leal

- Original Message -
From: Tuomo Lesonen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 3:52 PM
Subject: XSP in XSL and Caching problem!


 I'm using 2.1-DEV, and one file in my application is a XSL page which
 generates XSP for the serverpagesGenerator. The problem here is, that no
 changes are committed to the browser result! Only removing the work-dir
 and restarting tomcat helps. And after one reload of that page it's still
 the same. I've changed all the pipelines to noncaching, and everything
 is set to false that seems like a caching instruction.

 I've tryed IE6, and NN7, no difference.

 Help, please!

 -Tuomo

Hello !

I´m having the same problem here ...

My setup is

Tomcat 4.1.12
Cocoon 2.0.3
JDK 1.4.0

I've been extending some examples like the bonebreaker site
(http://www.cocooncenter.de/cc/documents/resources/navigation/index.html)
just to avaliate Cocoon for some internal company work, and i must say the
reload/refresh problem is screwing my devel process.
(in this particular case, if some info on toc.xml is modified, tomcat work
dir must be cleaned and the server restarted).

Might this be a tomcat-cocoon right/wrong version problem ?

Any help? :)

Thanks in advance...

[--] Rui Pedro Leal
[--] [EMAIL PROTECTED]
[--] [EMAIL PROTECTED]
[--] ICQ: 318173


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




Special characters in JavaScript Strings

2002-10-10 Thread Hans-Michael Rupp

Hallo!

I have to use a JavaScript confirm-box on one of my pages.
Unfortunately I have to use special characters - German Umlaute -
The problem is that at some point the umlaute get Transformed into
entities, and the confirm-box text is not treated like HTML, so I get
kouml;nnen instead of können displayed.

From the xsl:
?xml version=1.0 encoding=UTF-8?

head
   meta http-equiv=Content-Type content=text/html; charset=UTF-8/
.
script language=JavaScript type=text/javascript
var warningText = Ihre Login-Angaben waren zwei Mal falsch. Bitte
beachten Sie, dass Ihr Konto nach dem dritten Fehleintrag  gesperrt
wird.\n Falls Sie Ihr Passwort vergessen haben, können Sie es sich per
E-Mail zuschicken lassen. Möchten Sie Ihr Passwort beantragen?;
function warn() {
 var mailPassword = confirm(warningText);
 if (mailPassword) {
  window.location.href = l11;
 }
}

From the sidemap:
/map:transformers
map:serializers default=html
   encodingUTF-8/encoding
  /map:serializers

The problem persists when I use the i18n transformer:
var warningText = i18n:text  i18n:key=EL50Ihre Login-Angaben waren
zwei Mal falsch. Bitte beachten Sie, dass Ihr Konto nach dem dritten
Fehleintrag  gesperrt wird.\n Falls Sie Ihr Passwort vergessen haben,
können Sie es sich per E-Mail zuschicken lassen. Möchten Sie Ihr
Passwort beantragen?/i18n:text

I would be grateful for any ideas.

Thanks,

Hans



Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

--



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




Sample Sitemap.xmap file

2002-10-10 Thread Jaimes Blunt
Title: Sample Sitemap.xmap file






Hey Guys,


I have created a new webapps directoryt for Cocoon 2.0.3 with Tomcat by copying the entire Cocoon directory over like some pof you suggested. I am trying to trim down the sitemap file though so that I dont include all of the samples directories and whatnot and seem to be having a tough time with it. Does anyone have a sitemap file that is cleaned up that I could use to start from, or does anyone have ny other ideas of creating a new webapp?

Thanks All


Jaimes Blunt





RE: Sample Sitemap.xmap file

2002-10-10 Thread robert_hitchins

Jaimes,
 
Here is a VERY simple sitemap that only takes a request for a PDF file 
and process the input XML file against the appropriate XSL file.  This 
may be a good starting point if you don't need a bunch of other stuff.
 
Hope it helps!
 
Bob
 
SITEMAP.XMAP
?xml version=1.0 encoding=iso-8859-1?
map:sitemap xmlns:map= http://apache.org/cocoon/sitemap/1.0;
 
 !-- use the standard components --
 map:components
  map:generators default=file/
  map:transformers default=xslt/
  map:readers default=resource/
  map:serializers default=html/
  map:selectors default=browser/
  map:matchers default=wildcard/
  map:transformers default=xslt/
 /map:components
  
 map:pipelines
  map:pipeline
   !-- Respond to *.pdf requests --
   map:match pattern=*.pdf
map:generate src={1}.xml/
map:transform src=bol.xsl/
map:serialize type=fo2pdf/
   /map:match
  /map:pipeline
 /map:pipelines
/map:sitemap

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: Sample Sitemap.xmap file



Hey Guys, 

I have created a new webapps directoryt for Cocoon 2.0.3 with Tomcat by 
copying the entire Cocoon directory over like some pof you suggested.  
I am trying to trim down the sitemap file though so that I dont include 
all of the samples directories and whatnot and seem to be having a 
tough time with it.  Does anyone have a sitemap file that is cleaned up 
that I could use to start from, or does anyone have ny other ideas of 
creating a new webapp?

Thanks All 

Jaimes Blunt 



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




CVS of C2.0.4-dev

2002-10-10 Thread ROSSEL Olivier

I need C2.0.4-dev.
I am currently getting the CVS of HEAD.
I wonder if HEAD is either C2.0.4-dev? or C2.1-dev?

If HEAD is not C2.0.4-dev, what are the instructions to get it?

Note: may be this point should be clearly written in the docs or in the
wiki.

-
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: Special characters in JavaScript Strings

2002-10-10 Thread Ryan Agler

I haven't tried this, but its worth a shot:

i18n:text  i18n:key=EL50Ihre Login-Angaben waren
zwei Mal falsch. Bitte beachten Sie, dass Ihr Konto nach dem dritten
Fehleintrag  gesperrt wird.\n Falls Sie Ihr Passwort vergessen haben,
können Sie es sich per E-Mail zuschicken lassen. Mxsl:text
disable-output-escaping=yes![CDATA[ö]]/xsl:textchten Sie Ihr
Passwort beantragen?/i18n:text


-Original Message-
From: Hans-Michael Rupp [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 10, 2002 9:50 AM
To: Coocon-user Liste
Cc: Black Hole
Subject: Special characters in JavaScript Strings

Hallo!

I have to use a JavaScript confirm-box on one of my pages.
Unfortunately I have to use special characters - German Umlaute -
The problem is that at some point the umlaute get Transformed into
entities, and the confirm-box text is not treated like HTML, so I get
kouml;nnen instead of können displayed.

From the xsl:
?xml version=1.0 encoding=UTF-8?

head
   meta http-equiv=Content-Type content=text/html; charset=UTF-8/
.
script language=JavaScript type=text/javascript
var warningText = Ihre Login-Angaben waren zwei Mal falsch. Bitte
beachten Sie, dass Ihr Konto nach dem dritten Fehleintrag  gesperrt
wird.\n Falls Sie Ihr Passwort vergessen haben, können Sie es sich per
E-Mail zuschicken lassen. Möchten Sie Ihr Passwort beantragen?;
function warn() {
 var mailPassword = confirm(warningText);
 if (mailPassword) {
  window.location.href = l11;
 }
}

From the sidemap:
/map:transformers
map:serializers default=html
   encodingUTF-8/encoding
  /map:serializers

The problem persists when I use the i18n transformer:
var warningText = i18n:text  i18n:key=EL50Ihre Login-Angaben waren
zwei Mal falsch. Bitte beachten Sie, dass Ihr Konto nach dem dritten
Fehleintrag  gesperrt wird.\n Falls Sie Ihr Passwort vergessen haben,
können Sie es sich per E-Mail zuschicken lassen. Möchten Sie Ihr
Passwort beantragen?/i18n:text

I would be grateful for any ideas.

Thanks,

Hans


-
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: Sample Sitemap.xmap file

2002-10-10 Thread Jaimes Blunt

Thanks for the sample file, but I am having some problems with it, getting the 
following error:
ComponentSelector could not find the component for hint: wildcard

Jaimes

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: RE: Sample Sitemap.xmap file


Jaimes,
 
Here is a VERY simple sitemap that only takes a request for a PDF file 
and process the input XML file against the appropriate XSL file.  This 
may be a good starting point if you don't need a bunch of other stuff.
 
Hope it helps!
 
Bob
 
SITEMAP.XMAP
?xml version=1.0 encoding=iso-8859-1?
map:sitemap xmlns:map= http://apache.org/cocoon/sitemap/1.0;
 
 !-- use the standard components --
 map:components
  map:generators default=file/
  map:transformers default=xslt/
  map:readers default=resource/
  map:serializers default=html/
  map:selectors default=browser/
  map:matchers default=wildcard/
  map:transformers default=xslt/
 /map:components
  
 map:pipelines
  map:pipeline
   !-- Respond to *.pdf requests --
   map:match pattern=*.pdf
map:generate src={1}.xml/
map:transform src=bol.xsl/
map:serialize type=fo2pdf/
   /map:match
  /map:pipeline
 /map:pipelines
/map:sitemap

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: Sample Sitemap.xmap file



Hey Guys, 

I have created a new webapps directoryt for Cocoon 2.0.3 with Tomcat by 
copying the entire Cocoon directory over like some pof you suggested.  
I am trying to trim down the sitemap file though so that I dont include 
all of the samples directories and whatnot and seem to be having a 
tough time with it.  Does anyone have a sitemap file that is cleaned up 
that I could use to start from, or does anyone have ny other ideas of 
creating a new webapp?

Thanks All 

Jaimes Blunt 



-
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: CVS of C2.0.4-dev

2002-10-10 Thread Lajos Moczar

Olivier -

Use cocoon_2_0_3_branch.

Lajos


ROSSEL Olivier wrote:

 I need C2.0.4-dev.
 I am currently getting the CVS of HEAD.
 I wonder if HEAD is either C2.0.4-dev? or C2.1-dev?
 
 If HEAD is not C2.0.4-dev, what are the instructions to get it?
 
 Note: may be this point should be clearly written in the docs or in the
 wiki.
 
 -
 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]
 
 


-- 
galatea.com
Cocoon training, consulting  support



-
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: example in the Cocoon book

2002-10-10 Thread Alex McLintock


El Jueves, 10 de Octubre de 2002 05:41, Robert Siqueira escribió:
Hello All !!!
 
  Sorry my ignorance.. but, when I found this cocoon book !?!?!?
 
   thanks..


I have a review 
here...http://news.diversebooks.com/article.pl?sid=02/09/19/1722242mode=thread

with links to Amazon of course :-)

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]




Re: XSP in XSL and Caching problem!

2002-10-10 Thread Timothy Larson

I am having the same problem and am using the same ugly workaround.

Tomcat 3.3.1
Cocoon 2.0.4dev (from CVS around 9-17-2002)
JDK 1.4.0_02

If I serialize the XSP page as XML it is always is up-to-date, but when I
use the XSP as a serverpage it is usually out-of-date.  This tells me that
the XML of the XSP page is being cached properly, but the JAVA code
that it generates is not being updated at the same time.

On rare occasions it will update with changes to the XSL page that
generates it, but most of the time I have to take down Tomcat and clear
the work directory to get the code generated from the XSP to update.

Tim

 [EMAIL PROTECTED] 10/10/02 10:52AM 
I'm using 2.1-DEV, and one file in my application is a XSL page which
generates XSP for the serverpagesGenerator. The problem here is, that no
changes are committed to the browser result! Only removing the work-dir
and restarting tomcat helps. And after one reload of that page it's still
the same. I've changed all the pipelines to noncaching, and everything
is set to false that seems like a caching instruction.

I've tryed IE6, and NN7, no difference.

Help, please!

-Tuomo


-
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: Sample Sitemap.xmap file

2002-10-10 Thread robert_hitchins

Jaimes,

I'm sorry, but I have just gotten involved with this technology...I 
believe the line that handles wildcards is this one:

  map:matchers default=wildcard/

This works fine for me using Cocoon on WinXP and WebSphere 4.0.  Not 
sure how your setup handles wildcards, but I'm sure someone here can 
offer more help than I can!

Bob

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 12:09 PM
To: [EMAIL PROTECTED]
Subject: RE: Sample Sitemap.xmap file


Thanks for the sample file, but I am having some problems with it, 
getting the following error:
ComponentSelector could not find the component for hint: wildcard

Jaimes

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: RE: Sample Sitemap.xmap file


Jaimes,
 
Here is a VERY simple sitemap that only takes a request for a PDF file 
and process the input XML file against the appropriate XSL file.  This 
may be a good starting point if you don't need a bunch of other stuff.
 
Hope it helps!
 
Bob
 
SITEMAP.XMAP
?xml version=1.0 encoding=iso-8859-1?
map:sitemap xmlns:map= http://apache.org/cocoon/sitemap/1.0;
 
 !-- use the standard components --
 map:components
  map:generators default=file/
  map:transformers default=xslt/
  map:readers default=resource/
  map:serializers default=html/
  map:selectors default=browser/
  map:matchers default=wildcard/
  map:transformers default=xslt/
 /map:components
  
 map:pipelines
  map:pipeline
   !-- Respond to *.pdf requests --
   map:match pattern=*.pdf
map:generate src={1}.xml/
map:transform src=bol.xsl/
map:serialize type=fo2pdf/
   /map:match
  /map:pipeline
 /map:pipelines
/map:sitemap

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: Sample Sitemap.xmap file



Hey Guys, 

I have created a new webapps directoryt for Cocoon 2.0.3 with Tomcat by 
copying the entire Cocoon directory over like some pof you suggested.  
I am trying to trim down the sitemap file though so that I dont include 
all of the samples directories and whatnot and seem to be having a 
tough time with it.  Does anyone have a sitemap file that is cleaned up 
that I could use to start from, or does anyone have ny other ideas of 
creating a new webapp?

Thanks All 

Jaimes Blunt 



-
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: Xindice logicsheet - initial success

2002-10-10 Thread Josema Alonso

 I've sent email. Why do you need xsp logicsheet and why don't you use
 xmldb protocol with cinclude? This works out of the box, with no effort.

I'm sorry Vadim, I've just browsed through the archives and I saw your
reply. I do not know why I haven't got it. It seems I have some problem with
my email box, cause now I'm getting today's messages from the list twice...

Anyway, I have read some of your previous replies regarding this subject.
Have tried the util logicsheet and it's working out of the box, even for
XPath queries. Great feature, thanks!
But what I would like to do is to edit, remove, update...documents in
Xindice. Since I'm still not so good at Java, I see very difficult to me to
write the proper action or generator needed to do it. So, I found the eXist
logicsheet documentation:
http://exist.sourceforge.net/xmldb.xsl.html

and I thought it was the best for me. Everything in a logicsheet. And it
lets me remove and add documents and collections, great. I couldn't test it
more but at least the get-collection and get-document are working for me
nicely.

Btw, where should I start looking if I want to create a new action or
generator for XUpdate as you suggested? Maybe at 'XMLDBGenerator.java' or
'XMLDBTransformer.java' better?

Oh, and currently I refer to my Xindice collections in the XSP like this:
xmldb:collection uri=xmldb:xindice://localhost:4080/db/addressbook/

But I'm not completely satisfied, cause it depends on my setup. What
if someone doesn't have Xindice running on port 4080, for example? So, is
there any way of referring to them through the pipeline matcher? Something
like: cocoon://xmldb/addressbook/

I've tried the later and it doesn't work for me.

Thank you very much.


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

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




RE: Writing a custom transformer

2002-10-10 Thread simo kauranen

Now I've written and compiled a transformer. I put the
.class file where I found the other transformer .class
files (not under tomcat) and defined the transformer
in the sitemap (and restarted tomcat). I got
ClassNotFoundException. 

Could someone tell where I should put the .class file
that cocoon would find it?

Simo K.

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.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: Xindice logicsheet - initial success

2002-10-10 Thread Jerry Fowler

Josema Alonso wrote:

 reply. I do not know why I haven't got it. It seems I have some problem with
 my email box, cause now I'm getting today's messages from the list twice...

This seems to happen to me as well. During a one or two hour period in 
the afternoon (GMT - 5) on a fairly regular basis, I go without any 
cocoon-users mail, and then suddenly get a spate of duplicates for the 
messages that seem to have been sent in that time. On the other hand, 
mail sitting in my queue in the morning after all you Europeans and 
Asians have been so busy is not duplicated. Is there a hiccup in the 
mailqueue somewhere near Greenwich?


-
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: Special characters in JavaScript Strings

2002-10-10 Thread Joerg Heinicke

Instead of using disable-output-escaping I would change the encoding of 
the file to ISO-8859-1 or use an editor, that understands UTF-8.

Regards,

Joerg

Ryan Agler wrote:
 I haven't tried this, but its worth a shot:
 
 i18n:text  i18n:key=EL50Ihre Login-Angaben waren
 zwei Mal falsch. Bitte beachten Sie, dass Ihr Konto nach dem dritten
 Fehleintrag  gesperrt wird.\n Falls Sie Ihr Passwort vergessen haben,
 können Sie es sich per E-Mail zuschicken lassen. Mxsl:text
 disable-output-escaping=yes![CDATA[ö]]/xsl:textchten Sie Ihr
 Passwort beantragen?/i18n:text
 
 
 -Original Message-
 From: Hans-Michael Rupp [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, October 10, 2002 9:50 AM
 To: Coocon-user Liste
 Cc: Black Hole
 Subject: Special characters in JavaScript Strings
 
 Hallo!
 
 I have to use a JavaScript confirm-box on one of my pages.
 Unfortunately I have to use special characters - German Umlaute -
 The problem is that at some point the umlaute get Transformed into
 entities, and the confirm-box text is not treated like HTML, so I get
 kouml;nnen instead of können displayed.
 
From the xsl:
 ?xml version=1.0 encoding=UTF-8?
 
 head
meta http-equiv=Content-Type content=text/html; charset=UTF-8/
 .
 script language=JavaScript type=text/javascript
 var warningText = Ihre Login-Angaben waren zwei Mal falsch. Bitte
 beachten Sie, dass Ihr Konto nach dem dritten Fehleintrag  gesperrt
 wird.\n Falls Sie Ihr Passwort vergessen haben, können Sie es sich per
 E-Mail zuschicken lassen. Möchten Sie Ihr Passwort beantragen?;
 function warn() {
  var mailPassword = confirm(warningText);
  if (mailPassword) {
   window.location.href = l11;
  }
 }
 
From the sidemap:
 /map:transformers
 map:serializers default=html
encodingUTF-8/encoding
   /map:serializers
 
 The problem persists when I use the i18n transformer:
 var warningText = i18n:text  i18n:key=EL50Ihre Login-Angaben waren
 zwei Mal falsch. Bitte beachten Sie, dass Ihr Konto nach dem dritten
 Fehleintrag  gesperrt wird.\n Falls Sie Ihr Passwort vergessen haben,
 können Sie es sich per E-Mail zuschicken lassen. Möchten Sie Ihr
 Passwort beantragen?/i18n:text
 
 I would be grateful for any ideas.
 
 Thanks,
 
 Hans


-
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: DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML

2002-10-10 Thread Geoff Howard

I haven't followed your this whole thread, but I think
I've had similar problems that turned out to be
related to namespaces.  Are there any namespaces
declared in your XSP that are not declared in your
XSLT (whether they are used in the output or not)?  If
so, try declaring them in the xslt.  I never looked at
the problem carefully enough to determine whether it
was cocoon not handling things properly, or whether it
was just sloppy handling of namespaces on my part, but
that has fixed a similar problem for me in the past.

Geoff Howard


--- Roger Ting [EMAIL PROTECTED] wrote:
 Hi thx for your response.
 
 The funny thing is below
 What works:
 1. i read the XSP that uses ESQL with serverpages
 generator it will generate 
 the xml file.
 2. I save the xml file generated using the the XSP.
 3. Do transformation with Xalan or Saxon (Tried
 both) and the output
 is correct.
 
 What doesn't works:
 1. I read the same XSP.
 2. pipe it into a XSLT transformer.
 3. Serialize it in SVG or XML.
 4. 60% of the output is gone.
 
 2 processes are the same except for the first i save
 it before i transform 
 and serialize the xml file generated from the XSP
 with ESQL.
 The second process i pipe the output from XSP
 directly into the XSLT
 transformer and it drop most of the output. Another
 user also faces
 the same problem. We are using 2 different
 computers.
 
 ===HERE IS MY XSLT
 =
 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:icr=http://www.cs.mu.oz.au/340/s340gf;
 xmlns:svg=http://www.w3.org/2000/svg;
 
 xsl:output method=xml indent=yes/
 xsl:template match=icr:report
 svg width=300 height=300 
   titleThe graphs for the dailyly section /title
   g transform=translate(100, 100)
   xsl:apply-templates select=icr:fall/
   /g
 /svg
 /xsl:template
 
 xsl:template match=icr:fall
   g transform= translate(-20,-80) scale(2,2)
   text 
   xsl:attribute name=font-size
   xsl:value-of select=6 /
   /xsl:attribute
   Patient falls record
   /text
   /g
 
   g transform=translate(0,100) scale(2,-2) 
   !--drawing the axes--
  line x1=0 y1=0 x2=140 y2=0
 style=stroke: black;/
  line x1=0 y1=0 x2=0 y2=80
 style=stroke: black;/
   /g
 
  !--- Doesn't transform from here onwards
 ---
   xsl:for-each select=icr:monthly
   xsl:call-template name=draw-bar 
   xsl:with-param name=n select=@numerator/
   xsl:with-param name=d select=@denominator/
   xsl:with-param name=count
 select=position()/
   xsl:with-param name=threshold
 select=@threshold/
   xsl:with-param name=next 

select=following-sibling::icr:monthly/attribute::numerator/
   xsl:with-param name=last
 select=count(icr:monthly)/
   /xsl:call-template
   xsl:call-template name=write-text 
   xsl:with-param name=count
 select=position()/
   /xsl:call-template
   /xsl:for-each
 
 /xsl:template
 
 xsl:template name=draw-bar
   xsl:param name=n/
   xsl:param name=d/
   xsl:param name=count/
   xsl:param name=threshold/
   xsl:param name=next/
   xsl:param name=last/
 
 
   g transform=translate(0,100) scale(2,-2) 
   !-- these are the bars in order --
   rect style=fill:none; stroke:black;
 stroke-width=1
   xsl:attribute name=y
   0
   /xsl:attribute
   xsl:attribute name=x
   xsl:value-of select=$count*5/
   /xsl:attribute
   xsl:attribute name=width
   5
   /xsl:attribute
   xsl:attribute name=height
   xsl:value-of select=20*($n div $d) /
   /xsl:attribute
   /rect
 
   rect style=fill:red;stroke:red;
   xsl:attribute name=y
   xsl:value-of select=$threshold/
   /xsl:attribute
   xsl:attribute name=x
   xsl:value-of select=$count*5+1/
   /xsl:attribute
   xsl:attribute name=width
   2
   /xsl:attribute
   

RE: Sample Sitemap.xmap file

2002-10-10 Thread Geoff Howard

You are talking about two different things.  The
sitemap Robert sent will only work as a _SUB_sitemap
mounted off a self-sufficient sitemap that defines all
the needed components.  

I've included one below that should get you what you
want.  It will handle static xml as well as xsp, which
should handle most basic usage.  Note also that not
many of the examples will run on this sitemap.  You
could probably get rid of more, but I wanted to leave
at least the default in each component category.  That
long selectors configuration for browser selector is
probably a good candidate if you're not using it.

Geoff Howard

BASIC sitemap.xmap:
?xml version=1.0 encoding=UTF-8?
map:sitemap
xmlns:map=http://apache.org/cocoon/sitemap/1.0;

!-- === Components
 --
 map:components
   map:generators default=file
 map:generator label=content,data
logger=sitemap.generator.file name=file
pool-grow=4 pool-max=32 pool-min=8
src=org.apache.cocoon.generation.FileGenerator/
 map:generator label=content,data
logger=sitemap.generator.serverpages
name=serverpages pool-grow=2 pool-max=32
pool-min=4
src=org.apache.cocoon.generation.ServerPagesGenerator/
   /map:generators

   map:transformers default=xslt
 map:transformer
logger=sitemap.transformer.xslt name=xslt
pool-grow=2 pool-max=32 pool-min=8
src=org.apache.cocoon.transformation.TraxTransformer
 
use-request-parametersfalse/use-request-parameters
 
use-browser-capabilities-dbfalse/use-browser-capabilities-db
  use-delifalse/use-deli
 /map:transformer
   /map:transformers

  map:readers default=resource
map:reader logger=sitemap.reader.resource
name=resource pool-max=32
src=org.apache.cocoon.reading.ResourceReader/
  /map:readers
  map:serializers default=html
map:serializer logger=sitemap.serializer.xml
mime-type=text/xml name=xml
src=org.apache.cocoon.serialization.XMLSerializer/
map:serializer logger=sitemap.serializer.html
mime-type=text/html name=html pool-grow=4
pool-max=32 pool-min=4
src=org.apache.cocoon.serialization.HTMLSerializer
  buffer-size1024/buffer-size
/map:serializer
  /map:serializers

  map:matchers default=wildcard
map:matcher logger=sitemap.matcher.wildcard
name=wildcard
src=org.apache.cocoon.matching.WildcardURIMatcher/
  /map:matchers

  map:selectors default=browser
   map:selector logger=sitemap.selector.browser
name=browser
src=org.apache.cocoon.selection.BrowserSelector
!-- # NOTE: The appearance indicates the search
order. This is very important since
 #   some words may be found in more than
one browser description. (MSIE is
 #   presented as Mozilla/4.0
(Compatible; MSIE 4.01; ...)
--
browser name=explorer useragent=MSIE/
browser name=pocketexplorer useragent=MSPIE/
browser name=handweb useragent=HandHTTP/
browser name=avantgo useragent=AvantGo/
browser name=imode useragent=DoCoMo/
browser name=opera useragent=Opera/
browser name=lynx useragent=Lynx/
browser name=java useragent=Java/
browser name=wap useragent=Nokia/
browser name=wap useragent=UP/
browser name=wap useragent=Wapalizer/
browser name=mozilla5 useragent=Mozilla/5/
browser name=mozilla5 useragent=Netscape6//
browser name=netscape useragent=Mozilla/
   /map:selector
  /map:selectors

  map:actions
  /map:actions
 /map:components

!-- === Views
=== --
 map:views
  map:view from-label=content name=content
   map:serialize type=xml/
  /map:view
 /map:views

!-- === Resources
= --
 map:resources
 /map:resources

!-- == Action sets
 --
 map:action-sets
 /map:action-sets

!-- === Pipelines
= --
 map:pipelines
   map:pipeline
 /map:pipeline
/map:sitemap!-- end of file --

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.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: Unable to find transformer handler

2002-10-10 Thread Billy Ng



I made my first HelloWorld up and running. 
The problem I had was I did not specify the map:match in th right sitemap. 
Please ignore the previous message.

Billy Ng

  - Original Message - 
  From: 
  Billy Ng 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, October 10, 2002 12:52 
  AM
  Subject: Unable to find transformer 
  handler
  
  Hi 
  folks,I am very new to cocoon. I follow the how-to to install 
  cocoon on my Linuxbox. I can see the Cocoon's home page on 
  runninghttp://localhost:8080/cocoon. However, when I try to run the hello.rtf 
  withadding the following definition in sitemap.xmapmap:match 
  pattern="hello.rtf"map:generate 
  src="docs/samples/hello-page.xml"/map:transform 
  src="stylesheets/page/simple-page2fo.xsl"/map:serialize 
  type="fo2rtf"//map:matchI got the following error, 
  what did I do wrong? I am using Tomcat 4.0.3,and J2SE 
  1.4org.apache.cocoon.ProcessingException: Unable to get 
  transformer handler 
  forstylesheets/page/simple-page2fo.xsl:org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: 
  Exception increating Transform 
  Handleratorg.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:338)atorg.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:390)atorg.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:307)atorg.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484)atorg.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)atorg.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)atorg.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:162)atorg.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)atorg.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)atorg.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)atorg.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)atorg.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)atorg.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)at 
  org.apache.cocoon.Cocoon.process(Cocoon.java:595)at 
  org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1034)at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)atorg.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)atorg.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)atorg.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)atorg.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)at 
  

Re: Xindice logicsheet - initial success

2002-10-10 Thread Perry Molendijk

I have successfully used this to query Xindice through Cocoon. The first
block is in sitemap.xmap of the cocoon distribution.

map:match pattern=xpath type=request-parameter
 map:generate src=xmldb:xindice://localhost:4080/db/{../1}#{1}/
 map:serialize type=xml/
/map:match



   map:match pattern=mac-find
map:act type=request
 map:parameter name=parameters value=true/
 map:generate src=cocoon:/xmldb/shakespear/?xpath={findThis}/
 map:serialize type=xml/
/map:act
   /map:match

Perhaps this may not be the best way but it works a treat.

Perry


- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 7:02 AM
Subject: Re: Xindice logicsheet - initial success


 Josema Alonso wrote:

 Dear Friends,
 
 Since I got no response to my previous email message,
 

 I've sent email. Why do you need xsp logicsheet and why don't you use
 xmldb protocol with cinclude? This works out of the box, with no effort.

 Vadim


  I tried it hard and I
 finally could make a xmldb logicsheet to work with Cocoon. It's the eXist
 logicsheet. I could only try it for retrieving documents by now but it
works
 as expected.
 I'm too tired now. It's been a lot of hours to make Xindice and the
 logicsheet work with Cocoon and I need some rest. I'll test more tomorrow
 and I'll try to make a How-To. Now that Isee it running I must say it
 shoudn't be so hard...
 I hope I could understand better the whole Cocon Wiki thing and make it
 available there...if someone can help me a bit here...
 
 Best.
 
 ps: I've browsed carefully the archives and I read the mailing list
 frequently. I know there are still some people who can't make Xindice
work
 with Cocoon. I understand you all... and I must say to all of you...it
can
 be done! Don't give up! :-)
 
 



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




jfor manual

2002-10-10 Thread Billy Ng




I am very new to cocoon and jfor. Would 
anybody tell me where can I get the jfor doc or user manual? I want to 
know the syntax of the fo tag library

Thanks!

Billy Ng


[COCOON2] My application deploy and developing taglibs/logicsheets

2002-10-10 Thread Luis Gois


Greetings!

I'm an old Cocoon1 user and probably waked up too late for Cocoon2,
but, this really scare me to death :

application deploy

When deploying my Cocoon2 application, spain, this will be my
file structure :
(cocoon is the cocoon2 root, for example webapps\cocoon)

cocoon/
  WEB-INF/
cocoon.xconf
web.xml
taglibs/
  spain/logicsheet/
mylogic.xsl
db.xsl
  spain/
sitemap.xmap
simple.xsp
db.xsp
spain.xslt

What I really don't like in this is to edit the cocoon.xconf or
web.xml under cocoon/WEB-INF. If I look at the cocon.xconf or web.xml
that came inthe cocoon2.war, I have a zillion settings. Suppose I
will have a trillion of applications here. Then I would have to made a
trillion of changes to  the above mentioned files? I tried to look for
another way of configuring my cocoon2 application, like a
cocoon/spain/WEB-INF directory where to   put my cocoon.xconf and
web.xml without changing anything else when deploying.

Am I missing something?! Can anyone of you point me to the right
direction? In Cocoon1 each application had it's own cocoon.properties
and web.xml files and I expected no less from Cocoon2. If this was a
disadvantage, then enlighten me of the advantages of this centralized
management.

Thanks to all!

Luís Góis 
IT QMS Configuration Management Team
Optimus Telecommunications
Lisbon PORTUGAL
 


___
Vizzavi Mail powered by Vodafone - http://www.vizzavi.pt
Virus protected by TrendMicro - http://www.antivirus.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: Xindice logicsheet - initial success (howto written)

2002-10-10 Thread Josema Alonso

It sounds good to me. I was using it that way. But what about removing and
updating? The logicsheet lets you remove collections and documents.
Unfortunately it does not update.

Anybody knows where to start for some XUpdate transformer?

Oh, I put together all my efforts with the logicsheet at
http://outerthought.net/wiki/Wiki.jsp?page=XindiceLogicsheet

Best.


- Original Message -
From: Perry Molendijk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 11, 2002 1:25 AM
Subject: Re: Xindice logicsheet - initial success


 I have successfully used this to query Xindice through Cocoon. The first
 block is in sitemap.xmap of the cocoon distribution.

 map:match pattern=xpath type=request-parameter
  map:generate src=xmldb:xindice://localhost:4080/db/{../1}#{1}/
  map:serialize type=xml/
 /map:match



map:match pattern=mac-find
 map:act type=request
  map:parameter name=parameters value=true/
  map:generate src=cocoon:/xmldb/shakespear/?xpath={findThis}/
  map:serialize type=xml/
 /map:act
/map:match

 Perhaps this may not be the best way but it works a treat.

 Perry


 - Original Message -
 From: Vadim Gritsenko [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, October 10, 2002 7:02 AM
 Subject: Re: Xindice logicsheet - initial success


  Josema Alonso wrote:
 
  Dear Friends,
  
  Since I got no response to my previous email message,
  
 
  I've sent email. Why do you need xsp logicsheet and why don't you use
  xmldb protocol with cinclude? This works out of the box, with no effort.
 
  Vadim
 
 
   I tried it hard and I
  finally could make a xmldb logicsheet to work with Cocoon. It's the
eXist
  logicsheet. I could only try it for retrieving documents by now but it
 works
  as expected.
  I'm too tired now. It's been a lot of hours to make Xindice and the
  logicsheet work with Cocoon and I need some rest. I'll test more
tomorrow
  and I'll try to make a How-To. Now that Isee it running I must say it
  shoudn't be so hard...
  I hope I could understand better the whole Cocon Wiki thing and make it
  available there...if someone can help me a bit here...
  
  Best.
  
  ps: I've browsed carefully the archives and I read the mailing list
  frequently. I know there are still some people who can't make Xindice
 work
  with Cocoon. I understand you all... and I must say to all of you...it
 can
  be done! Don't give up! :-)
  
  
 
 
 
  -
  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]




sub-sitemaps with mod_webapp ...

2002-10-10 Thread Marc G. Fournier


I have a client that we've got setup using Jakarta-Tomcat 4.x and Cocoon
2.x ... we have mod_webapp setup so that when you go to http://domain, it
connects to the warp Connector through to /cocoon/domain, in which the
client has a sitemap.xmap file ...

If we go to http://domain:8083/cocoon/domain, everything loads up fine ...
if we go to http://domain, we just get a directory listing that shows the
sitemap.xmap file and the subdirectories ...

So, from what I can tell, tomcat is setup right, its the mod_webapp stuff
that isn't working right ...

I'm not finding anything in the log files either, that are indicating a
problem?

I've searched through google, and the FAQs, and what HowTos I could find,
but nothing seems to get into this ;( Is there one that I've missed?  Is
there something that I'm overlooking?

Pointers to docs I can read (and bookmark) are most appreciated ...

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]




Re: sub-sitemaps with mod_webapp ...

2002-10-10 Thread Lajos Moczar

What OS are they running on? Unfortunately, mod_webapp is, well, sort of 
crappy. To be more politically correct, it is a work in progress, and 
has been known to cause problems like you describe (especially with 
Netscape on Windows).

Why not use mod_jk? You can't beat the tried and true.

However, if you must work with mod_webapp, I suggest making cocoon the 
default webapp in Tomcat (path= in the context tag). That way, each 
domain appears to be its own webapp under Tomcat. Then you point 
mod_webapp to each specific domain. That is what I do with mod_jk on my 
own site.

Regards,

Lajos
-- 
galatea.com
Cocoon training, consulting  support


Marc G. Fournier wrote:

 I have a client that we've got setup using Jakarta-Tomcat 4.x and Cocoon
 2.x ... we have mod_webapp setup so that when you go to http://domain, it
 connects to the warp Connector through to /cocoon/domain, in which the
 client has a sitemap.xmap file ...
 
 If we go to http://domain:8083/cocoon/domain, everything loads up fine ...
 if we go to http://domain, we just get a directory listing that shows the
 sitemap.xmap file and the subdirectories ...
 
 So, from what I can tell, tomcat is setup right, its the mod_webapp stuff
 that isn't working right ...
 
 I'm not finding anything in the log files either, that are indicating a
 problem?
 
 I've searched through google, and the FAQs, and what HowTos I could find,
 but nothing seems to get into this ;( Is there one that I've missed?  Is
 there something that I'm overlooking?
 
 Pointers to docs I can read (and bookmark) are most appreciated ...
 
 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: jfor manual

2002-10-10 Thread Bertrand Delacretaz

On Friday 11 October 2002 02:02, Billy Ng wrote:
. . .Would anybody tell me where can I get
 the jfor doc or user manual?  
. . .

See the links section at www.jfor.org, it has some pointers to useful pages.

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.






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