Re: How to install Cocoon with Apache?

2002-12-19 Thread Antonio Gallardo
Sorin:

Check this:

http://xml.apache.org/cocoon/installing/index.html

Antonio Gallardo

Sorin Marti dijo:
> Christian Bucholdt wrote:
>
>>Hi,
>>
> Hi Christian,
>
>>
>>Cocoon runs as a servlet. So you need Tomcat (or a other
>> Servlet-Engine).
>>
> got it.
>
>>
>>Install tomcat an bundle it with your apache using an adapter. Then
>> install cocoon in tomcat.
>>
> I already installed cocoon in Tomcat and everything works fine, but how
> di I bundle it with my apache?
> (Sorry if this is a very stupid question but I am very new to this
> stuff...)
>
>>
>>
>>by
>>christian
>>
> bye
>   Sorin
>
>>
>>
>>- Original Message -
>>From: "Sorin Marti" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Friday, December 20, 2002 8:39 AM
>>Subject: How to install Cocoon with Apache?
>>
>>
>>>Hi All,
>>>
>>>I'd like to set up Cocoon with apache. I did it with Tomcat and it was
>>> not a problem... but on the cocoon home-page there's nowhere described
>>> how to do it with apache...
>>>
>>>any suggestions?
>>>
>>>I am working
>>>- on Linux
>>>- cocoon 2.0.4
>>>- apache 2.0.43
>>>
>>>Thanks
>>>
>>>Sorin Marti
>>>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: How to install Cocoon with Apache?

2002-12-19 Thread Sorin Marti
Christian Bucholdt wrote:


Hi,


Hi Christian,



Cocoon runs as a servlet. So you need Tomcat (or a other Servlet-Engine).


got it.



Install tomcat an bundle it with your apache using an adapter. Then install
cocoon in tomcat.


I already installed cocoon in Tomcat and everything works fine, but how 
di I bundle it with my apache?
(Sorry if this is a very stupid question but I am very new to this stuff...)



by
christian


bye
 Sorin




- Original Message -
From: "Sorin Marti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 20, 2002 8:39 AM
Subject: How to install Cocoon with Apache?



Hi All,

I'd like to set up Cocoon with apache. I did it with Tomcat and it was
not a problem... but on the cocoon home-page there's nowhere described
how to do it with apache...

any suggestions?

I am working
- on Linux
- cocoon 2.0.4
- apache 2.0.43

Thanks

Sorin Marti





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

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




xmlform and different output formats

2002-12-19 Thread Kirchhoff, Lars
hello,

I need some help for the xmlform. I would like to create a 
application that runs multiple forms and at the end outputs 
some data to the user. at these stage the user should have 
the possibility to get the outputted data in different 
formats. 
how can this approach be done. I thought about giving some
parameters to the page, but first how to add parameters and
second how to get theme in the action and apply the appropraite 
stylesheet?

any suggestions are welcome.

ciao Lars

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

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




Re: How to install Cocoon with Apache?

2002-12-19 Thread Christian Bucholdt
Hi,

Cocoon runs as a servlet. So you need Tomcat (or a other Servlet-Engine).

Install tomcat an bundle it with your apache using an adapter. Then install
cocoon in tomcat.

by
christian

- Original Message -
From: "Sorin Marti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 20, 2002 8:39 AM
Subject: How to install Cocoon with Apache?


> Hi All,
>
> I'd like to set up Cocoon with apache. I did it with Tomcat and it was
> not a problem... but on the cocoon home-page there's nowhere described
> how to do it with apache...
>
> any suggestions?
>
> I am working
> - on Linux
> - cocoon 2.0.4
> - apache 2.0.43
>
> Thanks
>
> Sorin Marti
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




How to install Cocoon with Apache?

2002-12-19 Thread Sorin Marti
Hi All,

I'd like to set up Cocoon with apache. I did it with Tomcat and it was 
not a problem... but on the cocoon home-page there's nowhere described 
how to do it with apache...

any suggestions?

I am working
- on Linux
- cocoon 2.0.4
- apache 2.0.43

Thanks

Sorin Marti


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

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



Lucene - elements stored in the index

2002-12-19 Thread Sebastian Gil
Hi there,

I've problem with storing elements in the lucene search index. I'm using 
create-index.xsp from cocoon/search example
for indexing and SearchGenerator for featching results. I've modified lines in 
cocoon.xconf
  
header
  
and my XML files looks like

 my-header
 
  my-content
 

When I do some indexing using create-index.xsp everyhting looks alright. I can do 
queries, I can query using specific
fields eg. header:my-header but the result retrieved from SearchGenerator doesn't 
contains my stored element 
in hits tag as was described in 
http://xml.apache.org/cocoon/userdocs/concepts/xmlsearching.html
My results looks like
  http://create:80/produkty/sprzedaz_i_produkcja/fabrykant/subiekt_4_mega.html"; /> 
  http://create:80/produkty/sprzedaz_i_produkcja/subiekt_5/opinie.html"; /> 

and are kind a useless without any descrition. 

My second problem is with a STOP_WORDS. How to modify create-index.xsp to use that 
feature. I do some changes
and it works, but I don't think it's the best way to reslove that problem. My change 
is to replace
  Analyzer analyzer = LuceneCocoonHelper.getAnalyzer( 
"org.apache.lucene.analysis.standard.StandardAnalyzer" );

with

  String[] stopWords = {"i", "a", "z", "w", "do", "od", "na", "lub", "albo"};
  Analyzer analyzer = new StandardAnalyzer(stopWords);

Thanks for help.

System: W2k
JDK: 1.4.1_01
Tomcat: 4.1.15
Cocoon: 2.0.4

Regards.
Sebastian Gil






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

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




How can i see the working of Sitebuilder in cocoon 2.0.4

2002-12-19 Thread Sreenivasan N.
Hi all

When i was going through the directories of cocoon 2.0.4 i saw a folder 
called sitebuilder. What is that ? How can i see that working? Looks like 
you can edit xml document, forms etc.  Can anyone explain about that.

Thanks in advance
Regards
Sreenivasan.







"Attitudes are much more important than aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 5816

Email. [EMAIL PROTECTED]
Per: [EMAIL PROTECTED]


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

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



Xml form How To-Please help me out

2002-12-19 Thread poornima ponnuswamy
I am able to get the
http://localhost:8080/cocoon/samples/xmlform/wizard

Now I tried to run the XML form wizard but I couldnt
succeed. I am really trying hard to get it done but I
couldnt. Can one spend few min in helping me
out...please
These are the following steps I followed. I created 
"howto" in src\webapp\samples\xmlform folder and put
all the xml files in it. And then I created howto
folder in \src\java\org\apache\cocoon\samples\xmlform\
and put 2 java files in it (Is this right) and then I
put the sitemap in
\src\java\org\apache\cocoon\samples\xmlform (Is this
right) and then I build it using the command build.bat
-Dinclude.webapp.libs=true webapp. Are all these steps
right?. Also I want to know how howto-wizard.html page
is created. Can you please help me in figuring out the
problem
Note :I am using all the files from the
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
website

Thanks
poornima

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

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

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




