Re: Cocoon will not run

2002-04-30 Thread Perry Molendijk

I tried running Cocoon 2 with Tomcat 4.0.3 without any luck. Try 4.0.1 or
4.0.4. Those work first time every time, for me anyway.

Perry
- Original Message -
From: Andreas Rittershofer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 1:53 PM
Subject: Cocoon will not run


 My setup is:
 Java 1.3.1
 Tomcat 4.0.3 (examples are running fine)
 Cocoon 2.0.2

 When I invoke
 http://host:8080/cocoon
 I get:

 Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error

 --
 --

 type Exception report

 message Internal Server Error

 description The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.

 exception

 javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
 threw exception
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
 ava:935)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
 :653)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
 lve.java:214)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
 lve.java:190)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
 343)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
 va:180)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
 Valve.java:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
 va:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:4
 68)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
 e.java:174)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor
 .java:1012)
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.jav
 a:1107)
 at java.lang.Thread.run(Thread.java:484)


 root cause

 java.lang.NoClassDefFoundError: javax/xml/transform/Source
 at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183)
 at
 org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.jav
 a:1209)
 at
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
 ava:916)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
 :653)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
 lve.java:214)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
 lve.java:190)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
 343)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
 va:180)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
 Valve.java:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
 va:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
 at
 

Re: Cocoon will not run

2002-04-30 Thread Andreas Rittershofer

On 30 Apr 2002 at 14:22, Perry Molendijk wrote:

 I tried running Cocoon 2 with Tomcat 4.0.3 without any luck. Try 4.0.1 or
 4.0.4. Those work first time every time, for me anyway.

Version  4.0.3 have a security problem, I do not want to use them.
What about 4.0.4? There is beta 2 out; how stable is it?

mfg ar

-- 
mailto:[EMAIL PROTECTED]
http://www.rittershofer.de/



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

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




Re: Cocoon will not run

2002-04-30 Thread Andreas Rittershofer

On 30 Apr 2002 at 14:22, Perry Molendijk wrote:

 I tried running Cocoon 2 with Tomcat 4.0.3 without any luck. Try 4.0.1 or
 4.0.4. Those work first time every time, for me anyway.

I cannot find Tomcat 4.0.4 on the download page of Jakarta.

mfg ar

-- 
mailto:[EMAIL PROTECTED]
http://www.rittershofer.de/



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

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




Re: Cocoon will not run

2002-04-30 Thread Thor Heinrichs-Wolpert

Right off of the binary download page
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b2/

Cheers,
Thor HW

4/29/2002 11:28:54 PM, Andreas Rittershofer [EMAIL PROTECTED] wrote:

On 30 Apr 2002 at 14:22, Perry Molendijk wrote:

 I tried running Cocoon 2 with Tomcat 4.0.3 without any luck. Try 4.0.1 or
 4.0.4. Those work first time every time, for me anyway.

I cannot find Tomcat 4.0.4 on the download page of Jakarta.

mfg ar

-- 
mailto:[EMAIL PROTECTED]
http://www.rittershofer.de/



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




sendmail again

2002-04-30 Thread Perry Molendijk

inflexions.com: homeFinally got the cocoon part of the sendmail logicsheet
working but now I get an error from java mail:

javax.mail.internet.ParseException

This is the XSP

?xml version=1.0 encoding=UTF-8?
xsp:page language=java xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0;
 page
  xsp:logic
  String text =
Hi, this mail has been send through a web form;
/xsp:logic
  sendmail:send-mail
   sendmail:from[EMAIL PROTECTED]/sendmail:from
   sendmail:to[EMAIL PROTECTED]/sendmail:to
   sendmail:subjectCocoon send mail test/sendmail:subject
   sendmail:smtphostmailServerAddress/sendmail:smtphost
   sendmail:body
xsp:exprtext/xsp:expr
   /sendmail:body
  /sendmail:send-mail
 /page
/xsp:page

I'm using the recently fixed sendmail.xsl, and after getting An error
occured while sending email. a couple of times I replaced this in
sendmail.xsl

error type=serverAn error occured while sending email./error

with

error type=serverxsp:expr_sendmail_exception/xsp:expr/error

and rebuild cocoon to end up with: javax.mail.internet.ParseException

The javamail docs say:

The exception thrown due to an error in parsing RFC822 or MIME headers

Which as a simple user doesn't mean much too me.

Thanks in advance.

Perry Molendijk
Inflexion (WA) Pty Ltd
http://www.inflexions.com
[EMAIL PROTECTED]
+61 0401 677 453

©2002 Inflexions (WA) Pty Ltd
IMPORTANT INFORMATION: This message and any files transmitted with it are
confidential and should be read only by those persons to whom it is
addressed. If you have received this message in error, please notify us
immediately by way of reply. Please also destroy and delete the message from
your computer. Any unauthorised form of reproduction of this message is
strictly prohibited. It is the duty of the recipient to virus scan and
otherwise test the information provided before loading onto any computer
system. Inflexions (WA) Pty Ltd does not warrant that the information is
free of a virus or any other defect or error. Inflexions (WA) Pty Ltd is not
liable for the proper and complete transmission of the information contained
in this communication, nor for any delay in its receipt. Any views expressed
in this message are those of the individual sender, except where the sender
specifically states them to be the views of Inflexions (WA) Pty Ltd.


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

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




Re: sendmail again

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 05:11 PM, Perry Molendijk wrote:
 inflexions.com: homeFinally got the cocoon part of the sendmail logicsheet
 working but now I get an error from java mail:

 I'm using the recently fixed sendmail.xsl, and after getting An error
 occured while sending email. a couple of times I replaced this in
 sendmail.xsl

This problem should have been fixed Sunday. A workaround is to supply
a charset (sedmail:charsetISO-8859-1/sendmail:charset).

Chris.

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

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

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




Re: sendmail again

2002-04-30 Thread Perry Molendijk

Works a treat now. Thank you.

Perry
- Original Message -
From: Christian Haul [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 5:33 PM
Subject: Re: sendmail again


 On 30.Apr.2002 -- 05:11 PM, Perry Molendijk wrote:
  inflexions.com: homeFinally got the cocoon part of the sendmail
logicsheet
  working but now I get an error from java mail:

  I'm using the recently fixed sendmail.xsl, and after getting An error
  occured while sending email. a couple of times I replaced this in
  sendmail.xsl

 This problem should have been fixed Sunday. A workaround is to supply
 a charset (sedmail:charsetISO-8859-1/sendmail:charset).

 Chris.

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

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




RE: RE: Error compiling sitemap_xmap: Line 0, column 0:error:java.io.IOException

2002-04-30 Thread T.B. Pogie

I've tried setting incremental-processing to both true and false, neither work. I'm 
not sure I followed what you've done with the directory. The Cocoon 2.0.2 war file 
doesn't work on WebLogic 6.1 in any case, so I expanded the 2.0.2 war and put the 
files in a directory named cocoon. After a lot of tweaking, cocoon finally loads but 
now can't compile sitemap.xmap.  Did you in fact replace 2.0.2 with 2.0.1?  Thanks.
TB


Sharad Kalyani [EMAIL PROTECTED] wrote:

I have resolved this issue for my configuration.
For Weblogic 6.1 try this step:

in cocoon.xconf file update
parameter name=incremental-processing value=false/
 to
parameter name=incremental-processing value=true/
Restart the server.
This may work as it has worked for one of the user.

For my configuration, I did a trick - Used Cocoon 2.0.1 for generating the cocoon 
directory out of cocoon.war. Then replaced the cocoon directory form Cocoon 2.0.2 
with this one. Restarted the resin engine - Now it is working fine.

- Original Message -
From: [EMAIL PROTECTED] (T.B. Pogie)
Date: Sun, 28 Apr 2002 20:28:51 -0400
To: [EMAIL PROTECTED]
Subject: RE: Error compiling sitemap_xmap: Line 0, column 0: error:java.io.IOException

I am getting exactly the same error on Weblogic 6.1 running on Win2000. I hope 
someone can give us some hints.

Thanks,
TB

Sharad Kalyani [EMAIL PROTECTED] wrote:

Hi

I am using: 

JDK 1.3.1_01 (Sun)
Resin: 2.1.0
Cocoon: 2.0.2

I have deployed Cocoon as mentioned in the Documentation. When I start resin servlet 
engine and go to http://localhost:8080/cocoon/ URL, I get this error:

Cocoon 2 - Internal server error



type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error 

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap:
Line 0, column 0: 
error: java.io.IOException: read error
1 error

    at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:335)
    at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
    at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
    at java.lang.Thread.run(Thread.java:479)
org.apache.cocoon.components.language.LanguageException: Error compiling 
sitemap_xmap:
Line 0, column 0: 
error: java.io.IOException: read error
1 error

    at 
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243)
    at 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:197)
    at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:383)
    at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328)
    at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
    at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
    at java.lang.Thread.run(Thread.java:479)


request-uri

/cocoon/

path-info

-

Any help will be appreciated.
-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


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

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




__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/


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

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


-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


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

C2: java.io.IOException: Broken pipe

2002-04-30 Thread Yap, Mow Ching (Gamer.tv)

What is the best way in C2 to handle java.io.IOException: Broken pipe
exceptions? Or at least filter them from the log files?

tks.
mooch.

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

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




Problem with FormValidatorAction

2002-04-30 Thread Hiloliddin Karimov

Hello all,

Problem with FormValidatorAction.
I have following on my sitemap.log, when I try Login:

DEBUG   (2002-04-30) 16:10.17:468   [sitemap](/cocoon/protected/do-login)
HttpProcessor[80][3]/sitemap_xmap: Matched wildcard pattern protected/**
DEBUG   (2002-04-30) 16:10.17:468   [sitemap](/cocoon/protected/do-login)
HttpProcessor[80][3]/AbstractSitemap: Current Sitemap Parameters:
PARAM: '1' VALUE: 'do-login'
PARAM: '0' VALUE: 'protected/do-login'

DEBUG   (2002-04-30) 16:10.17:484
[sitemap.protected.action.form-validator](/cocoon/protected/do-login)
HttpProcessor[80][3]/AbstractComplementaryConfigurable Action: Using cached
configuration for context://protected/descriptors/params.xml
DEBUG   (2002-04-30) 16:10.17:484
[sitemap.protected.action.form-validator](/cocoon/protected/do-login)
HttpProcessor[80][3]/FormValidatorAction: Validating parameters as specified
via 'validate' parameter
DEBUG   (2002-04-30) 16:10.17:484
[sitemap.protected.action.form-validator](/cocoon/protected/do-login)
HttpProcessor[80][3]/AbstractValidatorAction: Validating parameter: username
DEBUG   (2002-04-30) 16:10.17:484
[sitemap.protected.action.form-validator](/cocoon/protected/do-login)
HttpProcessor[80][3]/FormValidatorAction: exception:
java.lang.NullPointerException
at
org.apache.cocoon.acting.AbstractValidatorAction.getDefault(AbstractValidato
rAction.java:576)
at
org.apache.cocoon.acting.AbstractValidatorAction.validateString(AbstractVali
datorAction.java:222)
at
org.apache.cocoon.acting.AbstractValidatorAction.validateParameter(AbstractV
alidatorAction.java:202)
at
org.apache.cocoon.acting.FormValidatorAction.act(FormValidatorAction.
java:169)
at
org.apache.cocoon.www.protected_.sitemap_xmap.matchN10049(F:\usr\tomcat\work
\localhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_xmap
.java:629)
at
org.apache.cocoon.www.protected_.sitemap_xmap.process(F:\usr\tomcat\work\loc
alhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_xmap.jav
a:435)
at
org.apache.cocoon.www.protected_.sitemap_xmap.process(F:\usr\tomcat\work\loc
alhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_xmap.jav
a:368)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
...


sitemap.xmap:
=

map:actions
 map:action name=session-validator
src=org.apache.cocoon.acting.SessionValidatorAction/
 map:action name=session-invalidator
src=org.apache.cocoon.acting.SessionInvalidatorAction/
 map:action name=form-validator
logger=sitemap.protected.action.form-validator
src=org.apache.cocoon.acting.FormValidatorAction/
 map:action name=db-authenticator
logger=sitemap.protected.action.db-authenticator
src=org.apache.cocoon.acting.DatabaseAuthenticatorAction/
/map:actions

  map:match pattern=do-login
map:act type=form-validator
  map:parameter name=descriptor
value=context://protected/descriptors/params.xml/
  map:parameter name=validate value=username/
  map:act type=db-authenticator
map:parameter name=descriptor
value=context://protected/descriptors/auth.xml/
map:redirect-to uri=welcome/
  /map:act
/map:act
map:redirect-to uri=login/
  /map:match

auth.xml:
=
auth-descriptor
  connectionpersonnel/connection
  table name=users
select dbcol=name request-param=username to-session=username/
  /table
/auth-descriptor

params.xml
=
parameters-descriptor
  parameter name=username type=string nullable=no/
/parameters-descriptor



What's wrong?
Thank you very much for any help,
Hill


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

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




Re: [FEEDBACK NEEDED] Cocoon build-installation wishlist

2002-04-30 Thread Diana Shannon


On Monday, April 29, 2002, Nicola Ken Barozzi wrote:

 We are in the process of touching the build system to make it easier for
 users to build and deploy Cocoon.

This is exciting news!

 The interactive, installwar and installscratchpadwar targets have been a
 first try in that direction.

 What do you think of them, and what would you like to see in the Cocoon
 build-installation?

+ I don't think the default build target is newbie-friendly. I wish 
typing ./build.sh would bring up projecthelp options. Perhaps there 
needs to be separate user and developer/advanced build.xml files.

+ Newbies trip up all the time about how and when to to build clean. 
Perhaps it needs to be recommended -- interactively -- as an option 
before a build for a selected target begins.

+ I wish projecthelp options were more verbose about the real world 
purpose of the targets. Why is there no information at all about 
subtargets? IMHO are just too many concerns mixed into the single build 
file.

+ I think most users miss the fact interactive builds exist. Even if you 
notice the interactive build files in the tools directory, it's not 
obvious how to use them.

+ I'm wonder exactly how many users actually build their Cocoon WARS, 
as opposed to those who simply download the binary version. Do you have 
access to download statistics?

 Please comment and add at will; detailed descriptions of use cases are 
 very
 welcome.

 [ ] default interactive build
This would help. Make sure there is some degree of error recovery, if 
possible with ant. For example, some interactive builds fail if you 
input the wrong data. This is a little frustrating.

 [ ] creation of minimal Cocoon WAR
This would be wonderful, but I think opinions will vary as to what is 
truly minimal. Perhaps even a minimal build could include some 
additional degree of interaction?

 [ ] creation of personalized build - choose optional components
Great, assuming it includes sitemap and cocoon.xconf synchronization.

 [ ] GUI installation (how?)
Not a high priority for me. Seems to me ant should be sufficient, along 
with a little more echo-based feedback as the build process unfolds.

 [ ] Add your wish
+ I'm not sure this is the responsibility of a build tool, but there's 
always a concern, when I'm learning a new software, about when to apply 
patches, test new scratchpad features, etc. For example, let's say I 
have my finely tuned Cocoon project, working perfectly, but I'd *really* 
like to try some new thing announced on the list. I'd like to add this 
new functionality to my setup, but be able to back out of it, if 
possible. In other words, deconstruct a build. Perhaps this is a best 
practice tip about working effectively with cvs, not the domain of a 
build tool.

+ Is it even practical to think you could generate a head or release 
target out of a one build session?

+ Different configuration files, based on the goal of the build target, 
e.g. development vs. production, recommended memory/cache settings, 
based on deployment environment, etc.

I would love to volunteer for usability testing, down the road, if you 
need some feedback!

Thanks a lot.

Diana


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

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




Unexpected Signal : 11 occurred at PC

2002-04-30 Thread hector De Caceres

Hello!
I have a very serious problem , help me!.

I'm developing an aplications server, and for that I'm
using Cocoon 2.0.2 ,
Tomcat 4.0 (it implements the Servlet 2.3 and JSP 1.2
specifications) and JDK 1.3.1 under UNIX FREBSD.
My processor is an  AMD Athlon XP and these programs
are
binaries versions building for Linux and i386
architecture.
Tomcat is working in stand-alone mode without any
problem until I add the Cocoon.WAR
package for installing Cocoon . In the same form that
is described in the Intalling
Apache Cocoon document that go with the distribution:

 Installing on Tomcat 4.0 - 4.0.1, 4.0.4b1

   Tomcat 4 is a really straight-forward installation.

 1. Build the Cocoon webapp as described above.
 2. Copy cocoon/build/cocoon/cocoon.war into
tomcat/webapps directory.
 3. Start Tomcat: Go to the tomcat/bin directory, and
run the startup script.
 4. Open the Cocoon welcome page:
http://localhost:8080/cocoon/
 5. Congratulations! You should see the Cocoon welcome
page.


In this case , the execution of Tomcat produce this
error message:

Unexpected Signal : 11 occurred at PC=0x8065412
Function name=(N/A)
Library=(N/A)

NOTE: We are unable to locate the function name symbol
for the error
  just occurred. Please refer to release
documentation for possible
  reason and solutions.



Current Java thread:

Dynamic libraries:
Can not get information for pid = 1762

Local Time = Tue Apr 16 21:40:24 2002
Elapsed Time = 9
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002CC
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed
mode)
#
/: write failed , file system is full


And only sometimes in others xterms (konsoles in the
KDE) appears
the following message:

/kernel:pid 1762 (java), uid 0 on /: file system full

However , if I use the df command in the shell  ,
I can see that the / file system is not full.
 It's  only to 62% from his whole capacity! .

Otherwise , I worry about the HotSpot Virtual Machine
Error related above.
What can this error due to?.
Any solution?.
Please , someone can help me!.
You can write your answer to : [EMAIL PROTECTED]
Thank you!.





___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

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

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




Unexpected Signal : 11 occurred at PC

2002-04-30 Thread hector De Caceres

Hello!
I have a very serious problem , help me!.

I'm developing an aplications server, and for that I'm
using Cocoon 2.0.2 ,
Tomcat 4.0 (it implements the Servlet 2.3 and JSP 1.2
specifications) and JDK 1.3.1 under UNIX FREBSD.
My processor is an  AMD Athlon XP and these programs
are
binaries versions building for Linux and i386
architecture.
Tomcat is working in stand-alone mode without any
problem until I add the Cocoon.WAR
package for installing Cocoon . In the same form that
is described in the Intalling
Apache Cocoon document that go with the distribution:

 Installing on Tomcat 4.0 - 4.0.1, 4.0.4b1

   Tomcat 4 is a really straight-forward installation.

 1. Build the Cocoon webapp as described above.
 2. Copy cocoon/build/cocoon/cocoon.war into
tomcat/webapps directory.
 3. Start Tomcat: Go to the tomcat/bin directory, and
run the startup script.
 4. Open the Cocoon welcome page:
http://localhost:8080/cocoon/
 5. Congratulations! You should see the Cocoon welcome
page.


In this case , the execution of Tomcat produce this
error message:

Unexpected Signal : 11 occurred at PC=0x8065412
Function name=(N/A)
Library=(N/A)

NOTE: We are unable to locate the function name symbol
for the error
  just occurred. Please refer to release
documentation for possible
  reason and solutions.



Current Java thread:

Dynamic libraries:
Can not get information for pid = 1762

Local Time = Tue Apr 16 21:40:24 2002
Elapsed Time = 9
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002CC
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed
mode)
#
/: write failed , file system is full


And only sometimes in others xterms (konsoles in the
KDE) appears
the following message:

/kernel:pid 1762 (java), uid 0 on /: file system full

However , if I use the df command in the shell  ,
I can see that the / file system is not full.
 It's  only to 62% from his whole capacity! .

Otherwise , I worry about the HotSpot Virtual Machine
Error related above.
What can this error due to?.
Any solution?.
Please , someone can help me!.
You can write your answer to : [EMAIL PROTECTED]
Thank you!.





___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

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

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




RE: Problem with FormValidatorAction

2002-04-30 Thread Vadim Gritsenko

This one is fixed in the CVS.

Vadim

 From: Hiloliddin Karimov [mailto:[EMAIL PROTECTED]]
 
 Hello all,
 
 Problem with FormValidatorAction.
 I have following on my sitemap.log, when I try Login:
 
 DEBUG   (2002-04-30) 16:10.17:468
[sitemap](/cocoon/protected/do-login)
 HttpProcessor[80][3]/sitemap_xmap: Matched wildcard pattern
protected/**
 DEBUG   (2002-04-30) 16:10.17:468
[sitemap](/cocoon/protected/do-login)
 HttpProcessor[80][3]/AbstractSitemap: Current Sitemap Parameters:
 PARAM: '1' VALUE: 'do-login'
 PARAM: '0' VALUE: 'protected/do-login'
 
 DEBUG   (2002-04-30) 16:10.17:484
 [sitemap.protected.action.form-validator](/cocoon/protected/do-login)
 HttpProcessor[80][3]/AbstractComplementaryConfigurable Action: Using
cached
 configuration for context://protected/descriptors/params.xml
 DEBUG   (2002-04-30) 16:10.17:484
 [sitemap.protected.action.form-validator](/cocoon/protected/do-login)
 HttpProcessor[80][3]/FormValidatorAction: Validating parameters as
specified
 via 'validate' parameter
 DEBUG   (2002-04-30) 16:10.17:484
 [sitemap.protected.action.form-validator](/cocoon/protected/do-login)
 HttpProcessor[80][3]/AbstractValidatorAction: Validating parameter:
username
 DEBUG   (2002-04-30) 16:10.17:484
 [sitemap.protected.action.form-validator](/cocoon/protected/do-login)
 HttpProcessor[80][3]/FormValidatorAction: exception:
 java.lang.NullPointerException
 at

org.apache.cocoon.acting.AbstractValidatorAction.getDefault(AbstractVali
dato
 rAction.java:576)
 at

org.apache.cocoon.acting.AbstractValidatorAction.validateString(Abstract
Vali
 datorAction.java:222)
 at

org.apache.cocoon.acting.AbstractValidatorAction.validateParameter(Abstr
actV
 alidatorAction.java:202)
 at
 org.apache.cocoon.acting.FormValidatorAction.act(FormValidatorAction.
 java:169)
 at

org.apache.cocoon.www.protected_.sitemap_xmap.matchN10049(F:\usr\tomcat\
work

\localhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_
xmap
 .java:629)
 at

org.apache.cocoon.www.protected_.sitemap_xmap.process(F:\usr\tomcat\work
\loc

alhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_xmap
.jav
 a:435)
 at

org.apache.cocoon.www.protected_.sitemap_xmap.process(F:\usr\tomcat\work
\loc

alhost\cocoon\cocoon-files\org/apache/cocoon/www/protected_\sitemap_xmap
.jav
 a:368)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 ...
 
 
 sitemap.xmap:
 =
 
 map:actions
  map:action name=session-validator
 src=org.apache.cocoon.acting.SessionValidatorAction/
  map:action name=session-invalidator
 src=org.apache.cocoon.acting.SessionInvalidatorAction/
  map:action name=form-validator
 logger=sitemap.protected.action.form-validator
 src=org.apache.cocoon.acting.FormValidatorAction/
  map:action name=db-authenticator
 logger=sitemap.protected.action.db-authenticator
 src=org.apache.cocoon.acting.DatabaseAuthenticatorAction/
 /map:actions
 
   map:match pattern=do-login
 map:act type=form-validator
   map:parameter name=descriptor
 value=context://protected/descriptors/params.xml/
   map:parameter name=validate value=username/
   map:act type=db-authenticator
 map:parameter name=descriptor
 value=context://protected/descriptors/auth.xml/
 map:redirect-to uri=welcome/
   /map:act
 /map:act
 map:redirect-to uri=login/
   /map:match
 
 auth.xml:
 =
 auth-descriptor
   connectionpersonnel/connection
   table name=users
 select dbcol=name request-param=username
to-session=username/
   /table
 /auth-descriptor
 
 params.xml
 =
 parameters-descriptor
   parameter name=username type=string nullable=no/
 /parameters-descriptor
 
 
 
 What's wrong?
 Thank you very much for any help,
 Hill
 


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

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




RE: Livesites: Be Blogging

2002-04-30 Thread Vadim Gritsenko

 From: Ugo Cei [mailto:[EMAIL PROTECTED]]
 
 Having finally implemented caching, my humble Cocoon2-based weblog
 should be able to withstand the hordes of developers that will be
 hitting it ;).
 
 As soon as I finish refactoring and cleaning the code, I plan to
release
 it to the community. Stay tuned!
 
 So, please add http://www.beblogging.com/blog/ to the list of
 Cocoon2-powered websites.

You've got it :)

Vadim


   Ugo
 
 --
 Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
 P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
 Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
 


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

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




Re: Livesites: Be Blogging

2002-04-30 Thread Ugo Cei

Vadim Gritsenko wrote:

So, please add http://www.beblogging.com/blog/ to the list of
Cocoon2-powered websites.
 
 
 You've got it :)
 
 Vadim

Thank you, Vadim.

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


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

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




xsp logicsheet

2002-04-30 Thread Bert Van Kets

I want to use an XSP logicsheet to process the values submitted by a 
form.  In this page I have the following code (simplified):

   xsl:template match=list
 xsl:for-each select=element
   xsl:sort select=name/
   xsp:logic
 String temp = xsl:value-of select=name/;
   /xsp:logic
 /xsl:for-each
myQueryxsp:exprtemp/xsp:expr/myQuery
   /xsl:template

When I try to run this simple code I get an error saying
org.apache.cocoon.ProcessingException: Exception in creating Transform 
Handler: org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
listCreateQuery_xsp:
Line 263, column -1: incompatible types
Line 0, column 0:
1 error

The code block in the generated java file that throws the error is
 String temp =
 xspAttr.addAttribute(
   ,
   select,
   select,
   CDATA,
   name
 );

How can I get the string value out of a node in xsp:logic  Using 
text(name) doesn't work either.
Bert

My spelling is Wobbly.  It's good spelling but it Wobbles, and the letters
  get in the wrong places. A. A. Milne (1882-1958)


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

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




Re: Cocoon will not run

2002-04-30 Thread Andreas Rittershofer

On 30 Apr 2002 at 7:53, Andreas Rittershofer wrote:

 My setup is:
 Java 1.3.1
 Tomcat 4.0.3 (examples are running fine)
 Cocoon 2.0.2
 
 When I invoke
 http://host:8080/cocoon
 I get:
 
 Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
 
 --
 --
 
 type Exception report
 
 message Internal Server Error
 
 description The server encountered an internal error (Internal Server 
 Error) that prevented it from fulfilling this request.
 
 exception 
 
 javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 
 threw exception
   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
 ava:935)
   at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
 :653)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
 lve.java:214)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
 lve.java:190)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
 343)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
 va:180)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
 Valve.java:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
 va:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
   at 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:4
 68)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
 e.java:174)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor
 .java:1012)
   at 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.jav
 a:1107)
   at java.lang.Thread.run(Thread.java:484)
 
 
 root cause 
 
 java.lang.NoClassDefFoundError: javax/xml/transform/Source
   at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183)
   at 
 org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.jav
 a:1209)
   at 
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
 ava:916)
   at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
 :653)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
 lve.java:214)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
 lve.java:190)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
 343)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
 va:180)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
 Valve.java:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
 va:170)
   at 
 

Re: xsp logicsheet

2002-04-30 Thread Konstantin Piroumian

From: Bert Van Kets [EMAIL PROTECTED]
 I want to use an XSP logicsheet to process the values submitted by a
 form.  In this page I have the following code (simplified):

xsl:template match=list
  xsl:for-each select=element
xsl:sort select=name/
xsp:logic
  String temp = xsl:value-of select=name/;

Maybe would help:
String temp = xsl:value-of select=name/;

/xsp:logic
  /xsl:for-each
 myQueryxsp:exprtemp/xsp:expr/myQuery
/xsl:template

 When I try to run this simple code I get an error saying
 org.apache.cocoon.ProcessingException: Exception in creating Transform
 Handler: org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 listCreateQuery_xsp:
 Line 263, column -1: incompatible types
 Line 0, column 0:
 1 error

 The code block in the generated java file that throws the error is
  String temp =
  xspAttr.addAttribute(
,
select,
select,
CDATA,
name
  );

Sure this won't compile.

--
  Konstantin


 How can I get the string value out of a node in xsp:logic  Using
 text(name) doesn't work either.
 Bert

 My spelling is Wobbly.  It's good spelling but it Wobbles, and the
letters
   get in the wrong places. A. A. Milne (1882-1958)


 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




wysiwyg - development tool

2002-04-30 Thread gerald . michalitz

is ther any wysiwyg - development tool for developing sidemaps or webapps with cocoon ?


Versendet durch Jet2Web Internet - Webmail (webmail.jet2web.net)

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

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




any sites optimised for handhelds

2002-04-30 Thread caleb racey

Sorry if this is off topic

Are there any cocoon 2 based sites out there that have a section with
output optimised for small screens, handhelds  pda etc

My boss has just purchased a iPAQ and is browsing around..it would
make the process of selling cocoon easier if I could show off the 1
source of content seamlessly delivered to many platforms concept.

The ipaq uses a cut down version of IE and has a resolution of 240 x 320
With a viewable image 2.26 wide x 3.02 tall 

Thank you in advance
 


  




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

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




RE: any sites optimised for handhelds

2002-04-30 Thread Matthew Langham

Does the iPAQ have a WAP (WML) browser? If so I may have something:

Our demo site:

http://sunshine.s-und-n.de

Go there, logon with guest/guest and look at the banking news at the
bottom of the portal.

Then enter the following URL into the WML browser:

http://sunshine.s-und-n.de/sunshine/sunbanksunlet-banking.wml

Same news, different media.

Hope this helps

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
 Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
=



-Original Message-
From: caleb racey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 4:12 PM
To: [EMAIL PROTECTED]
Subject: any sites optimised for handhelds


Sorry if this is off topic

Are there any cocoon 2 based sites out there that have a section with
output optimised for small screens, handhelds  pda etc

My boss has just purchased a iPAQ and is browsing around..it would
make the process of selling cocoon easier if I could show off the 1
source of content seamlessly delivered to many platforms concept.

The ipaq uses a cut down version of IE and has a resolution of 240 x 320
With a viewable image 2.26 wide x 3.02 tall

Thank you in advance








-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




Question to the example protected, Error: java.sql.SQLException: No suitable driver

2002-04-30 Thread Christian SCHRTER

Hi,

I want to use this login-function which is offered in the 
protected-Subdirectory of cocoon.

I want to store/read the logininformations in a database. I created a 
jdbc-connection in the cocoon.xconf File, which i can use successfully with 
esql in xsp-pages.
Now i rewrite the auth.xml like this:

auth-descriptor
  connectiondb-test/connection
  table name=test_user
select dbcol=pk_Kennung request-param=username 
to-session=username/
select dbcol=fk_woanders to-session=department_id type=long/
  /table
/auth-descriptor

Unfortunatly it do not want to work. 
In core.logs i get this errormessage:

java.sql.SQLException: No suitable driver

And then, i am redirected to login.

I do not understand why i cant the same connectionpool here as i 
successfully use in the xsp-pages.
Can somebody tell me  what i must change, so that it will work?


cu,
Christian

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

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




RE: cocoon class(es) at SD West 2002; XSP question

2002-04-30 Thread Rick

thanks for your prompt reply, Vadim. i apologize for my poor choice of
words (and i call myself a WRITER! sheesh!).

by incoming i meant sauntering gaily down the pipeline. for example,
i want to take kazoo.xml, a static file lurking on my disk, slurp it
with a FileGenerator, and then mess it about with some Java logic -- but
(so far) i haven't found a way to do that.

OTOH, you've shown me a useful technique for other applications, so
merci encore.

rw

On Mon, 2002-04-29 at 13:44, Vadim Gritsenko wrote:
 Define incoming XML here. Is it XML posted as http request's body? Or
 request parameter containing XML? I will assume latter.
 
 You could (skipping all preparations):
 
 Node node =
 XPathAPI.selectNode(parser.parse(request.getParameter(xmlparam),
 kazoo);
 




signature.asc
Description: This is a digitally signed message part


[Fwd: Redirector and character encoding]

2002-04-30 Thread Ivan Rubin

I'm encoding URLs now with URIUtil from apache for redirecting.

On the action that receives and parses the requests I set ISO-8859-1 
encoding for GET requests, and UTF-8 for POST requests, and it's working.

Thanks,

 Original Message 
Subject: Redirector and character encoding
Date: Sun, 28 Apr 2002 15:32:32 -0300
From: Ivan Rubin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

Hello,

I'm using Redirector.redirect with a url like message?msg=Confirmación
test

The action that process the http requests uses
Request.setCharacterEncoding at the beginning, and it works fine when I
receive form posts with special characters, but it doesn't when I
receive a URL with parameters.

Some encoding is going on as spaces are translated to %20, but not
special characters áéíóú.

There's a way to avoid encoding the url I pass to redirect(
bsessionmode, sUrl ) or, if I have to encode it, some helper method to
do it?

I'm with cocoon-2.0.2 over tomcat 4.0.1

Thanks,

Ivan



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

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




Use of sitemap parameter in xslt

2002-04-30 Thread Margrit John

Hi!
I am new to cocoon.

In the sitemap I have the following example:

map:match pattern=*/*/*/
  map:generate type=directory src={1}/{2}/articles/{3}/
  map:transform src=test.xsl
map:paramter name=channel value={1}/
map:paramter name=section value={2}/
map:paramter name=year value={3}/
  /map:transform
  map:serialize type=html/
/map:match

In my stylesheet (test.xsl), I want to use the parameters channel, 
section, year.

After a global declaration, I try to use them like this:

xsl:value-of select=$channel/

This doesn't seem to work.  What is wrong?

Thanks
Margrit


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

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




RE: Cocoon will not run

2002-04-30 Thread Ricardo Trindade

if you can, upgrading to 4.0.4 will resolve the issue

-Original Message-
From: Andreas Rittershofer [mailto:[EMAIL PROTECTED]]
Sent: terca-feira, 30 de Abril de 2002 12:21
To: [EMAIL PROTECTED]
Subject: Re: Cocoon will not run


On 30 Apr 2002 at 7:53, Andreas Rittershofer wrote:

 My setup is:
 Java 1.3.1
 Tomcat 4.0.3 (examples are running fine)
 Cocoon 2.0.2
 
 When I invoke
 http://host:8080/cocoon
 I get:
 
 Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
 
 --
 --
 
 type Exception report
 
 message Internal Server Error
 
 description The server encountered an internal error (Internal Server 
 Error) that prevented it from fulfilling this request.
 
 exception 
 
 javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 
 threw exception
   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
 ava:935)
   at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
 :653)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
 lve.java:214)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
 lve.java:190)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
 343)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
 va:180)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
 Valve.java:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
 va:170)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
   at 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:4
 68)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:564)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
 e.java:174)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor
 .java:1012)
   at 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.jav
 a:1107)
   at java.lang.Thread.run(Thread.java:484)
 
 
 root cause 
 
 java.lang.NoClassDefFoundError: javax/xml/transform/Source
   at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183)
   at 
 org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.jav
 a:1209)
   at 
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
 ava:916)
   at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
 :653)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
 lve.java:214)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
 lve.java:190)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
 343)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
 va:180)
   at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
 java:566)
   at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
 Valve.java:170)
   at 
 

Actions Programming

2002-04-30 Thread Michael Mangeng



Hi

I´ve encountered a little/funny problem when trying 
to recreate the simple hello world action.
I´ve used the sample code (without the 
org.xml.sax.EntityResolver import because i think i do not need it 
here).

Cocoon realizes that it needs to replace {world} 
with 'hello' in the stiemap as set in the siteParams hashmap in the class. But 
when i request the file via a web browser, i can only see 
quote
Hello .
/quote
There is no typo in the class where i do a 
request.setAttribute("hello", "world") to request.. which is 
objectModel.get(Constants.REQUEST_OBJECT);

The strange thing here is that the class for itself 
is loaded successfully (without that, cocoon would not know that it has to 
replace {world} with hello in the sitemap...

Any ideas ?

greetings
mike
austria



Use of sitemap parameter in xslt

2002-04-30 Thread Margrit John

Hi!
I am new to cocoon.

In the sitemap I have the following example:

map:match pattern=*/*/*/
  map:generate type=directory src={1}/{2}/articles/{3}/
  map:transform src=test.xsl
map:paramter name=channel value={1}/
map:paramter name=section value={2}/
map:paramter name=year value={3}/ 
  /map:transform
  map:serialize type=html/
/map:match


In my stylesheet (test.xsl), want to use the parameter channel, section, 
year.

After a global declaration, I try to use them like this:

xsl:value-of select=$channel/

This doesn't seem to work.  What is wrong?

Thanks
Margrit

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

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




RE: xsp logicsheet

2002-04-30 Thread Alejandro Raiczyk
Title: RE: xsp logicsheet





I guess it's


 String temp = xsl:value-of select=name/;


or


 String temp = new String(xsl:value-of select=name/);


Alejandro


-Mensaje original-
De: Bert Van Kets [mailto:[EMAIL PROTECTED]]
Enviado el: Martes 30 de Abril de 2002 10:37 AM
Para: [EMAIL PROTECTED]
Asunto: xsp logicsheet



I want to use an XSP logicsheet to process the values submitted by a 
form. In this page I have the following code (simplified):


 xsl:template match=list
 xsl:for-each select=element
 xsl:sort select=name/
 xsp:logic
 String temp = xsl:value-of select=name/;
 /xsp:logic
 /xsl:for-each
 myQueryxsp:exprtemp/xsp:expr/myQuery
 /xsl:template


When I try to run this simple code I get an error saying
org.apache.cocoon.ProcessingException: Exception in creating Transform 
Handler: org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
listCreateQuery_xsp:
Line 263, column -1: incompatible types
Line 0, column 0:
1 error


The code block in the generated java file that throws the error is
 String temp =
 xspAttr.addAttribute(
 ,
 select,
 select,
 CDATA,
 name
 );


How can I get the string value out of a node in xsp:logic Using 
text(name) doesn't work either.
Bert


My spelling is Wobbly. It's good spelling but it Wobbles, and the letters
 get in the wrong places. A. A. Milne (1882-1958)



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


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





Including generated content

2002-04-30 Thread Avi Kivity

I'd like to include content generated by on XSP in another. Looks like I 
have three options:

1. Use map:aggregate/ - I don't want to do that as it doesn't allow me 
control of where to place content (I'd like to place one document inside 
another, not alongside).

2. The xinclude/cinclude transformers - two problems: they don't work 
with absolute URLs (eg cocoon://mydoc.xsp; I patched this) and they 
don't understand the cocoon: protocol (anybody know how to work around 
this?)

3. Use util:include-uri/ from the util logicsheet. This is limited to 
one XSP including some other content, but is good enough for me except 
that it doesn't understand cocoon: either.

Any pointers?

Thanks,
Avi


-- 
This space for rent.


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

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




Multiple independent XSLT transforms applied to one XML file.

2002-04-30 Thread Fabricio Chalub

Hello, I suppose this is the kind of email that possibly reflects a deep
misunderstanding of the basic principles on which Cocoon relies. If that is
the case, just warn me. ;)

The simple question is:

Using Cocoon (possibly through the sitemap), how do I process a XML file
that combines two different DTDs with two *separate* XSLT transforms?  Or
even using a single combined DTD, in which but a part of it goes to one XSLT
file and part is processed by another XSLT file.

---

The complete question (with examples) is:

Suppose I have a very simple site DTD:

site
  people
person

  [whatever]

/person
  /people
/site

And suppose I have a XSLT that transforms into a complete HTML page, like:

htmlbody
ul
li[whatever]/li
/ul
/body/html

OK.  Now suppose that I have another DTD that defines a specific class of
person, a teacher, that I want to mantain separately:

teacher
  nameJohn S./name
  classBiology/class
/teacher

And I have a standard XSLT that transforms this into a HTML fragment, like:

pbName:/b John S./p
pbClass:/b Biology/p.

Now I have a XML file like this, combining both DTDs:

page
  people
person

!-- this using is the teacher DTD --
  teacher
nameJohn S./name
classBiology/class
  /teacher
!-- this using is the teacher DTD --

/person
  /people
/page

Naturally, I want to generate a complete HTML of the above output using both
transformations.

I also want to keep both XSLT files separate and independent, since I may
want to reuse the XSLT and DTD for the teacher on other parts of my site and
supporting systems.

I really want to do this at the sitemap level on Cocoon.  Is there any way
to do this?  Maybe dinamically merging both XSLT files?

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

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




Cocoon Tomcat

2002-04-30 Thread Anthony Diodato

Hello All,
Im running Cocoon 1.8.2, and Tomcat 3.2.4, and my question is this.

How can I tell Tomcat, that any link or url that ends in / should go to
/index.xml

Thanks
Anthony Diodato

Anthony Diodato
Webmaster - IT
Prophet 21, Inc.
19 West College Avenue
Yardley, PA 19067
1-800-776-7438, ext. 4600
Fax: 215-321-8014 
[EMAIL PROTECTED]
http://www.p21.com/
Prophet 21 -- Powering the Distribution Industry for the Digital Age 

For the latest press releases from Prophet 21 --
http://www.p21.com/press/press.html 
*   2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise
(E2E) Commerce 
*   2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available
*   2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim
For the latest articles on Prophet 21
http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate.
htm 
http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm 
http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm




Visit our website at http://www.p21.com/visit 
The information in this e-mail is confidential and may contain legally
privileged information.  It is intended solely for the person or entity to
which it is addressed.  Access to this e-mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution, action taken, or action omitted to be taken in
reliance on it, is prohibited and may be unlawful.  If you received this
e-mail in error, please contact the sender and delete the material from any
computer. 



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

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




RE: any sites optimised for handhelds

2002-04-30 Thread Bert Van Kets

A PDA uses a HTML browser.  The screen is only a quarter of a regular VGA 
screen.  Due to this size factor sites need to be optimized for this device.
The best PDA browser is said to be Opera.
Client detection for a PDA is very simple with Cocoon since these browser 
have a unique client string.
Bert

At 16:22 30/04/2002 +0200, you wrote:
Does the iPAQ have a WAP (WML) browser? If so I may have something:

Our demo site:

http://sunshine.s-und-n.de

Go there, logon with guest/guest and look at the banking news at the
bottom of the portal.

Then enter the following URL into the WML browser:

http://sunshine.s-und-n.de/sunshine/sunbanksunlet-banking.wml

Same news, different media.

Hope this helps

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
Weblogging at: http://www.need-a-cake.com
  Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
=



-Original Message-
From: caleb racey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 4:12 PM
To: [EMAIL PROTECTED]
Subject: any sites optimised for handhelds


Sorry if this is off topic

Are there any cocoon 2 based sites out there that have a section with
output optimised for small screens, handhelds  pda etc

My boss has just purchased a iPAQ and is browsing around..it would
make the process of selling cocoon easier if I could show off the 1
source of content seamlessly delivered to many platforms concept.

The ipaq uses a cut down version of IE and has a resolution of 240 x 320
With a viewable image 2.26 wide x 3.02 tall

Thank you in advance








-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html

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




Re: Multiple independent XSLT transforms applied to one XML file.

2002-04-30 Thread Erwin

On Tue, 30 Apr 2002, Fabricio Chalub wrote:

 Hello, I suppose this is the kind of email that possibly reflects a deep
 misunderstanding of the basic principles on which Cocoon relies. If that is
 the case, just warn me. ;)

 The simple question is:

 Using Cocoon (possibly through the sitemap), how do I process a XML file
 that combines two different DTDs with two *separate* XSLT transforms?  Or
 even using a single combined DTD, in which but a part of it goes to one XSLT
 file and part is processed by another XSLT file.

 ---


Have you considered using xsl:include or xsl:import in your XSLT
stylesheets?

You could make one new xslt stylesheet and include/import the two other
stylesheets and refer to this new stylesheet in the sitemap. If needed,
you could override some templates in the new stylesheet.

Have a look at http://www.w3.org/TR/xslt11/#N1316 for more details.

Some other links:
http://www.webreference.com/xml/column17/
http://www.zvon.org/HTMLonly/XSLTutorial/Books/Book1/bookInOne.html#chapter17




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

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




Re: Use of sitemap parameter in xslt

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 07:14 PM, Margrit John wrote:
 Hi!
 I am new to cocoon.
 
 In the sitemap I have the following example:
 
 map:match pattern=*/*/*/
   map:generate type=directory src={1}/{2}/articles/{3}/
   map:transform src=test.xsl
 map:paramter name=channel value={1}/
 map:paramter name=section value={2}/
 map:paramter name=year value={3}/
   /map:transform
   map:serialize type=html/
 /map:match
 
 In my stylesheet (test.xsl), I want to use the parameters channel, 
 section, year.
 
 After a global declaration, I try to use them like this:
 
 xsl:value-of select=$channel/
 
 This doesn't seem to work.  What is wrong?

Do you have a xsl:param name=channel/ element (top level) in your XSL?

Have a look at $COCOON/src/webapp/stylesheets/page/simple-page2html.xsl
and sitemap.

Chris.

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

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

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




RE: Multiple independent XSLT transforms applied to one XML file.

2002-04-30 Thread Fabricio Chalub

 
 Have you considered using xsl:include or xsl:import in your XSLT
 stylesheets?
 

True, that would be one solution, but I *really* wanted to keep the XSLT
files as independent as possible and centralize this kind of configuration
on the sitemap (otherwise on the long run I would have dozens of
interdependend XSLT files spread around my stylesheet for the site).

Of course, if there is no other way, I'll have to stick to it...

fc

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

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




Re: Multiple independent XSLT transforms applied to one XML file.

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 03:29 PM, Fabricio Chalub wrote:
 Hello, I suppose this is the kind of email that possibly reflects a deep
 misunderstanding of the basic principles on which Cocoon relies. If that is
 the case, just warn me. ;)
 
 The simple question is:
 
 Using Cocoon (possibly through the sitemap), how do I process a XML file
 that combines two different DTDs with two *separate* XSLT transforms?  Or
 even using a single combined DTD, in which but a part of it goes to one XSLT
 file and part is processed by another XSLT file.

you can add any number of transformations. just add another transformer line
to your pipeline with the second stylesheet.

Chris.

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

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

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




Re: Actions Programming

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 07:59 PM, Michael Mangeng wrote:
 Hi
 
 I´ve encountered a little/funny problem when trying to recreate the simple hello 
world action.
 I´ve used the sample code (without the org.xml.sax.EntityResolver import because i 
think i do not need it here).
 
 Cocoon realizes that it needs to replace {world} with 'hello' in the stiemap as set 
in the siteParams hashmap in the class. But when i request the file via a web 
browser, i can only see 
 quote
 Hello .
 /quote
 There is no typo in the class where i do a request.setAttribute(hello, world) to 
request.. which is objectModel.get(Constants.REQUEST_OBJECT);
 
 The strange thing here is that the class for itself is loaded successfully (without 
that, cocoon would not know that it has to replace {world} with hello in the 
sitemap...
 
 Any ideas ?

Did you declare the xsp-request namespace?

Chris.

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

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

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




RE: Multiple independent XSLT transforms applied to one XML file.

2002-04-30 Thread Fabricio Chalub

 you can add any number of transformations. just add another 
 transformer line
 to your pipeline with the second stylesheet.

Thanks!  I have tried this and it appears to me that only the last XSLT
transform is applied.  I guess I am not using the sitemap corretly, then?
This is what am I using:

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

map:match pattern=*
map:generate src=documents/{1}.xml/

   map:transform src=stylesheets/site.xsl /
   map:transform src=stylesheets/teacher.xsl /

[...]

Is this the correct way of doing it?

fc

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

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




RE: xsp logicsheet

2002-04-30 Thread Bert Van Kets

Oh my God!! I can't believe how stupid this mistake is.
Guess that's what happens when you work 12 to 14 hours a day, six days a week.
I was already getting out my XML books and checking out how to make sure a 
node returned text.
Thanks,  I guess I'll be off to bed early tonight.
Bert

At 10:38 30/04/2002 -0300, you wrote:

I guess it's

  String temp = xsl:value-of select=name/;

or

  String temp = new String(xsl:value-of select=name/);

Alejandro

-Mensaje original-
De: Bert Van Kets [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]]
Enviado el: Martes 30 de Abril de 2002 10:37 AM
Para: [EMAIL PROTECTED]
Asunto: xsp logicsheet

I want to use an XSP logicsheet to process the values submitted by a
form.  In this page I have the following code (simplified):

xsl:template match=list
  xsl:for-each select=element
xsl:sort select=name/
xsp:logic
  String temp = xsl:value-of select=name/;
/xsp:logic
  /xsl:for-each
 myQueryxsp:exprtemp/xsp:expr/myQuery
/xsl:template

When I try to run this simple code I get an error saying
org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler: org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
listCreateQuery_xsp:
Line 263, column -1: incompatible types
Line 0, column 0:
1 error

The code block in the generated java file that throws the error is
  String temp =
  xspAttr.addAttribute(
,
select,
select,
CDATA,
name
  );

How can I get the string value out of a node in xsp:logic  Using
text(name) doesn't work either.
Bert

My spelling is Wobbly.  It's good spelling but it Wobbles, and the letters
   get in the wrong places. A. A. Milne (1882-1958)

-
Please check that your question has not already been answered in the
FAQ before posting. 
http://xml.apache.org/cocoon/faqs.htmlhttp://xml.apache.org/cocoon/faqs.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/faqs.html

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




Re: Use of sitemap parameter in xslt

2002-04-30 Thread Margrit John

I just realised there was a misspelling. Of course it is parameter and not 
paramter. That solved my problem.

Margrit

Am Dienstag, 30. April 2002 21:00 schrieben Sie:
 On 30.Apr.2002 -- 07:14 PM, Margrit John wrote:
  Hi!
  I am new to cocoon.
 
  In the sitemap I have the following example:
 
  map:match pattern=*/*/*/
map:generate type=directory src={1}/{2}/articles/{3}/
map:transform src=test.xsl
  map:paramter name=channel value={1}/
  map:paramter name=section value={2}/
  map:paramter name=year value={3}/
/map:transform
map:serialize type=html/
  /map:match
 
  In my stylesheet (test.xsl), I want to use the parameters channel,
  section, year.
 
  After a global declaration, I try to use them like this:
 
  xsl:value-of select=$channel/
 
  This doesn't seem to work.  What is wrong?

 Do you have a xsl:param name=channel/ element (top level) in your XSL?

 Have a look at $COCOON/src/webapp/stylesheets/page/simple-page2html.xsl
 and sitemap.

   Chris.

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

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




RE: xsp logicsheet

2002-04-30 Thread Bert Van Kets

At 10:38 30/04/2002 -0300, you wrote:

I guess it's

  String temp = xsl:value-of select=name/;

or

  String temp = new String(xsl:value-of select=name/);

Alejandro
Tried it, doesn't work.  I guess it must be a bug.
If I use
String temp = xsl:value-of select=name/
I get

org.apache.cocoon.ProcessingException: Exception in creating Transform 
Handler: org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
listCreateQuery_xsp:
Line 252, column 23: unclosed character literal
Line 252, column 22: illegal start of expression
Line 278, column 6: unclosed character literal
Line 278, column 4: illegal start of expression
Line 0, column 0:
4 errors

The code snipet it refers to is

 String temp = 
 xspAttr.addAttribute(
   ,
   select,
   select,
   CDATA,
   name
 );


 this.contentHandler.startElement(
   http://www.w3.org/1999/XSL/Transform;,
   value-of,
   xsl:value-of,
   xspAttr
 );
 xspAttr.clear();



 this.contentHandler.endElement(
   http://www.w3.org/1999/XSL/Transform;,
   value-of,
   xsl:value-of
 );

 ;

As you can see the string is closed three commands down.  There is no way 
this can work.
Is there another way to store the content of a node in a string?

Bert

BTW I'm using todays CVS


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

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




Not assigning value to variable during transform

2002-04-30 Thread Don Wellington

Hi-

I am using weblogic 6.1 with cocoon 2.0.2.  I am
having a strange problem when formatting a docbook
document to pdf using docbook-xsl-1.41.  What is
happening is that the first time a chapter level
element template is called the variables for that
template are not getting values. So, I end up with a
page-sequence with an empty master-reference
attribute.  Subsequent places where the template occur
seem to be behaving properly.  I have verified this by
having the sitemap serialize the pipeline using xml
instead of fo2pdf.  Even stranger is that this doesn't
happen with every document, 1 out of the 4 documents I
am tranforming works.  Viewing the fo output, the
files a nearly identical in terms of markup up to the
point of the empty master-reference.

If I fill in the master-reference with just a hand
written value there isn't a problem.  Also, all files
transform perfectly with cocoon 2.0.2 on tomcat
(different computer and classpath setup), and with
command line Xalan.

Some thoughts I have are:
1) Could Weblogic be using the wrong tranform engine,
or parts of transform engines, and that cause this? 
 
2) How would I find out what version of Xalan or what
.jar is being used by Cocoon for a transform?

Has anyone else seen had this happen? How did you fix
it?

Thanks,
Don

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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

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




Livesites

2002-04-30 Thread Brad Rippe








To whom it may concern,



I would like to notify you of the Live Site at Fullerton College using your
great piece of software "Cocoon 2".

Here's the url http://zeus.fullcoll.edu/timekeeper/
- Fullerton College TimeKeeper. Thanks!



Brad Rippe

Computer Programmer, Sr.

Fullerton College








HSSF serializer/ Gnumeric file format information

2002-04-30 Thread Michael Aracic

Please forgive me for asking somewhat basic questions, but I'm new to the list, and to 
cocoon. I've read a lot of the online documentation, and I can't find anything 
detailed or up to date about the HSSF serializer.
I'm developing a hands-off way to generate reports in excel format without necessarily 
depending on windows hosted code.
From what I've read, the most platform-independent, flexible way of doing this is 
currently using Cocoon's HSSF serializer. It sounds like the simplest approach is to 
create an XSL stylesheet that will transform our reporting program's XML output into 
Gnumeric style XML, then run cocoon in command line mode, reading in the XML reports. 
Cocoon will be configured to do the transformation, then use the HSSF serializer to 
output excel files.
My questions are:
1. Have I overlooked anything huge?
2. Where can I find information on HSSF or the Gnumeric file format? I've used all the 
major search engines and looked at all relevant project pages, and I haven't been able 
to find what I need, which would include a description of the Gnumeric file format, 
and exactly how the HSSF serializer needs to be fed its input.
3. I imagine that the differences between the XML that comes out of my reports 
program, and the XML that is required by the serializer will be quite profound. Are 
there any tools or resources that can help me write the XSL stylesheet? I've read 
dozens of explanations of how to transform different kinds of XML documents into HTML, 
but very few about how to transform it into anything else.
Thanks,
Michael Aracic

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

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




{0} sitemap parameter in regexp matcher

2002-04-30 Thread Artur Bialecki


Is {0} not available when using sitemap matcher?
I have a sub-sitemap where

This works (wildcard):

   map:match 
 pattern=product/category_edit.xml
 map:act type=update-ejb
   map:generate type=serverpages src={../0}/
 /map:act
 map:transform type=xinclude/ 
 map:transform src=product/category.xsl/
 map:serialize/
   /map:match

but this doesn't (regexp):

   map:match type=regexp
 pattern=product/category_(view|edit)\.xml
 map:act type=update-entity
   map:generate type=serverpages src={../0}/
 /map:act
 map:transform type=xinclude/ 
 map:transform src=product/category.xsl/
 map:serialize/
   /map:match

to make the generator find source I have to do:
src=product/category_{../1}.xml

Any ideas ?


Artur...



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

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




C2 + MacOS X + MySQL

2002-04-30 Thread Zack Angelo








Hey, I suppose I should take a brief moment to introduce
myself. Im Zack Angelo from New
  Orleansphew there, did it ;) 



Anyway, Ive perused the digest in hopes of finding a
solution to my problem, but to my disappointment, didnt find anything.



From what I can see, a lot of people have been having
problems with my configuration. It seems that mine are a bit different though.
Ive checked the logs and the stack traces, and it appears to be loading
the driver (org.gjt.mm.mysql.Driver) successfully. It then goes on to execute my ESQL XSP
code and falls on its face with a SQLException (not
an access denied one) and some weird problems with the String class not having
a method. I was hoping someone could give me some insight as to what is going
on, because Im completely stumped. Heres a copy of the exception:




ERROR
(2002-04-30) 15:49.15:424
[access](/cocoon/malin/voicemail/web/getmessages)
HttpProcessor[8080][4]/CocoonServlet:
Problem with servlet

org.apache.cocoon.ProcessingException: Language
Exception: org.apache.cocoon.components.language.LanguageException:
Error compiling getmessages_xsp:

Line 397, column 58:
method valueOf() not found in class java.lang.String

Line 508, column 82:
unreported exception: java.sql.SQLException;
must be caught or declared to be thrown

Line 535, column 82:
unreported exception: java.sql.SQLException;
must be caught or declared to be thrown

Line 562, column 84:
unreported exception: java.sql.SQLException;
must be caught or declared to be thrown

Line 613, column 51:
unreported exception: java.sql.SQLException;
must be caught or declared to be thrown

Line 622, column 27:
unreported exception: java.sql.SQLException;
must be caught or declared to be thrown

Line 0, column 0:

6 errors



Later,

Zack








RE: Actions Programming

2002-04-30 Thread Lai, Harry

Hi Michael,

I may be wrong on this, but I believe there's a typo in the hello world
sample.  In your xsp, make sure you're looking for an ATTRIBUTE named
hello - not a PARAMETER.  If I remember right, the sample accidentally
does a getParameter instead of a getAttribute.  =)  Hope that helps!

Harry


-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 2:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Actions Programming


On 30.Apr.2002 -- 07:59 PM, Michael Mangeng wrote:
 Hi
 
 I´ve encountered a little/funny problem when trying to recreate the simple
hello world action.
 I´ve used the sample code (without the org.xml.sax.EntityResolver import
because i think i do not need it here).
 
 Cocoon realizes that it needs to replace {world} with 'hello' in the
stiemap as set in the siteParams hashmap in the class. But when i request
the file via a web browser, i can only see 
 quote
 Hello .
 /quote
 There is no typo in the class where i do a request.setAttribute(hello,
world) to request.. which is objectModel.get(Constants.REQUEST_OBJECT);
 
 The strange thing here is that the class for itself is loaded successfully
(without that, cocoon would not know that it has to replace {world} with
hello in the sitemap...
 
 Any ideas ?

Did you declare the xsp-request namespace?

Chris.

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




RE: Cant get an request from an action to org.apache.cocoon.

2002-04-30 Thread Lai, Harry

Hi Markus,

In your XSP, try using get-attribute instead of get-parameter.  If I
remember right, that was a typo in the hello world sample in the docs.  =)

Harry

-Original Message-
From: Markus Locher, IE-Services [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 5:30 AM
To: Cocoon Mailinglist
Subject: Can´t get an request from an action to org.apache.cocoon.


Hello Folks,

I added a self-developed action to org/apache/cocoon with a path from there
like ask/auth. Under auth I have created a servlet called Login.java. You
guessed!.. I am trying to create a login-action for internal use (I know
there is a sample, but that doesn´t fit our needs).

The Login-Servlet gives me a Map back (nothing new) and it sets an attribute
to a Request like ...

   Request.setAttribute(hello,world);

as in the docs from Cocoon!!! Creating and Using Actions.

The value of the Map is read successfully in the sitemap.xmap, but the
request values can't be read out within an xsp-page.

What's wrong?
Login.java
package org.apache.cocoon.ask.auth;

import org.apache.avalon.framework.parameters.Parameters;
import org.apache.avalon.framework.thread.ThreadSafe;
import org.apache.cocoon.acting.AbstractAction;
import org.apache.cocoon.Constants;
import java.util.Map;
import java.util.HashMap;
import org.apache.cocoon.environment.*;
import org.xml.sax.EntityResolver;

public class Login extends  AbstractAction
 implements  ThreadSafe {

  public Map act (Redirector   redirector,
  SourceResolver resolver,
  Map objectModel,
  String   source,
  Parameters   params
   ) {

Map  sitemapParams  = new HashMap();
  sitemapParams .put (authArt, login);

Request  request = (Request) objectModel.get (Constants.REQUEST_OBJECT);
  request .setAttribute (hello, world);


   return sitemapParams;
  }
}
login.xsp
...
paraxsp-request:get-parameter name=hello//para
...
The rest of xsp-page is correct.
login.xsl
...
 pxsl:value-of select=//para//p br/
... Rest OK.
sitemap.xmap
...
map:actions
 map:action name = xifs-login
src  = org.apache.cocoon.ask.auth.Login/
  /map:actions
... within a pipeline!!!
!-- SERVLETS --
   map:match pattern=auth/**
  !-- Performe login ... --
  map:act type=xifs-login

 map:generate type=serverpages src=xsp/login.xsp/
 map:transform src=styles/login.xsl/
 map:serialize/

  /map:act

  !-- If all fails ...--
  map:redirect-to uri=../welcome/

   /map:match

...

Thanks for any help.

Regards Markus
mailto:[EMAIL PROTECTED]



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

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




Re: C2 + MacOS X + MySQL

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 04:26 PM, Zack Angelo wrote:
 Hey, I suppose I should take a brief moment to introduce myself. I'm
 Zack Angelo from New Orleans.phew there, did it ;) 
  
 Anyway, I've perused the digest in hopes of finding a solution to my
 problem, but to my disappointment, didn't find anything.
  
 From what I can see, a lot of people have been having problems with my
 configuration. It seems that mine are a bit different though. I've
 checked the logs and the stack traces, and it appears to be loading the
 driver (org.gjt.mm.mysql.Driver) successfully.  It then goes on to
 execute my ESQL XSP code and falls on its face with a SQLException (not
 an access denied one) and some weird problems with the String class not
 having a method. I was hoping someone could give me some insight as to
 what is going on, because I'm completely stumped. Here's a copy of the
 exception: 
  
 ERROR   (2002-04-30) 15:49.15:424
 [access](/cocoon/malin/voicemail/web/getmessages)
 HttpProcessor[8080][4]/CocoonServlet: Problem with servlet
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 getmessages_xsp:
 Line 397, column 58:  method valueOf() not found in class
 java.lang.String
 Line 508, column 82:  unreported exception: java.sql.SQLException; must
 be caught or declared to be thrown
 Line 535, column 82:  unreported exception: java.sql.SQLException; must
 be caught or declared to be thrown
 Line 562, column 84:  unreported exception: java.sql.SQLException; must
 be caught or declared to be thrown
 Line 613, column 51:  unreported exception: java.sql.SQLException; must
 be caught or declared to be thrown
 Line 622, column 27:  unreported exception: java.sql.SQLException; must
 be caught or declared to be thrown
 Line 0, column 0:
 6 errors

Zack,

it would have been better if you had supplied us with your XSP and the
error bearing lines from the java file instead of posting the request
in text and HTML. So, please tell us more or we can't help.

Chris.

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

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

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




Re: Multiple independent XSLT transforms applied to one XML file.

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 04:17 PM, Fabricio Chalub wrote:
  you can add any number of transformations. just add another 
  transformer line
  to your pipeline with the second stylesheet.
 
 Thanks!  I have tried this and it appears to me that only the last XSLT
 transform is applied.  I guess I am not using the sitemap corretly, then?
 This is what am I using:
 
 map:match pattern=
 map:redirect-to session=false uri=index/
 /map:match
 
 map:match pattern=*
 map:generate src=documents/{1}.xml/
 
map:transform src=stylesheets/site.xsl /
map:transform src=stylesheets/teacher.xsl /
 
 [...]
 
 Is this the correct way of doing it?

Yep, it is. Try putting the log transformer inbetween. Or remove the
second transformation and save the output to a file. Use that to feed
another pipeline to see if your stylesheets work as expected. Another
way would be to use xalan on the command line with your files.

The logs should contain a reference to your stylesheets and the xslt 
transformer. If it doesn't -- send all information that could be
usefull to us (albeit minimal).

Chris.

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

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

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




Re: {0} sitemap parameter in regexp matcher

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 04:54 PM, Artur Bialecki wrote:
 
 Is {0} not available when using sitemap matcher?
 I have a sub-sitemap where
 
 This works (wildcard):
 
map:match 
  pattern=product/category_edit.xml
  map:act type=update-ejb
map:generate type=serverpages src={../0}/
  /map:act
  map:transform type=xinclude/ 
  map:transform src=product/category.xsl/
  map:serialize/
/map:match
 
 but this doesn't (regexp):
 
map:match type=regexp
  pattern=product/category_(view|edit)\.xml
  map:act type=update-entity
map:generate type=serverpages src={../0}/
  /map:act
  map:transform type=xinclude/ 
  map:transform src=product/category.xsl/
  map:serialize/
/map:match
 
 to make the generator find source I have to do:
 src=product/category_{../1}.xml
 
 Any ideas ?

It's not available. 1, 2, ... refer to the 1st, 2nd, ... parenthesis. So
enclosing everything with () would make the complete match available. Not
sure whether that would be 1 or 2, though. But it should be printed out
in your sitemap log ;-)

If so desired (and agreed), it would be trivial to add 0 to
AbstractRegexpMatcher.

after line 127 add:
   map.put(0, match);

Chris.

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

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

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




Re: xsp logicsheet

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 09:50 PM, Bert Van Kets wrote:
 At 10:38 30/04/2002 -0300, you wrote:
 
 I guess it's
 
  String temp = xsl:value-of select=name/;
 
 or
 
  String temp = new String(xsl:value-of select=name/);
 
 Alejandro
 Tried it, doesn't work.  I guess it must be a bug.
 If I use
 String temp = xsl:value-of select=name/
 I get
 
 org.apache.cocoon.ProcessingException: Exception in creating Transform 
 Handler: org.apache.cocoon.ProcessingException: Language Exception: 
 org.apache.cocoon.components.language.LanguageException: Error compiling 
 listCreateQuery_xsp:
 Line 252, column 23: unclosed character literal
 Line 252, column 22: illegal start of expression
 Line 278, column 6: unclosed character literal
 Line 278, column 4: illegal start of expression
 Line 0, column 0:
 4 errors
 
 The code snipet it refers to is
 
 String temp = 
 xspAttr.addAttribute(
   ,
   select,
   select,
   CDATA,
   name
 );
 
 
 this.contentHandler.startElement(
   http://www.w3.org/1999/XSL/Transform;,
   value-of,
   xsl:value-of,
   xspAttr
 );
 xspAttr.clear();
 
 
 
 this.contentHandler.endElement(
   http://www.w3.org/1999/XSL/Transform;,
   value-of,
   xsl:value-of
 );
 
 ;
 
 As you can see the string is closed three commands down.  There is no way 
 this can work.
 Is there another way to store the content of a node in a string?

Your xsl is not applied but inserted. Your final XSP still contains the
xsl tag which has no known logicsheet namespace. Thus it is outputted
to the rest of your pipeline.

If we knew more, we might be able to suggest a working solution to your
original problem.

Chris.

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

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

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




RE: HSSF serializer/ Gnumeric file format information

2002-04-30 Thread Darrell Cumming

Hi Micheal, 

If you have a look in your COCOON_HOME/samples/poi/ 
there is some sample xml docuemnts and stylesheets to get started with. =)

Hope that helps.

Darrell

 -Original Message-
 From: Michael Aracic [mailto:[EMAIL PROTECTED]] 
 Sent: April 30, 2002 1:55 PM
 To: [EMAIL PROTECTED]
 Subject: HSSF serializer/ Gnumeric file format information
 
 
 Please forgive me for asking somewhat basic questions, but 
 I'm new to the list, and to cocoon. I've read a lot of the 
 online documentation, and I can't find anything detailed or 
 up to date about the HSSF serializer. I'm developing a 
 hands-off way to generate reports in excel format without 
 necessarily depending on windows hosted code. From what I've 
 read, the most platform-independent, flexible way of doing 
 this is currently using Cocoon's HSSF serializer. It sounds 
 like the simplest approach is to create an XSL stylesheet 
 that will transform our reporting program's XML output into 
 Gnumeric style XML, then run cocoon in command line mode, 
 reading in the XML reports. Cocoon will be configured to do 
 the transformation, then use the HSSF serializer to output 
 excel files. My questions are: 1. Have I overlooked anything 
 huge? 2. Where can I find information on HSSF or the Gnumeric 
 file format? I've used all the major search engines and 
 looked at all relevant project pages, and I haven't been able 
 to find what I need, which would include a description of the 
 Gnumeric file format, and exactly how the HSSF serializer 
 needs to be fed its input. 3. I imagine that the differences 
 between the XML that comes out of my reports program, and the 
 XML that is required by the serializer will be quite 
 profound. Are there any tools or resources that can help me 
 write the XSL stylesheet? I've read dozens of explanations of 
 how to transform different kinds of XML documents into HTML, 
 but very few about how to transform it into anything else. 
 Thanks, Michael Aracic
 
 -
 Please check that your question has not already been answered 
 in the FAQ before posting. 
http://xml.apache.org/cocoon/faqs.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/faqs.html

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




Re: C2+ MacOS X + MySQL

2002-04-30 Thread zack

im sorry about the HTML text, didn't even realize it was enabled.

Here's my XSP code:

esql:connection
 esql:poolmySql/esql:pool
  esql:execute-querySELECT ID,Date,Status from 
Messages/esql:execute-query
 esql:results
  messages
  esql:row-results
 message
 id esql:get-long 
column=ID/ /id
 datetime esql:get-date 
column=Date/ /datetime
 status esql:get-string 
column=Status/ /status
 fetchurl not yet implemented 
/fetchurl
 /message
  /esql:row-results
  /messages
   /esql:results
/esql:connection


Here's the Java that's throwing (or not throwing) the exceptions:

Line 397, column 58: method valueOf() not found in class java.lang.String

  _esql_query = new EsqlQuery( _esql_connection, String.valueOf() );

Line 508, column 82: unreported exception: java.sql.SQLException; must 
be caught or declared to be thrown
  
XSPObjectHelper.xspExpr(contentHandler,_esql_query.getResultSet().getLong(
ID));

Line 535, column 82: unreported exception: java.sql.SQLException; must 
be caught or declared to be thrown

XSPObjectHelper.xspExpr(contentHandler, 
_esql_query.getResultSet().getDate(Date));


Line 562, column 84: unreported exception: java.sql.SQLException; must 
be caught or declared to be thrown

XSPObjectHelper.xspExpr(contentHandler, 
_esql_query.getResultSet().getString(Status)

Line 613, column 51: unreported exception: java.sql.SQLException; must 
be caught or declared to be thrown

_esql_query.setKeepGoing( _esql_query.nextRow() );

Line 622, column 27: unreported exception: java.sql.SQLException; must 
be caught or declared to be thrown

_esql_query.nextRow()



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

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




RE: {0} sitemap parameter in regexp matcher

2002-04-30 Thread Artur Bialecki


 -Original Message-
 From: Christian Haul [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 30, 2002 6:05 PM

 but this doesn't (regexp):
 
map:match type=regexp
  pattern=product/category_(view|edit)\.xml
  map:act type=update-entity
map:generate type=serverpages src={../0}/
  /map:act
  map:transform type=xinclude/ 
  map:transform src=product/category.xsl/
  map:serialize/
/map:match

 If so desired (and agreed), it would be trivial to add 0 to
 AbstractRegexpMatcher.
 
 after line 127 add:
map.put(0, match);
 

This would make it more consistent with wildcard matcher and
help poor saps like me with move from C1 to C2.
Maybe this should be a general rule for all matchers that
parameter {0} is allways the whole matched pattern.

What is the best way to get this fixed? Bugzilla?

Thanks,

Artur...


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

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




Re: C2+ MacOS X + MySQL

2002-04-30 Thread Christian Haul

On 30.Apr.2002 -- 05:27 PM, [EMAIL PROTECTED] wrote:
 im sorry about the HTML text, didn't even realize it was enabled.
 
 Here's my XSP code:
 
 esql:connection
 esql:poolmySql/esql:pool
  esql:execute-querySELECT ID,Date,Status from 
 Messages/esql:execute-query

This is the problem: 
esql:execute-query needs to span the entire query, i.e. after
esql:results. In addition you need a esql:query tag around the
query (like you did with the execute-query tag).

 esql:results
  messages
  esql:row-results
 message
 id esql:get-long 
 column=ID/ /id
 datetime esql:get-date 
 column=Date/ /datetime
 status esql:get-string 
 column=Status/ /status
 fetchurl not yet implemented 
 /fetchurl
 /message
  /esql:row-results
  /messages
   /esql:results
 /esql:connection

Chris.

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

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

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




RE: C2+ MacOS X + MySQL

2002-04-30 Thread Zack Angelo

Fantastic. It works. Thanks for everything. 

-Zack

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 30, 2002 5:43 PM
To: [EMAIL PROTECTED]
Subject: Re: C2+ MacOS X + MySQL

On 30.Apr.2002 -- 05:27 PM, [EMAIL PROTECTED] wrote:
 im sorry about the HTML text, didn't even realize it was enabled.
 
 Here's my XSP code:
 
 esql:connection
 esql:poolmySql/esql:pool
  esql:execute-querySELECT ID,Date,Status from 
 Messages/esql:execute-query

This is the problem: 
esql:execute-query needs to span the entire query, i.e. after
esql:results. In addition you need a esql:query tag around the
query (like you did with the execute-query tag).

 esql:results
  messages
  esql:row-results
 message
 id esql:get-long 
 column=ID/ /id
 datetime esql:get-date 
 column=Date/ /datetime
 status esql:get-string 
 column=Status/ /status
 fetchurl not yet implemented

 /fetchurl
 /message
  /esql:row-results
  /messages
   /esql:results
 /esql:connection

Chris.

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




RE: HSSF serializer/ Gnumeric file format information

2002-04-30 Thread Andrew C. Oliver

if you have your cocoon nighly build or cvs copy there is also
documentation under the user manual.  This looks just like the site, but
I haven't figured out how to have it pushed to the site.  (sorry)
(actually I also haven't tried or even asked so my fault)

You can find the most info about the gnumeric format itself by reading
the schema which is in the root module of the gnumeric project.  (also
the sources are cvsweb'd)  goto www.gnome.org/gnumeric for details.  The
cocoon documentation on the serializer however explains the subset that
HSSF cares about.  

Of course the samples are as Darrell mentioned, the best way to learn.

-Andy

On Tue, 2002-04-30 at 18:19, Darrell Cumming wrote:
 Hi Micheal, 
 
 If you have a look in your COCOON_HOME/samples/poi/ 
 there is some sample xml docuemnts and stylesheets to get started with. =)
 
 Hope that helps.
 
 Darrell
 
  -Original Message-
  From: Michael Aracic [mailto:[EMAIL PROTECTED]] 
  Sent: April 30, 2002 1:55 PM
  To: [EMAIL PROTECTED]
  Subject: HSSF serializer/ Gnumeric file format information
  
  
  Please forgive me for asking somewhat basic questions, but 
  I'm new to the list, and to cocoon. I've read a lot of the 
  online documentation, and I can't find anything detailed or 
  up to date about the HSSF serializer. I'm developing a 
  hands-off way to generate reports in excel format without 
  necessarily depending on windows hosted code. From what I've 
  read, the most platform-independent, flexible way of doing 
  this is currently using Cocoon's HSSF serializer. It sounds 
  like the simplest approach is to create an XSL stylesheet 
  that will transform our reporting program's XML output into 
  Gnumeric style XML, then run cocoon in command line mode, 
  reading in the XML reports. Cocoon will be configured to do 
  the transformation, then use the HSSF serializer to output 
  excel files. My questions are: 1. Have I overlooked anything 
  huge? 2. Where can I find information on HSSF or the Gnumeric 
  file format? I've used all the major search engines and 
  looked at all relevant project pages, and I haven't been able 
  to find what I need, which would include a description of the 
  Gnumeric file format, and exactly how the HSSF serializer 
  needs to be fed its input. 3. I imagine that the differences 
  between the XML that comes out of my reports program, and the 
  XML that is required by the serializer will be quite 
  profound. Are there any tools or resources that can help me 
  write the XSL stylesheet? I've read dozens of explanations of 
  how to transform different kinds of XML documents into HTML, 
  but very few about how to transform it into anything else. 
  Thanks, Michael Aracic
  
  -
  Please check that your question has not already been answered 
  in the FAQ before posting. 
 http://xml.apache.org/cocoon/faqs.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/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
http://www.superlinksoftware.com
http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
Document 
format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
- fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


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

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




RE: Why isn't Cocoon making into the commercial world?

2002-04-30 Thread Dean McGowan

We at kangax.com are attempting to complete a software product
specifically designed to accommodate this block approach mentioned. It
is early days but we invite people to trial and comment on our
development. If you consider that you have a building block that you
would like syndicated via the kangax interface please let us know and we
will endeavor to integrate your ideas.

Regards,

Dean McGowan

-Original Message-
From: Bert Van Kets [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 29 March 2002 9:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Why isn't Cocoon making into the commercial world?

In my opinion Cocoon will hit the main stream when the Cocoon building 
blocks are ready.
At the moment people who are new to XSLT need to digest a LOT of info
just 
to make out the fundamentals of Cocoon.  Giving people the ability to
start 
out with a minimal application with just a Hello World sample to get
them 
going will make things a lot easier (I'm not talking about a minimized 
Cocoon like Chello).  The block approach will make it possible to add 
functionality without the need to know the insides of Cocoon.  That's
when 
we will hit the mainstream: when people can use Cocoon as a simple
tool 
to get results and not as a programming framework where all the tweaking

and fine tuning needs to be done before getting results.

Bert

At 18:28 28/03/2002 -0800, you wrote:
Dear Cocoon User Group:

First of all, I LOVE the Cocoon framework,
I'm a total believer, and expecially love
how Cocoon2 is turning out!

Cocoon seems just awesomely powerfully, years
ahead of the classical architectures proposed
by Sun (i.e. JSP to ServletBeans to EJBs...).

But how come there is NO (i.e. ABSOLUTELY NO)
demand for Cocoon expertise in the US market?
Type in key word java and retrieve 3500 hits
on www.dice.com.  Type in key word cocoon
and get ZERO!

Is it all just a dream?

Steve

PS:
No need to reply if your commerical project
is using it: congradulation.  But the bigger
picture is my question.




__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy AwardsR
http://movies.yahoo.com/

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html

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




RE: cocoon class(es) at SD West 2002; XSP question

2002-04-30 Thread Vadim Gritsenko

 From: Rick [mailto:[EMAIL PROTECTED]]
 
 thanks for your prompt reply, Vadim. i apologize for my poor choice of
 words (and i call myself a WRITER! sheesh!).

:)

 
 by incoming i meant sauntering gaily down the pipeline. for
example,
 i want to take kazoo.xml, a static file lurking on my disk, slurp it
 with a FileGenerator,

Ok, here we have got a problem. IIRC, we were talking about XSP
generator here. XSP generator is *generator*, which basically means that
it *generates* XML, in SAX world it means that it is XMLProducer. By
definition, generator can not *consume* XML coming from any other source
(in SAX world - it can not be XMLConsumer).


 and then mess it about with some Java logic -- but

You could write transformer for this. I even thought one time about
transformers in XSP, based on something like STX, but found that I do
not have enough time to implement this.


 (so far) i haven't found a way to do that.

And this is good, otherwise I will be surprised ;)

Vadim

 
 OTOH, you've shown me a useful technique for other applications, so
 merci encore.
 
 rw
 
 On Mon, 2002-04-29 at 13:44, Vadim Gritsenko wrote:
  Define incoming XML here. Is it XML posted as http request's body?
Or
  request parameter containing XML? I will assume latter.
 
  You could (skipping all preparations):
 
  Node node =
  XPathAPI.selectNode(parser.parse(request.getParameter(xmlparam),
  kazoo);
 



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

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




gnumeric file format (HSSF) doc

2002-04-30 Thread Andrew C. Oliver

one of the more frequent questions about the HSSF Serializer is about the HSSF file 
format. 
 Obviously the samples are the best place to start but here is a pretty 
big hunk of information: 
ftp://www.jrefinery.com/pub/jworkbook/gnumeric-xml.pdf

-Andy





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

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




RE: Including generated content

2002-04-30 Thread Vadim Gritsenko

 From: Avi Kivity [mailto:[EMAIL PROTECTED]]
 
 I'd like to include content generated by on XSP in another. Looks like
I
 have three options:
 
 1. Use map:aggregate/ - I don't want to do that as it doesn't allow
me
 control of where to place content (I'd like to place one document
inside
 another, not alongside).

Yes, there is not. You could use XSLT to move things around.


 2. The xinclude/cinclude transformers - two problems: they don't work
 with absolute URLs (eg cocoon://mydoc.xsp; I patched this) and they

IIRC, for xinclude one must use ns:xinclude base=protocol:/path/
href=file/ or something like this.


 don't understand the cocoon: protocol (anybody know how to work around
 this?)

Don't know how could you miss this one:

http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs
p/aggregate.xsp?rev=1.4content-type=text/vnd.viewcvs-markup

It's working from the day one.

Vadim
 
 3. Use util:include-uri/ from the util logicsheet. This is limited
to
 one XSP including some other content, but is good enough for me except
 that it doesn't understand cocoon: either.
 
 Any pointers?

 Thanks,
 Avi
 
 
 --
 This space for rent.
 


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

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




RE: Multiple independent XSLT transforms applied to one XML file.

2002-04-30 Thread Vadim Gritsenko

 From: Christian Haul [mailto:[EMAIL PROTECTED]]
 
 On 30.Apr.2002 -- 04:17 PM, Fabricio Chalub wrote:
   you can add any number of transformations. just add another
   transformer line
   to your pipeline with the second stylesheet.
 
  Thanks!  I have tried this and it appears to me that only the last
XSLT
  transform is applied.  I guess I am not using the sitemap corretly,
then?
  This is what am I using:
 
  map:match pattern=
  map:redirect-to session=false uri=index/
  /map:match
 
  map:match pattern=*
  map:generate src=documents/{1}.xml/
 
 map:transform src=stylesheets/site.xsl /
 map:transform src=stylesheets/teacher.xsl /

Sometimes it is useful to have setup like this:

map:match pattern=site/*
  map:generate src=documents/{1}.xml/
  map:transform src=stylesheets/site.xsl /
/map:match

map:match pattern=teacher/*
  map:generate src=documents/{1}.xml/
  map:transform src=stylesheets/teacher.xsl /
/map:match

map:match pattern=*
  map:aggregate element=data
map:part src=site/{1}/
map:part src=teacher/{1}/
  /map:aggregate
  map:transform src=stylesheets/aggregation-to-whateveryouwant.xsl /
/map:match


  [...]
 
  Is this the correct way of doing it?
 
 Yep, it is. Try putting the log transformer inbetween. Or remove the
 second transformation and save the output to a file. Use that to feed
 another pipeline to see if your stylesheets work as expected. Another
 way would be to use xalan on the command line with your files.

Yep.

Vadim

 
 The logs should contain a reference to your stylesheets and the xslt
 transformer. If it doesn't -- send all information that could be
 usefull to us (albeit minimal).
 
   Chris.
 
 --
 C h r i s t i a n   H a u l
 [EMAIL PROTECTED]
 fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


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

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




RE: {0} sitemap parameter in regexp matcher

2002-04-30 Thread Vadim Gritsenko

 From: Christian Haul [mailto:[EMAIL PROTECTED]]
 
 On 30.Apr.2002 -- 04:54 PM, Artur Bialecki wrote:
 
  Is {0} not available when using sitemap matcher?
  I have a sub-sitemap where
 
  This works (wildcard):
 
 map:match
   pattern=product/category_edit.xml
   map:act type=update-ejb
 map:generate type=serverpages src={../0}/
   /map:act
   map:transform type=xinclude/
   map:transform src=product/category.xsl/
   map:serialize/
 /map:match
 
  but this doesn't (regexp):
 
 map:match type=regexp
   pattern=product/category_(view|edit)\.xml
   map:act type=update-entity
 map:generate type=serverpages src={../0}/
   /map:act
   map:transform type=xinclude/
   map:transform src=product/category.xsl/
   map:serialize/
 /map:match
 
  to make the generator find source I have to do:
  src=product/category_{../1}.xml
 
  Any ideas ?
 
 It's not available. 1, 2, ... refer to the 1st, 2nd, ... parenthesis.
So
 enclosing everything with () would make the complete match available.
Not
 sure whether that would be 1 or 2, though. But it should be printed
out

It will be 1, 'cause that's the first parenthesis.

Vadim


 in your sitemap log ;-)
 
 If so desired (and agreed), it would be trivial to add 0 to
 AbstractRegexpMatcher.
 
 after line 127 add:
map.put(0, match);
 
   Chris.
 
 --
 C h r i s t i a n   H a u l
 [EMAIL PROTECTED]
 fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


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

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