Re: still stuck with esql connection pool

2002-12-19 Thread Johannes . Becker

Hi,

I had the same problem, till I read this thread
(http://www.mail-archive.com/avalon-users@jakarta.apache.org/msg00101.html).
 I use JDK 1.41. I compiled Cocoon under 1.41 and now it works fine. I read
that this wass a bug in Cocoon. I hope I could help.

Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.



|-+>
| |   Nils Leßmann |
| |   <[EMAIL PROTECTED]|
| |   annheim.de>  |
| ||
| |   12/19/02 06:15 PM|
| |   Please respond to|
| |   cocoon-users |
| ||
|-+>
  
>--|
  |
  |
  |   To:   <[EMAIL PROTECTED]>  
  |
  |   cc:  
  |
  |   Subject:  still stuck with esql connection pool  
  |
  
>--|




Hi!





Sorry to bother you again, but I still can't get that esql-connection to
work, I've tried three different databases up to now...





Whenever I use  I get the following exception:





Could not get the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available





Using  etc. works just fine. I can see in the database monitor
that cocoon _has_ established the connection to the database using the
parameters I set up in cocoon.xconf.





Is there a way to get some more information in order to hunt down what I'm
doing wrong? Something like a list of connections cocoon has set up, some
status info or whatever.





Thankful for any hints,


  Nils















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

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




Slide & Cocoon Impl

2002-12-19 Thread Julian Klein
Hi all,

I am trying to implement slide with cocoon via the
slide source and slide source factory available in the
scrathpad.  I built cocoon with jdk1.4, tomcat 4.1.12,
and the cocoon cvs snapshot from 12/19/2002.  I got it
to run at first, but when i fooled around a bit with
the samples, cocoon would not start up again.  so i
did  a clean install and i get the following error:


org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!


  at first i thought this to be the xalan jar i am
using, but still upgraded this in my classpath (to
xalan 2.4.1 as well as xerces 2.1.0)resulting in
no change.  I am running on Redhat 8.0.  any comments
as to why i may be receiving the stack strace below
would be greatly appreciated!

-Julian


Cocoon 2 - Internal server error

type fatal

message Failed to execute pipeline.

description org.apache.cocoon.ProcessingException:
Failed to execute pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/documents/index.html

path-info

documents/index.html

stack-trace

org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:519)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:192)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core

cocoon-session management.

2002-12-19 Thread Kishore



Hi all,
   
I am using cocoon to apply XSL transformation
on XML files generated by my 'SERVLETS'. So, 
cocoon
intercepts the client request, calls the proper 
application servlet, then applies xsl mapping on the servlet's output and 
returns the result as a html file.
    
Now, the problem I am facing is, this way I am unable to maintain sessions among 
my servlet's clients. Each new request coming to my servlet is creating a 
session afresh because it's not the client directly, but cocoon that's making a 
request for my servlets.
   
Has anybody  faced this problem or know the 
solution? Pl. let me know ASAP.
 
regards
nanda kishore.


xmlForm: java.lang.ArrayStoreException

2002-12-19 Thread Hill .
Hi all,

I am trying to use int array on MyBean attribute (I
about xmlForm): When I try NextPage after I choose
some more item (by xf:selectMany) I get error:

java.lang.ArrayStoreException at
java.lang.System.arraycopy(Native Method) at
org.apache.cocoon.components.xmlform.Form.setValue(Form.java:256)
at
org.apache.cocoon.components.xmlform.Form.populate(Form.java:433)
at
org.apache.cocoon.acting.AbstractXMLFormAction.act(AbstractXMLFormAction.java:287)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:136)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
at  
...

my bean some like:

public class MyBean {

  private int intAttrArray[];
  private HashMap allInt;  // for xf:selectMany
  ...

  public VendorAccount () {
vendorProduct = new int[] { };
allInt = new HashMap();
allInt.put( "1", "Product 001" );  //
String.valueOf(1)
...
  }
  public int[] getMyIntArray() { return intAttrArray;
}
  public void setMyIntArray( int[] v ) { intAttrArray
= v; }
  ...



Regards,
Hill

Cocoon 2.1 -dev, Tomcat 4.0, Java 1.4, WinXP

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

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

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




Re: Optional libraries that are not optional

2002-12-19 Thread Joerg Heinicke
There is a jars.xml. I guess you must also remove it from there.

Joerg

Faron Dutton wrote:

The following libraries appear to be non-optional:
  lib/optional/commons-jxpath-1.0.jar
  lib/optional/spark.jar

To Recreate:
  1) ./build.sh clean
  2) rm -f lib/optional/*.jar
  3) ./build.sh



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

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




Re: XPath problem in Cocoon?

2002-12-19 Thread Joerg Heinicke
Anna Afonchenko wrote:

Hi Luca. Thank you for answering. Yes, probably that's something with my
configuration. I am using Win98, Tomcat 4.1.12, Cocoon 2.0.4, Xalan 2.4.1.
I'll try to change the Xalan version.
Anyway, this thing is very weird.

Thank you.
Anna


Hello Anna,

may I point out again, that in my opinion it is a simple namespace 
problem. Ok, it's only a guess, but I never heart of a bug like you 
describe. And exactly this behaviour is comprehensible with the 
following test case:

XML: elements are in default namespace


a node to match


XSL:

http://www.w3.org/1999/XSL/Transform"; xmlns:test="test">



  
1. test using "//p":
 matched
  
  
2. test using "//test:p":
 matched
  
  
3. test using "//*[name() = 'p']":
 matched
  
  
4. test using "//*[name() = 'test:p']":
 matched
  





Result:

1. test using "//p": 0 matched
2. test using "//test:p":1 matched
3. test using "//*[name() = 'p']":   1 matched
4. test using "//*[name() = 'test:p']":  0 matched

Your cases are number 1 and 3 and you can see the same behaviour. Have a 
look into your XML file, whether a default namespace is set there. The 
reason for the differences when using default namespace is, that you 
must bind it in XSLT on a prefix. You can not match on elements via //p, 
if they are in default namespace.

Regards,

Joerg


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

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



Re: Source aggregation by XInclude

2002-12-19 Thread Andrew C. Oliver
Joerg Heinicke wrote:


Timothy Larson wrote:


You coulde try the caching version of the cinclude transformer in 
place of the non-caching xinclude transformer.
See 
http://xml.apache.org/cocoon/userdocs/transformers/cinclude-transformer.html
The only problem I see is that the cinclude transformer does not seem 
to have the xpath features
that the xinclude transformer has.

Tim


Some time ago someone wanted to combine the better code of CInclude 
with the more functionality of XInclude to one IncludeTransformer. Is 
this still on somebody's to do list? Or what's the status?

Yes.  Renewed interest.  It is but the approach that will change ;-)



Joerg


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

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. 

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




Re: integrate IF THEN ELSE conditions in a simple XSP page

2002-12-19 Thread Joerg Heinicke
Hello Maxime,

in my opinion this layouting/styling is not the task of the XSP, but it 
should be done by a transformer.

Regards,

Joerg

[EMAIL PROTECTED] wrote:
Hi,
How can I quickly add a condition in someting like  :



If I want to add a condition like : 
If ID = 3 then font color = red else font color = green ? I'm using XSP
pages.

Thank you for your help!


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

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




Re: Source aggregation by XInclude

2002-12-19 Thread Joerg Heinicke
Timothy Larson wrote:

You coulde try the caching version of the cinclude transformer in place of the non-caching xinclude transformer.
See http://xml.apache.org/cocoon/userdocs/transformers/cinclude-transformer.html
The only problem I see is that the cinclude transformer does not seem to have the xpath features
that the xinclude transformer has.

Tim


Some time ago someone wanted to combine the better code of CInclude with 
the more functionality of XInclude to one IncludeTransformer. Is this 
still on somebody's to do list? Or what's the status?

Joerg


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

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



Optional libraries that are not optional

2002-12-19 Thread Faron Dutton
The following libraries appear to be non-optional:
  lib/optional/commons-jxpath-1.0.jar
  lib/optional/spark.jar

To Recreate:
  1) ./build.sh clean
  2) rm -f lib/optional/*.jar
  3) ./build.sh

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

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




RE: EJBs and Cocoon (hmm, again ;-)

2002-12-19 Thread Hunsberger, Peter
> So the question is: does anybody already have a decent solution for the
EJB-Cocoon problem? Or isn't there any problem at all...

Umm, what problem?  If you want EJB's you go ahead and use them...

What's your environment?  We use JBoss and create an EAR with Cocoon as a
WAR inside it and the EJB's in a JAR inside the EAR.  Jboss auto deploys
everything -- the EJB's according to our deployment descriptors -- and we
then use the remote interfaces as normal from the code running on the Cocoon
side of things.


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

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




Re: HTTP Status 503

2002-12-19 Thread Miles Elam
Astor Rivera wrote:


with the following command:
 
.\build.bat webapp

That should be...

./build.bat -Dinclude.webapp.libs=true webapp

That should take care of your error message once you redeploy.

- Miles



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

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




HTTP Status 503

2002-12-19 Thread Astor Rivera



I just compiled the 
last cocoon cvs snapshot on:
 
win2k 
5.00.2195
sp 
3
 
j2sdk1.4.0_02
 
tomcat/4.1.12-LE-jdk14
 
with the following 
command:
 
.\build.bat 
webapp
 
and I installed 
cocoon.war and when I access it I get the following error:
 

HTTP Status 503 - Servlet Cocoon2 is currently 
unavailable


type Status report
message Servlet Cocoon2 is currently 
unavailable
description The requested service (Servlet Cocoon2 
is currently unavailable) is not currently available.
Does anyone know where I 
went wrong or why this is happening?
Any help is 
appreciated,
Thanks,
Astor 
Rivera


jca-jdbc firebird drivers

2002-12-19 Thread Juraj misovych
i try to use cocoon 2.0.4 with firebird
i try interclient201 but i have problem with connection when use esql
sql transformer works,

i try to use new jca-jdbc firebird drivers .

i have configured cocoon

   
   
  
jdbc:firebirdsql://localhost:3050/c:/server/data/db/elza.gdb

   user
   heslo
   

   
   load-class
   
  org.firebirdsql.jdbc.FBDriver
   
   
   

How to get User ID after authentication

2002-12-19 Thread Nils Leßmann








Hi!

 

I’ve
been able to write my own authenticator using the sunrise-components. How can I
access the user id in my xsp after the user has logged in?

 

Thanks,
Nils

 








RE: Where to get the 2.1-dev without using CVS?

2002-12-19 Thread Luca Morandini
http://cvs.apache.org/snapshots/xml-cocoon2/


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

> -Original Message-
> From: aps olute [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 8:03 PM
> To: [EMAIL PROTECTED]
> Subject: Where to get the 2.1-dev without using CVS? 
> 
> 
> 
>  Can the 2.1-dev download retrieved without using CVS? Is the cvs version not
> guaranteed to compile? sorry for the newbie questions.
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




RE: How do I read files inside an Action?

2002-12-19 Thread Ray Martin
not sure what it is that you want!!!  did you ever hear of Xerces? - ya
know, XML parsers? - SAX event generators? - or, are you looking for
something else?

> -Original Message-
> From: Chintalapaty, Sreedhar [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 12:07 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: How do I read files inside an Action?
>
>
> Sorry for the confusion, I should have phrased my question
> better. What I wanted to know was how to read in an XML file _as
> an XML Document_ object. I intend to use that object to determine
> the flow of control.
>
> Sreedhar
>
>
> -Original Message-
> From: Ray Martin [mailto:[EMAIL PROTECTED]]
> Sent: Wed 12/18/2002 2:42 PM
> To:   [EMAIL PROTECTED]
> Cc:
> Subject:  RE: How do I read  files inside an Action?
> Sir,
>
> Just like any other file called from java.
>
> In the action class you would need:
>
> import java.io.File; // cocoon has some defaults - this could be
> one of them
>
> //nothing special here, just an example.  however, this directory is where
> cocoon places uploaded files by default.  make yours wherever
> your xml file
> is located.
> String currentPath = "C:/Program Files/Apache Group/Tomcat
> 4.1/work/Standalone/localhost/cocoon/cocoon-files/upload-dir/";
>
> // next three lines checks the directory for files and sets pointer to the
> first file in the directory (should put some checks around this)(could
> iterate through the list)
> File fileDir = new File(currentPath);
> File[] listOfFiles = fileDir.listFiles();
> String filename = listOfFiles[0].toString();
>
> File uploadDir = new File(currentPath);
> File theXMLfile = new File(filename);
> System.out.println("The director is: " + theResume.getParent());
> System.out.println("The file name: " + theResume.getName());
> long fileLen = theXMLfile.length();
> Long testThis = new Long(fileLen);
> int fileLength = testThis.intValue();
> FileInputStream fis = new FileInputStream(theResume);
> byte[] byteArray = new byte[fileLength];
> int cnt = fis.read(byteArray, 0, fileLength);
> fis.close();
>
> byteArray now contains the contents of theXMLfile.  this only works for
> ASCII files.  i do not have an example at my fingertips for Unicode.
>
>
> these are snippets from an action that i have performing.  if you need
> anything else, holler.
>
> Ray
>
> > -Original Message-
> > From: Chintalapaty, Sreedhar [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 18, 2002 10:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: How do I read files inside an Action?
> >
> >
> > Hi,
> >
> > Can some one point me to an example of how we can access an xml
> > file on the file system from a custom Action?
> >
> > TIA,
> >
> > Sreedhar
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
> 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. 
>
> 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. 

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




Where to get the 2.1-dev without using CVS?

2002-12-19 Thread aps olute

 Can the 2.1-dev download retrieved without using CVS? Is the cvs version not
guaranteed to compile? sorry for the newbie questions.

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

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

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




accessing resources in sibling directories

2002-12-19 Thread Tomasz Muldner
Hi,
I'm trying to modify an example of a gallery from the Cocoon book, and have
this directory structure:

Directory: mount
sub-directories:  photos   gallery
In the photos directory there are jpeg files (in the original example,
photos were in a subdirectory of "gallery").
In the gallery directory there is sitemap.xmap shown below.
When I use
http://localhost:8080/cocoon/mount/gallery/gallery

the html file is generated, but it only contains "empty"  thumbnails, no
pictures. It appears that the reader is the second match is not executed.
WHY??


http://apache.org/cocoon/sitemap/1.0";>




























=

gallery.xsl is included in this email.



Thank you

Tomasz




http://www.w3.org/1999/XSL/Transform";
xmlns:dir="http://apache.org/cocoon/directory/2.0";>





The Gallery


	  








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

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


Problem with cocoon

2002-12-19 Thread vodoop vodoop
Hi
have anyone had this error :


java.lang.NullPointerException
 at
_home._id._gen_make._sender.populateDocument
(_state.java:456)
 at
org.apache.cocoon.processor.xsp.XSPPage.getDocument
(XSPPage.java:97)
 at
org.apache.cocoon.processor.xsp.XSPProcessor.process
(XSPProcessor.java:527)
 at org.apache.cocoon.Engine.handle
(Engine.java:384)
 at org.apache.cocoon.Cocoon.service
(Cocoon.java:183)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at
org.apache.tomcat.core.ServletWrapper.doService
(ServletWrapper.java)
 at
org.apache.tomcat.core.Handler.service(Handler.java)
 at
org.apache.tomcat.core.ServletWrapper.service
(ServletWrapper.java)
 at
org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java)
 at
org.apache.tomcat.core.ContextManager.service
(ContextManager.java)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.p
rocessConnection(Ajp12ConnectionHandler.java)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java)
 at java.lang.Thread.run(Thread.java:484)


thnx for any help to fix it

_
Gagne une PS2 ! Envoie un SMS avec le code PS au 61166
(0,35€ Hors coût du SMS)



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

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


still stuck with esql connection pool

2002-12-19 Thread Nils Leßmann








Hi!

 

Sorry
to bother you again, but I still can’t get that esql-connection to work,
I’ve tried three different databases up to now...

 

Whenever
I use  I get the following exception:

 

Could not get the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available

 

Using
 etc. works just fine. I can see in the database monitor that
cocoon _has_ established the
connection to the database using the parameters I set up in cocoon.xconf. 

 

Is
there a way to get some more information in order to hunt down what I’m
doing wrong? Something like a list of connections cocoon has set up, some
status info or whatever.

 

Thankful
for any hints,

  Nils

 

 








run a Cocoon web application from CD-ROM?

2002-12-19 Thread Jakob

Hi,

I am trying to run a Cocoon web application from CD-ROM.

The webapp consists of Jetty (another servlet container), Cocoon, and an
XML database, eXist.

I would like to disable *all*logging*; obviously I do not want to write to
a log file, as I don't know what OS it will be run (so I can't take a
C:\temp or /tmp directory for granted), and I don't want anything output
to the console.

I have looked into web.xml, cocoon.xconf, logkit.xconf, sitemap.xmap, and
have tried to disable logging, by setting values to ERROR, and removing
the "logger" attributes in the sitemap ... But still, there are loads of
errors sent to the console ...

Thanks for any pointers,
-- 
Jakob.



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

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




RE: How do I read files inside an Action?

2002-12-19 Thread Chintalapaty, Sreedhar
Sorry for the confusion, I should have phrased my question better. What I wanted to 
know was how to read in an XML file _as an XML Document_ object. I intend to use that 
object to determine the flow of control.

Sreedhar


-Original Message-
From:   Ray Martin [mailto:[EMAIL PROTECTED]]
Sent:   Wed 12/18/2002 2:42 PM
To: [EMAIL PROTECTED]
Cc: 
Subject:RE: How do I read  files inside an Action?
Sir,

Just like any other file called from java.

In the action class you would need:

import java.io.File; // cocoon has some defaults - this could be one of them

//nothing special here, just an example.  however, this directory is where
cocoon places uploaded files by default.  make yours wherever your xml file
is located.
String currentPath = "C:/Program Files/Apache Group/Tomcat
4.1/work/Standalone/localhost/cocoon/cocoon-files/upload-dir/";

// next three lines checks the directory for files and sets pointer to the
first file in the directory (should put some checks around this)(could
iterate through the list)
File fileDir = new File(currentPath);
File[] listOfFiles = fileDir.listFiles();
String filename = listOfFiles[0].toString();

File uploadDir = new File(currentPath);
File theXMLfile = new File(filename);
System.out.println("The director is: " + theResume.getParent());
System.out.println("The file name: " + theResume.getName());
long fileLen = theXMLfile.length();
Long testThis = new Long(fileLen);
int fileLength = testThis.intValue();
FileInputStream fis = new FileInputStream(theResume);
byte[] byteArray = new byte[fileLength];
int cnt = fis.read(byteArray, 0, fileLength);
fis.close();

byteArray now contains the contents of theXMLfile.  this only works for
ASCII files.  i do not have an example at my fingertips for Unicode.


these are snippets from an action that i have performing.  if you need
anything else, holler.

Ray

> -Original Message-
> From: Chintalapaty, Sreedhar [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 18, 2002 10:00 AM
> To: [EMAIL PROTECTED]
> Subject: How do I read files inside an Action?
>
>
> Hi,
>
> Can some one point me to an example of how we can access an xml
> file on the file system from a custom Action?
>
> TIA,
>
> Sreedhar
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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. 

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




Cocoon build empty site

2002-12-19 Thread Christian Bucholdt



Hi,
 
I've installed Cocoon2 (jdk1.4 on Win XP) and 
developed some own components like Action, Selector und Generator.
 
On my own pc it work's fine. Now I installed it to 
a other pc. The same application with the same configurations build a empty 
site, every request. My debug notices also not at the Console. There is no 
failure from Tomcat or Cocoon.
 
Know somebody the reason?
 
thanks for help
 
christian


Re: Strange behaviour

2002-12-19 Thread Antonio Gallardo
This is one of the things that will be corrected or enhanced in the next
version of cocoon. "remove of spaces chars".

For now you can work around:
"Category"
"Carboxypeptidases"

or try to use the xsl function normalize-space() in a stylesheet.

Antonio Gallardo


Vermeulen, Francis dijo:
> Hi,
>
> can anyone tell me why the following xsp statements:
>
>   
>   
>   "Category"
>   
>   
>
> "Carboxypeptidases"
>   
>   (Generating free amino acids)
>   
>
> Generate this sort of Java code:
>
>
>
> xspAttr.addAttribute(
>   "",
>   "name",
>   "name",
>   "CDATA",
>   "\n\t\t\t\t\t" + String.valueOf("Carboxypeptidases") +
> "\n\t\t\t\t"
> );
>
>
> this.contentHandler.startElement(
>   "",
>
>
> ("Category")
>   ,
>
>
> ("Category")
>   ,
>   xspAttr
> );
>
> xspAttr.clear();
>
>
> this.characters("\n\t\t\t\t");
>
> this.characters("\n\t\t\t\t");
>
> this.characters("\n\t\t\t\t(Generating free amino acids)");
>
> this.characters("\n\t\t\t");
>
>
> this.contentHandler.endElement(
>   "",
>
>
> ("Category")
>   ,
>
>
> ("Category")
>   );
>
> <
>
> The problem here is in the "xspAttr.addAttribute()" call that these
> strings "\n\t\t\t\t\t" are being appended to
> "String.valueOf("Carboxypeptidases")", which is obviously not what I
> intended. To bypass this problem, I'm forced to add the correct Java
> code directly into the xsp file, eg:
>
>  xspAttr.addAttribute(
>   "",
>   "name",
>   "name",
>   "CDATA",
>   String.valueOf("Carboxypeptidases")
> );
>
> This behaviour is however not consistent, in some other xsp files the
> correct code is generated. I've been looking at the xsp: stylesheet, but
> cannot find an explanation for this behaviour.
>
> Regards,
> Francis
>
> 
> Ing. FRA Vermeulen
> Senior J2EE Architect
> ECM Solutions - Eindhoven
> mobiel: +31 (0) 6 222 03 856
> e-mail: [EMAIL PROTECTED]
> 
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Strange behaviour

2002-12-19 Thread Vermeulen, Francis
Hi,

can anyone tell me why the following xsp statements:



"Category"



"Carboxypeptidases"

(Generating free amino acids)


Generate this sort of Java code:



xspAttr.addAttribute(
  "",
  "name",
  "name",
  "CDATA",
  "\n\t\t\t\t\t" + String.valueOf("Carboxypeptidases") + "\n\t\t\t\t"
);
  

this.contentHandler.startElement(
  "",
  

("Category")
  ,
  

("Category")
  ,
  xspAttr
);

xspAttr.clear();


this.characters("\n\t\t\t\t");
  
this.characters("\n\t\t\t\t");
  
this.characters("\n\t\t\t\t(Generating free amino acids)");
  
this.characters("\n\t\t\t");
  

this.contentHandler.endElement(
  "",
  

("Category")
  ,
  

("Category")
  );

<

The problem here is in the "xspAttr.addAttribute()" call that these strings
"\n\t\t\t\t\t" are being appended to "String.valueOf("Carboxypeptidases")",
which is obviously not what I intended. To bypass this problem, I'm forced
to add the correct Java code directly into the xsp file, eg:

 xspAttr.addAttribute(
  "",
  "name",
  "name",
  "CDATA",
  String.valueOf("Carboxypeptidases")
);

This behaviour is however not consistent, in some other xsp files the
correct code is generated. I've been looking at the xsp: stylesheet, but
cannot find an explanation for this behaviour.

Regards,
Francis


Ing. FRA Vermeulen
Senior J2EE Architect
ECM Solutions - Eindhoven
mobiel: +31 (0) 6 222 03 856
e-mail: [EMAIL PROTECTED]




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

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




Re: i18n best practice

2002-12-19 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

> Thank you Konstantin!

Not at all.

>
> "Konstantin Piroumian" <[EMAIL PROTECTED]> writes:
> > My mail application could not open your message correctly due to some
error
> > in encoding, so my answers are marked by [KP]:
>
> Gnus wanted to know the encoding style (latin-1), sorry!
>
> > [KP] i18n transformer is not responsible for language selection, it
accepts
> > a 'locale' parameter (since C2.0.4) which can be generated by a variety
of
> > ways: URI parts, request parameters, retrieved from a DB and of course
> > generated by the LocaleAction.
>
> That's what I understood from the samples and experimentation.
>
> > (1) create URL's with ?locale=xx_YY
> >
> > [KP] This is a common technic for 'changing' the current language (which
> > will be stored in session by LocaleAction if configured)
>
> This is what I tried. My problem was, that subsequent requests used again
the
> first locale. With a little experimentation I found that this depends on
> cookies (of course, the session identification!).  This is why I asked
>
> > (2) store the state of the actual user locale in the session
> >
> > [KP] This is possible for ages by the LocaleAction. And even more, you
can
> > also store locale in a cookie, so that when the user re-visits your site
> > you'll get the locale that he's selected last time.
> >
> > While (1) is straightforward to achieve with stylesheet parameters, it
feels
> > somewhat messy. Solution (2) seems more elegant, however I need some
advice
> > how to:
> >
> > [KP] For (1) you will need to add '?locale=xx_YY' only in one place -
this
> > link for language change.
>
> ok
>
> > (2a) store and change the locale in the session
> > (2b) query the locale from the session and handle it to the
i18n-transformer
> >
> > I guess (2b) is what LocaleAction is for.
> >
> > [KP] LocaleAction is both: for 2a and 2b. Simply take a look at the i18n
> > samples in /webapp/samples/i18n directory). (Note, that there is also
the
> > old i18n directory in /webapp/i18n in C2.0.x versions - it should be
> > removed, do not look at it).
>
> Well, as far as I see, everything works now when cookies are enabled.
Would
> URL-rewriting be an options if no cookies are allowed?

Usually, the URL-rewriting is performed by the server (in WebLogic at least
and AFAIR in Tomcat too) if client does not support cookies. From the
application developer's POV the session tracking mechanism is transparent,
so you don't have to bother how is your session tracked. The only thing to
remember is that when you have external links (that refer to another
application context) or redirects then you'll have to explicitely encode the
session id in your URLs.

I hope you've found the needed configuration parameters that you need to set
to allow the locale information to be saved in session (and create a session
if needed).

Konstantin

>
> Martin
>
> --
> Martin Lüthi [EMAIL PROTECTED]
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE:

2002-12-19 Thread Geoff Howard
you put a qoute in front of login.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 7:50 AM
> To: [EMAIL PROTECTED]
> Subject: 
>
> Hi,
>
> I wann have a refresh:
> 
> after 5 seconds on my xsp page. The url="login" is a page that is
> listed in
> my sitemap.
> Trying it this way doesn't work.
>
> What am I doing wrong?
>
> Greetings
> Jonny
>
> --
> --
>
> This electronic message contains information from the mmo2 plc Group which
> may be
> privileged or confidential. The information is intended to be for the use
> of the
> individual(s) or entity named above. If you are not the intended recipient
> be aware
> that any disclosure, copying, distribution or use of the contents of this
> information
> is prohibited. If you have received this electronic message in error,
> please notify
> us by telephone or email (to the numbers or address above) immediately.
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: i18n best practice

2002-12-19 Thread Martin Lüthi
Thank you Konstantin!

"Konstantin Piroumian" <[EMAIL PROTECTED]> writes:
> My mail application could not open your message correctly due to some error
> in encoding, so my answers are marked by [KP]:

Gnus wanted to know the encoding style (latin-1), sorry!

> [KP] i18n transformer is not responsible for language selection, it accepts
> a 'locale' parameter (since C2.0.4) which can be generated by a variety of
> ways: URI parts, request parameters, retrieved from a DB and of course
> generated by the LocaleAction.

That's what I understood from the samples and experimentation.

> (1) create URL's with ?locale=xx_YY
> 
> [KP] This is a common technic for 'changing' the current language (which
> will be stored in session by LocaleAction if configured)

This is what I tried. My problem was, that subsequent requests used again the
first locale. With a little experimentation I found that this depends on
cookies (of course, the session identification!).  This is why I asked

> (2) store the state of the actual user locale in the session
> 
> [KP] This is possible for ages by the LocaleAction. And even more, you can
> also store locale in a cookie, so that when the user re-visits your site
> you'll get the locale that he's selected last time.
> 
> While (1) is straightforward to achieve with stylesheet parameters, it feels
> somewhat messy. Solution (2) seems more elegant, however I need some advice
> how to:
> 
> [KP] For (1) you will need to add '?locale=xx_YY' only in one place - this
> link for language change.

ok

> (2a) store and change the locale in the session
> (2b) query the locale from the session and handle it to the i18n-transformer
> 
> I guess (2b) is what LocaleAction is for.
> 
> [KP] LocaleAction is both: for 2a and 2b. Simply take a look at the i18n
> samples in /webapp/samples/i18n directory). (Note, that there is also the
> old i18n directory in /webapp/i18n in C2.0.x versions - it should be
> removed, do not look at it).

Well, as far as I see, everything works now when cookies are enabled. Would
URL-rewriting be an options if no cookies are allowed? 

Martin

-- 
Martin Lüthi [EMAIL PROTECTED]



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

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




Re: howto xmlform sitemap

2002-12-19 Thread Ivelin Ivanov
Fixed.

Although the HOWTO is intended as a illustration.
You should start customizing with the maintained demo.
The first page of the HOWTO mentions this.


Ivelin


- Original Message - 
From: "Thor Heinrichs-Wolpert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 1:00 AM
Subject: howto xmlform sitemap


> On the last page of the howto sample, it states
> 
> 
> 
> but it should be
> 
>  src="context://samples/stylesheets/xmlform/xmlform2html.xsl" />
> 
> Cheers,
> Thor HW
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Re: Fw: MDB Access

2002-12-19 Thread Antonio Gallardo
Check this:

http://outerthought.net/wiki/Wiki.jsp?page=SpecificDatabaseConnection

Antonio

marco scotoni dijo:
>
> - Original Message -
> From: "marco scotoni" <[EMAIL PROTECTED]>
> To: "Upayavira" <[EMAIL PROTECTED]>
> Sent: Thursday, December 19, 2002 2:05 PM
> Subject: Re: MDB Access
>
>
>> OK,
>>
>> i'm able to connect with this string in local way:
>> jdbc:odbc:Driver={Microsoft Access Driver
>> (*.mdb)};DBQ=c:\test\test.mdb;
>>
>> But when the file is located on intranet like \\test\test\test.mdb i'm
>> not able to send the username and password of net to access to file...
>>
>> not able to connect in net way:
>>
>> jdbc:odbc:Driver={Microsoft Access Driver
>> (*.mdb)};DBQ=\\test\test\test.mdb;
>>
>> thx
>>
>> Marco
>>
>> - Original Message -
>> From: "Upayavira" <[EMAIL PROTECTED]>
>> To: "marco scotoni" <[EMAIL PROTECTED]>
>> Sent: Thursday, December 19, 2002 1:59 PM
>> Subject: Re: MDB Access
>>
>>
>> > > There's anyone who could send me string connection to a MDB File
> please?
>> >
>> > I can't give you an exact string to do this - I haven't done it
>> myself.
>> >
>> > However, to connect to databases from Cocoon, you use JDBC. To
>> connect
> to
>> Access
>> > databases, you often use ODBC. Therefore, you could probably get
>> away
> with
>> using the
>> > JDBC-ODBC bridge, which I believe comes with some versions of the
>> JDK.
>> >
>> > Search on the net for JDBC-ODBC bridge, or maybe someone else on the
> list
>> can
>> > explain how to use it.
>> >
>> > Regards, Upayavira
>>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: MDB Access

2002-12-19 Thread Antonio Gallardo
Try the generic JDBC driver it must work. I did some test with it 2 years
ago.

Antonio Gallardo

marco scotoni dijo:
> There's anyone who could send me string connection to a MDB File please?
>
> thx
> __ Dark
> Schneider
> ICQ#: 13815557
> Current ICQ status:
> +  More ways to contact me
> __
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Fw: MDB Access

2002-12-19 Thread marco scotoni

- Original Message -
From: "marco scotoni" <[EMAIL PROTECTED]>
To: "Upayavira" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 2:05 PM
Subject: Re: MDB Access


> OK,
>
> i'm able to connect with this string in local way:
> jdbc:odbc:Driver={Microsoft Access Driver
> (*.mdb)};DBQ=c:\test\test.mdb;
>
> But when the file is located on intranet like \\test\test\test.mdb i'm not
> able to send the username and password of net to access to file...
>
> not able to connect in net way:
>
> jdbc:odbc:Driver={Microsoft Access Driver
> (*.mdb)};DBQ=\\test\test\test.mdb;
>
> thx
>
> Marco
>
> - Original Message -
> From: "Upayavira" <[EMAIL PROTECTED]>
> To: "marco scotoni" <[EMAIL PROTECTED]>
> Sent: Thursday, December 19, 2002 1:59 PM
> Subject: Re: MDB Access
>
>
> > > There's anyone who could send me string connection to a MDB File
please?
> >
> > I can't give you an exact string to do this - I haven't done it myself.
> >
> > However, to connect to databases from Cocoon, you use JDBC. To connect
to
> Access
> > databases, you often use ODBC. Therefore, you could probably get away
with
> using the
> > JDBC-ODBC bridge, which I believe comes with some versions of the JDK.
> >
> > Search on the net for JDBC-ODBC bridge, or maybe someone else on the
list
> can
> > explain how to use it.
> >
> > Regards, Upayavira
>


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

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




cocoon-users@xml.apache.org

2002-12-19 Thread Johannes . Becker
Hi,

I wann have a refresh:

after 5 seconds on my xsp page. The url="login" is a page that is listed in
my sitemap.
Trying it this way doesn't work.

What am I doing wrong?

Greetings
Jonny



This electronic message contains information from the mmo2 plc Group which
may be
privileged or confidential. The information is intended to be for the use
of the
individual(s) or entity named above. If you are not the intended recipient
be aware
that any disclosure, copying, distribution or use of the contents of this
information
is prohibited. If you have received this electronic message in error,
please notify
us by telephone or email (to the numbers or address above) immediately.




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

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




Re: i18n best practice

2002-12-19 Thread Konstantin Piroumian
Hi!

My mail application could not open your message correctly due to some error
in encoding, so my answers are marked by [KP]:

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 14:22
Subject: i18n best practice


Hello

The i18n transformer is a great solution for the creation of multilingual
content. So far I have found no documentation on how to best implement
language change. ATM I see two possibilities:

[KP] i18n transformer is not responsible for language selection, it accepts
a 'locale' parameter (since C2.0.4) which can be generated by a variety of
ways: URI parts, request parameters, retrieved from a DB and of course
generated by the LocaleAction.

(1) create URL's with ?locale=xx_YY

[KP] This is a common technic for 'changing' the current language (which
will be stored in session by LocaleAction if configured)

(2) store the state of the actual user locale in the session

[KP] This is possible for ages by the LocaleAction. And even more, you can
also store locale in a cookie, so that when the user re-visits your site
you'll get the locale that he's selected last time.

While (1) is straightforward to achieve with stylesheet parameters, it feels
somewhat messy. Solution (2) seems more elegant, however I need some advice
how to:

[KP] For (1) you will need to add '?locale=xx_YY' only in one place - this
link for language change.

(2a) store and change the locale in the session
(2b) query the locale from the session and handle it to the i18n-transformer

I guess (2b) is what LocaleAction is for.

[KP] LocaleAction is both: for 2a and 2b. Simply take a look at the i18n
samples in /webapp/samples/i18n directory). (Note, that there is also the
old i18n directory in /webapp/i18n in C2.0.x versions - it should be
removed, do not look at it).

[KP] Konstantin

Thanks for all hints

Martin


--
Martin L?thi [EMAIL PROTECTED]




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

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. 

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




RE: XSP/ESQL - separation of concerns?

2002-12-19 Thread Luca Morandini
Jeremy,

no idea... I use Stored Procedures, hence, performance is not an issue for me :)

Try searching this mailing list, the subject was mentioned some time ago.

Best regards,

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

> -Original Message-
> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP/ESQL - separation of concerns?
> 
> 
> 
> On Wednesday, Dec 18, 2002, at 11:37 Europe/London, Luca Morandini 
> wrote:
> 
> > The caveats are:
> > - SQLTranformer in slower than ESQL
> >
> 
> Eeargh!
> 
> How much slower?!?
> 
> regards Jeremy
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




i18n best practice

2002-12-19 Thread Martin Lüthi
Hello

The i18n transformer is a great solution for the creation of multilingual
content. So far I have found no documentation on how to best implement
language change. ATM I see two possibilities:

(1) create URL's with ?locale=xx_YY 

(2) store the state of the actual user locale in the session

While (1) is straightforward to achieve with stylesheet parameters, it feels
somewhat messy. Solution (2) seems more elegant, however I need some advice
how to:

(2a) store and change the locale in the session
(2b) query the locale from the session and handle it to the i18n-transformer

I guess (2b) is what LocaleAction is for. 

Thanks for all hints

Martin


-- 
Martin Lüthi [EMAIL PROTECTED]




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

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




How to store xml files in Xindice inside Cocoon

2002-12-19 Thread Sreenivasan N.
Hi all

I got a sudden doubt with hsql and Xindice. If we use 
Personnel are we connecting to HSQL or Xindice? If 
i want to store my xml files inside Xindice how it is done. I am not 
running Xindice as a seperate server.
Can somebody give some explanation.

Regards
Sreenivasan.







"Attitudes are much more important than aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 5816

Email. [EMAIL PROTECTED]
Per: [EMAIL PROTECTED]


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

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



reference stylesheet in xml document

2002-12-19 Thread Hans Thomas Nordeck



Is there a simple way to reference a stylesheet 
directly in the xml file and not in the Sitemap? 
 
In the XML document this syntax:
 

 
What do I have to write in the sitemap? As far as I 
know I alway have to specify the  Stylesheet for the transformer. Do I need 
an action that graps the information out of the XML so that i can use it in the 
matcher? Or is there a more simple way?
 
Hato
 
 


Re: XSP/ESQL - separation of concerns?

2002-12-19 Thread Jeremy Quinn

On Wednesday, Dec 18, 2002, at 11:37 Europe/London, Luca Morandini 
wrote:

The caveats are:
- SQLTranformer in slower than ESQL



Eeargh!

How much slower?!?

regards Jeremy


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

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




Re: context problem - repeat

2002-12-19 Thread Konstantin Piroumian
context problem - repeatProbably, the problem is in the level you are using
to access parameters in resource (../locale). You are calling your resource
from inside of two nested actions, so the level should be something like
{../../locale}.

It'd be better to pass parameters to resources explicitely just as you do
for the 'target'.

Konstantin

- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 07:53
Subject: context problem - repeat





-Original Message-
From: Hong Gia Dinh
Sent: 18 December 2002 09:35
To: '[EMAIL PROTECTED]'
Subject: context problem


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


































































but when i just can run the {1}-error pages of all pages  i cant run the
valid pages!!! but when i replace {1} by the hard coded pages , it can run
well the valid and error pages !!
i dont know how to solve it! when i run with {1} and the error pages form ,
i input the value but it cant find the correct page, it produces error like
this :


org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException: admin/system/.xsp could not be found. (possible
context problem)
how to fix it??? it' sstrange that i can run all the pages that match
adminstatic-* rather well!!!
can you all show me what i did wrong ??
Thanks so much GD


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

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




Re: EJBs and Cocoon (hmm, again ;-)

2002-12-19 Thread Konstantin Piroumian
From: "Alef Arendsen" <[EMAIL PROTECTED]>

Alef,

> Hi all,
>
> 
> You wouldn't want to develop an airline reservation system with (just)
> Cocoon.  You wouldn't want to develop a website and documentation
> production environment with (just) EJBs.
>
> I look forward to the two becoming more closely interoperable.  Having
> an
> XSP framework which can work with an EJB environment would be a good
> start
> 
>
> Ok, Rob mentioned the fact that he'd like to see Cocoon more
> interoperable with EJBs. That's exactly what I'd like to see as well.
> I'm kind of new to Cocoon but basically decided already to use in our
> next project, which is an eCommerce system that also has a lot of
> content management features in it.
>
> I want to have my interface component based as much as I want my backend
> to be component based and I think Cocoon is the solution for this
> problem. But how to connect Cocoon to my EJBs? I've seen this question
> asked a lot but haven't seen any real answers.
>
> So the question is: does anybody already have a decent solution for the
> EJB-Cocoon problem? Or isn't there any problem at all...

I really don't understand what are the problems with Cocoon and EJB.
In web environment Cocoon is just a servlet (though a huge one), so working
with EJBs from Cocoon is the same as if you would work from any other
servlet.

Are there any other issues?

I've been using Cocoon 1.8/2.0-alfa/2.0-beta in an project where all the
backend were EJBs and I don't remember having any problems (except common
problems with any other EJB-based application).

Ask more specific questions and I'll try answer them.

Konstantin

>
> If somebody would help me out here, you've got another happy Cocoon user
> once again ;-)
>
> Thanks a lot,
>
> Alef Arendsen
>
> --
> Alef Arendsen
> JTeam B.V.
> E: [EMAIL PROTECTED]
> T: +31(0) 20 486 20 36
> F: +31(0) 84 837 00 00
> M: +31(0) 6 24 11 1996
> W: www.jteam.nl
> [EMAIL PROTECTED]
> +31(0)6 19 338 921
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




MDB Access

2002-12-19 Thread marco scotoni
There's anyone who could send me string connection to a MDB File please?

thx 
__
Dark Schneider
ICQ#: 13815557
Current ICQ status:   
+  More ways to contact me 
__

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

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




Re: How do I read files inside an Action?

2002-12-19 Thread Konstantin Piroumian
You can do it like this:

Source source = null;
SourceResolver resolver = null;
try {
resolver = (SourceResolver) manager.lookup(
SourceResolver.ROLE );
source = resolver.resolveURI( fileName );
return builder.parse( new InputSource(
source.getInputStream() ));
}
catch (Exception x) {
logger.warn("XMLREsourceBundle: No excalibur-source " +
fileName,
x);
}
finally {
resolver.release( source );
manager.release( resolver );
}

Take a look at the ResourceExistsAction or latest (from CVS)
XMLResourceBundle for details.

Konstantin


From: "Chintalapaty, Sreedhar " <[EMAIL PROTECTED]>


Hi,

Can some one point me to an example of how we can access an xml file on the
file system from a custom Action?

TIA,

Sreedhar

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

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. 

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




Re: I think its time to have samples integrated as applications

2002-12-19 Thread Nicola Ken Barozzi

Sreenivasan N. wrote:

Hi All

It is just a bare suggestion. Currently there are samples which are 
split ted in various pages. Is it possible to have sample applications 
which can be used for Corporate intranets or internets so that the idea 
to develop those kind of sites will be easy. Give a thought about it.

For my intranet I use Forrest xml.apache.org/forrest.
The xml Apache site is built on it and it's Cocoon.

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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

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




I think its time to have samples integrated as applications

2002-12-19 Thread Sreenivasan N.
Hi All

It is just a bare suggestion. Currently there are samples which are split 
ted in various pages. Is it possible to have sample applications which can 
be used for Corporate intranets or internets so that the idea to develop 
those kind of sites will be easy. Give a thought about it.

Regards
Sreenivasan.







"Attitudes are much more important than aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 5816

Email. [EMAIL PROTECTED]
Per: [EMAIL PROTECTED]


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

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



Re: XPath problem in Cocoon?

2002-12-19 Thread Anna Afonchenko
Hi Luca. Thank you for answering. Yes, probably that's something with my
configuration. I am using Win98, Tomcat 4.1.12, Cocoon 2.0.4, Xalan 2.4.1.
I'll try to change the Xalan version.
Anyway, this thing is very weird.

Thank you.
Anna

- Original Message -
From: "Luca Morandini" <[EMAIL PROTECTED]>
To: "Cocoon-users" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 10:43 AM
Subject: RE: XPath problem in Cocoon?


Anna,

this is the output I got from your code:


  http://www.w3.org/1999/XSL/Format";>HELLO P content = some
text

...which I suppose to be the right one.

Therefore, could it be a problem related to the configuration you're using ?

My configuration is:
- Windows 2000 Prof SP3
- Tomcat 4.0.1
- Cocoon 2.0.3 with Xalan 2.2.0.D13 (yes, Xalan 2.3.1 has some bugs,  and I
decided to step down a little).

If I were you, I would;

- Change the Xalan version

and, provided that doesn't work:

- Change the Cocoon version (provided you're not using 2.0.3, of course)

Best regards,

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


> -Original Message-
> From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 8:35 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: XPath problem in Cocoon?
>
>
> Hi Luca.
> Thank you so much for help.
> Here are all my components:
>
> 1. the pipeline:
>
> 
> 
> 
> 
> 
>
> 2. the imput file (test.html):
>
> 
>  
>   Untitled
>  
>  
>   some text
>  
> 
>
> 3. the xsl (test.xsl):
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:fo="http://www.w3.org/1999/XSL/Format";
> xmlns:saxon="http://icl.com/saxon";
> extension-element-prefixes="saxon">
>
> 
>  
>   HELLO 
>   
>P content = 
>
>   
>  
> 
> 
>
> As you can see, with such xml and xsl I should have one match for p
element
> and it's content should be output inside the root element. But it just
> doesn't happen, it doesn't match the node. And now the interesting part
> strats:
> If I replace the select attribute of xsl:for-each to be
> "descendant::node()[name()='p']"
> instead of just "//p" (those two expressions mean exactly the same in the
> XPath),
> I suddenly get the match and the right answer from Cocoon.
> Also, if I run this stylesheet externally of Cocoon (for example, using
> XMLSpy XSLTransformation tool) I get the right answer for match "//p".
>
> So I know that my stylesheet is OK, but I can't understand why it doesn't
> work from Cocoon.
> If somebody can explain this thing for me, I would be more than happy,
> because I can't use the descendant::... style instead the // style in my
> real (big) stylesheet.
>
> Thank you all very much.
> Hope somebody can help me with this.
>
> Regards,
> Anna
>
>


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


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

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. 

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




URL Encoding

2002-12-19 Thread Ludovic de Beaurepaire
Hi All,

In an Action i want to encode an URL on the HttpResponse to have the session
Id on this URL.

url =
((org.apache.cocoon.environment.http.HttpResponse)(ObjectModelHelper.getResp
onse(objectModel))).encodeURL(url);

But my URL is not encoded.

I don't find where to configure if encoding is needed or not. Help please !

I'm using tomcat-4.1.12 and cocoon 2.0.4.

Ludovic


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

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




RE: XPath problem in Cocoon?

2002-12-19 Thread Luca Morandini
Anna,

this is the output I got from your code:

 
  http://www.w3.org/1999/XSL/Format";>HELLO P content = some text

...which I suppose to be the right one.

Therefore, could it be a problem related to the configuration you're using ?

My configuration is:
- Windows 2000 Prof SP3
- Tomcat 4.0.1
- Cocoon 2.0.3 with Xalan 2.2.0.D13 (yes, Xalan 2.3.1 has some bugs,  and I decided to 
step down a little).

If I were you, I would;

- Change the Xalan version

and, provided that doesn't work:

- Change the Cocoon version (provided you're not using 2.0.3, of course)

Best regards,

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

> -Original Message-
> From: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 8:35 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: XPath problem in Cocoon?
> 
> 
> Hi Luca.
> Thank you so much for help.
> Here are all my components:
> 
> 1. the pipeline:
> 
> 
> 
> 
> 
> 
> 
> 2. the imput file (test.html):
> 
> 
>  
>   Untitled
>  
>  
>   some text
>  
> 
> 
> 3. the xsl (test.xsl):
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:fo="http://www.w3.org/1999/XSL/Format";
> xmlns:saxon="http://icl.com/saxon";
> extension-element-prefixes="saxon">
> 
> 
>  
>   HELLO 
>   
>P content = 
>
>   
>  
> 
> 
> 
> As you can see, with such xml and xsl I should have one match for p element
> and it's content should be output inside the root element. But it just
> doesn't happen, it doesn't match the node. And now the interesting part
> strats:
> If I replace the select attribute of xsl:for-each to be
> "descendant::node()[name()='p']"
> instead of just "//p" (those two expressions mean exactly the same in the
> XPath),
> I suddenly get the match and the right answer from Cocoon.
> Also, if I run this stylesheet externally of Cocoon (for example, using
> XMLSpy XSLTransformation tool) I get the right answer for match "//p".
> 
> So I know that my stylesheet is OK, but I can't understand why it doesn't
> work from Cocoon.
> If somebody can explain this thing for me, I would be more than happy,
> because I can't use the descendant::... style instead the // style in my
> real (big) stylesheet.
> 
> Thank you all very much.
> Hope somebody can help me with this.
> 
> Regards,
> Anna
> 
> 


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

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

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