AW: Getting session object inside a custom generator

2003-06-18 Thread Jörn Heid
Title: Nachricht


public 
void generate () throws SAXException 
{Session session = ObjectModelHelper.getRequest (objectModel).getSession (true);
 

  
  -Ursprüngliche Nachricht-Von: Brian Delahunty 
  [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Juni 2003 
  12:18An: [EMAIL PROTECTED]Betreff: Getting 
  session object inside a custom generator
  Hey All,
   
  I was just wondering if it is 
  possible to get access to a users session object from within a custom 
  generator?
   
  Thanks
   
  Brian 
Dela


OT: Anybody successfully using XIndice and Cocoon?

2002-05-03 Thread Jörn Heid


If there's anybody with good knowledge and some time to answer some of my
questions, please let me know.
I'm looking for some help regarding XUpdate and application development
using Xindice...


Thanks in advance.
JOERN


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




AW: Problem with xmldb-pseudo-protocol

2002-05-01 Thread Jörn Heid

Thanks for your answer.
As my Cocoon installation thinks of a file path instead of a xmldb uri your
solution does not work :(

I must be a nisconfiguration (or a typo)...

-Ursprüngliche Nachricht-
Von: Arjé Cahn [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 1. Mai 2002 22:00
An: [EMAIL PROTECTED]
Betreff: RE: Problem with xmldb-pseudo-protocol


Is this a collection you are calling? Then you should try meta/#.

-Oorspronkelijk bericht-
Van: Jörn Heid [mailto:[EMAIL PROTECTED]]
Verzonden: 01 May 2002 20:14
Aan: [EMAIL PROTECTED]
Onderwerp: Problem with xmldb-pseudo-protocol




When I call this pipeline:







I get "java.io.FileNotFoundException: /C:/Programme/Apache
Group/resin/xmldb:xindice:/localhost:4080/db/ximmo/kruck/exposes/meta#."




I added the following lines from
http://www.cocooncenter.de/cc/documents/resources/xindice/index.html:




  
  
  

  

and used the latest cvs snapshot...

What's wrong?


BTW, why does  in  throw a class cast exception?

JOERN


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




Problem with xmldb-pseudo-protocol

2002-05-01 Thread Jörn Heid



When I call this pipeline:







I get "java.io.FileNotFoundException: /C:/Programme/Apache
Group/resin/xmldb:xindice:/localhost:4080/db/ximmo/kruck/exposes/meta#."




I added the following lines from
http://www.cocooncenter.de/cc/documents/resources/xindice/index.html:




  
  
  

  

and used the latest cvs snapshot...

What's wrong?


BTW, why does  in  throw a class cast exception?

JOERN


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




Solution for Problem with Resin 2.1.x and Cocoon 2.0.x

2002-05-01 Thread Jörn Heid

For all who will have problems with Resin 2.1.x running Cocoon 2.0.x and JDK
< 1.4.

Symptom:
After deleting dom.jar, sax.jar and jaxp.jar (the TODO for Resin 2.0.x), and
putting all required JARs to resin/lib I got a "NoSuchMethodError" as the
Resin-XSLT implementation was used instead of Xalan.

java.lang.NoSuchMethodError: javax.xml.transform.TransformerException:
method ()V not found
at com.caucho.xsl.XslException.(XslException.java:59)

Changing xalan-xxx.jar to a_xalan-xxx.jar does not succeed.




Solution:
Remove all entries in WEB-INF/services from resin.jar (you can change the
filename to resin.zip, delete those entries, and change the filename back
again).


JOERN


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




AW: AW: Cocoon use

2002-04-26 Thread Jörn Heid

Well, I do not know much about WebObjects.

As far as I know it's not free, isn't? Open source?
Does it use XML/XSL for the content and style?

I do not mean EJB oder Servlet/JSP technology. For me, it's not an open
standard.

Does it support true and only XML->XSL->whatever?

-Ursprüngliche Nachricht-
Von: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 26. April 2002 12:48
An: [EMAIL PROTECTED]
Betreff: Re: AW: Cocoon use


One does for damn sure.  WebObjects 5.1.x

-Marc

Jörn Heid wrote:

>1. Open Standards
>2. Output independency
>3. True MVC
>4. Open Source
>5. Java (plattform independency)
>6. Fast (regarding the points above)
>
>The question is if there's an alternative product on the market?
>I think not. Cocoon uses as much open standards as it can.
>No other product I know has those advantages.
>
>-Ursprüngliche Nachricht-
>Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
>Gesendet: Freitag, 26. April 2002 09:45
>An: '[EMAIL PROTECTED]'
>Betreff: Cocoon use
>
>
>People,
>
>I would like to know why you use Cocoon?
>
>Thank you,
>
>Edgar
>
>-
>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]>


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




AW: Cocoon use

2002-04-26 Thread Jörn Heid

1. Open Standards
2. Output independency
3. True MVC
4. Open Source
5. Java (plattform independency)
6. Fast (regarding the points above)

The question is if there's an alternative product on the market?
I think not. Cocoon uses as much open standards as it can.
No other product I know has those advantages.

-Ursprüngliche Nachricht-
Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 26. April 2002 09:45
An: '[EMAIL PROTECTED]'
Betreff: Cocoon use


People,

I would like to know why you use Cocoon?

Thank you,

Edgar

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




AW: problems installing cocoon2.0.2 under Tomcat4.0.3 and jdk1.4

2002-04-23 Thread Jörn Heid

I think there were some posts for it before.
And I hope I'm right ;)

The problem is Java 1.4. It has older versions of the xml libs.

So, create a dir in "jre/lib/ext" of your java installation named
"endorsed". There you should put the removed jars in order to replace
the Java 1.4 xml libs.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Gregor Neu E1
Gesendet: Dienstag, 23. April 2002 13:44
An: [EMAIL PROTECTED]
Betreff: problems installing cocoon2.0.2 under Tomcat4.0.3 and jdk1.4


Hi all,

I rebuilt cocoon under jdk1.4 and tried to install it under tomcat4.0.3
(both the full and the "light" edition)

I carefully followed the installation instructions in
"http://xml.apache.org/cocoon/installing/index.html"; (except for the bit

" ...3.Remove xalan-XXX.jar, xercesImpl-XXX.jar, batik-libs-XXX.jar, and
xml-apis.jar from the cocoon.war archive"

which I still don't know how to do.

starting the full tomcat and opening "http://localhost:8080/cocoon/";
gave the following error message:

+
Cocoon 2 - Internal server error

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does not
implement XMLReader

description java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

...

+++

and trying the light edition gave:

+++

type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling
sitemap: java.lang.NoClassDefFoundError:
org/w3c/dom/ranges/DocumentRange

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

path-info

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:536)



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


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




AW: free hosting cocoon

2002-04-14 Thread Jörn Heid

You have to say that only Cocoon 1 is supported.

-Ursprüngliche Nachricht-
Von: Paweł Sadowski [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 14. April 2002 00:00
An: [EMAIL PROTECTED]
Betreff: free hosting cocoon


www.mycgiserver.com

nice place for getting start with cocoon:-)


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




AW: Confused about Logging

2002-04-09 Thread Jörn Heid

Yes, I did so successfully with 2.0.1 and Resin 2.0.5.
Is anybody out there with 2.0.2 who can try to disable logging?

-Ursprüngliche Nachricht-
Von: Giacomo Pati [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 9. April 2002 11:19
An: [EMAIL PROTECTED]
Betreff: Re: Confused about Logging


Quoting Jörn Heid <[EMAIL PROTECTED]>:

> [Using Cocoon 2.0.2 in Jetty 4.0.0 on Win 2000 with JDK 1.4]
>
> I have changed all log-level attributes in logkit.xconf and web.xml to
> FATAL-ERROR but every debug message is printed out into the four log files
> and on stdout.
>
> Is this a problem of 2.0.2 or Jetty? How can I generally turn out -ALL-
> messages?

You have indeed choosen the right approach to eliminate DEBUG,INFO,WARN and
ERROR  message from cocoon. My system (Tomcat 4.0.1 and Cocoon pre
2.0.1-dev)
*will* report FATAL_ERRORs only that way.

Giacomo

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




-
This mail sent through IMP: http://horde.org/imp/

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




Confused about Logging

2002-04-09 Thread Jörn Heid

[Using Cocoon 2.0.2 in Jetty 4.0.0 on Win 2000 with JDK 1.4]

I have changed all log-level attributes in logkit.xconf and web.xml to
FATAL-ERROR but every debug message is printed out into the four log files
and on stdout.

Is this a problem of 2.0.2 or Jetty? How can I generally turn out -ALL-
messages?

JOERN


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




AW: Compression in HTML Serializer ?

2002-03-09 Thread Jörn Heid

You can remove most of those whitespaces (those between tags) with xslt und
some configurations within the sitemap.

This won't work for JavaScript or CSS as it's plain text.



-Ursprüngliche Nachricht-
Von: Luca Morandini [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 9. März 2002 12:54
An: Cocoon-users
Betreff: Compression in HTML Serializer ?


Folks,

I've been ruminating about speeding up my Cocoon app... and came up with the
conclusion that un-necessary white spaces in my app use more than the usual
20-30% of an HTML page.

Hence, I was wondering how to squeeze HTML of unnecessary spaces (and,
maybe, of Javascript comments ?) in the HTML Serializer (or in a
HTMLSerializer-derived serializer).

I know, web-servers can use compression schemes, but I'd like to give them
something slimmer anyway.

Does it make any sense ?
There's anyone who already thougth about it ?
Is someone interested in developing it ?

Best regards,

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




AW: Fw:

2002-02-26 Thread Jörn Heid

As I wanted to say it's a problem of the action(?) which parses the request
object. For that I think it's a bug so you have to contact the writter of
that action. As I do not have the example here I couldn't exactly help you.

Feel free to contact me directly and I can help you fixing the problem.

-Ursprüngliche Nachricht-
Von: Niket Anand [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Februar 2002 13:30
An: [EMAIL PROTECTED]
Betreff: Re: Fw: 


I have changed POST to GET, but still it is giving same error with url
http://localhost:8080/cocoon2.0.2/tutorial/results-dept.html?name=&cocoon-ac
tion-Find+Department.x=47&cocoon-action-Find+Department.y=9
so how to move next?
- Original Message -
From: "Jörn Heid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 5:34 PM
Subject: AW: Fw: 


> I haven't read all mails regarding this topic but if you change the form
> method to GET you can see that using submit the url will look like
>
> ...?cocoon-action-Add+Department=submit
>
> while a image will add the position of the click inside that image (here
for
> example 2/4; as this could be used for image maps):
>
> ...?cocoon-action-Add+Department.x=2&cocoon-action-Add+Department.y=4&
>
> So the possible .x has to be removed
>
> -Ursprüngliche Nachricht-
> Von: Niket Anand [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. Februar 2002 13:13
> An: [EMAIL PROTECTED]
> Betreff: Re: Fw:  name="cocoon-action" value="Submit">
>
>
> Hi Torsten,
> It works fine with type="submit" and  name ="cocoon-action-Add
Department".
> But if I change type="image" and src="images/submit.gif", it gives
following
> error.
> Here is the snippet of log line made in sitemap.log
> #
> DEBUG   (2002-02-26) 17:37.18:094   [sitemap]
> (/cocoon2.0.2/tutorial/images/bar-bottom-right.gif)
> HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern tutorial/**
> DEBUG   (2002-02-26) 17:37.18:094   [sitemap]
> (/cocoon2.0.2/tutorial/images/bar-bottom-right.gif)
> HttpProcessor[8080][4]/AbstractSitemap:
> Current Sitemap Parameters:
> PARAM: '1' VALUE: 'images/bar-bottom-right.gif'
> PARAM: '0' VALUE: 'tutorial/images/bar-bottom-right.gif'
>
> DEBUG   (2002-02-26) 17:37.18:134   [sitemap]
> (/cocoon2.0.2/tutorial/images/submit-button.gif)
> HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern tutorial/**
> DEBUG   (2002-02-26) 17:37.18:134   [sitemap]
> (/cocoon2.0.2/tutorial/images/submit-button.gif)
> HttpProcessor[8080][4]/AbstractSitemap:
> Current Sitemap Parameters:
> PARAM: '1' VALUE: 'images/submit-button.gif'
> PARAM: '0' VALUE: 'tutorial/images/submit-button.gif'
>
> DEBUG   (2002-02-26) 17:37.18:144   [sitemap]
> (/cocoon2.0.2/tutorial/images/dot.gif)
HttpProcessor[8080][0]/sitemap_xmap:
> Matched wildcard pattern tutorial/**
> DEBUG   (2002-02-26) 17:37.18:144   [sitemap]
> (/cocoon2.0.2/tutorial/images/dot.gif)
> HttpProcessor[8080][0]/AbstractSitemap:
> Current Sitemap Parameters:
> PARAM: '1' VALUE: 'images/dot.gif'
> PARAM: '0' VALUE: 'tutorial/images/dot.gif'
> ###
>
> Cocoon 2 - Internal server error
>
> --
--
> 
>
> type fatal
>
> message String index out of range: -16
>
> description java.lang.StringIndexOutOfBoundsException: String index out of
> range: -16
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> stack-trace
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: -16
> at java.lang.String.substring(String.java:1525)
> at
>
org.apache.cocoon.environment.http.HttpEnvironment.extractAction(HttpEnviron
> ment.java:139)
> at
>
org.apache.cocoon.environment.http.HttpEnvironment.(HttpEnvironment.java:106
> )
> at
>
org.apache.cocoon.servlet.CocoonServlet.getEnvironment(CocoonServlet.java:10
> 92)
> at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:954)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org

AW: Fw:

2002-02-26 Thread Jörn Heid

I haven't read all mails regarding this topic but if you change the form
method to GET you can see that using submit the url will look like

...?cocoon-action-Add+Department=submit

while a image will add the position of the click inside that image (here for
example 2/4; as this could be used for image maps):

...?cocoon-action-Add+Department.x=2&cocoon-action-Add+Department.y=4&

So the possible .x has to be removed

-Ursprüngliche Nachricht-
Von: Niket Anand [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Februar 2002 13:13
An: [EMAIL PROTECTED]
Betreff: Re: Fw: 


Hi Torsten,
It works fine with type="submit" and  name ="cocoon-action-Add Department".
But if I change type="image" and src="images/submit.gif", it gives following
error.
Here is the snippet of log line made in sitemap.log
#
DEBUG   (2002-02-26) 17:37.18:094   [sitemap]
(/cocoon2.0.2/tutorial/images/bar-bottom-right.gif)
HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern tutorial/**
DEBUG   (2002-02-26) 17:37.18:094   [sitemap]
(/cocoon2.0.2/tutorial/images/bar-bottom-right.gif)
HttpProcessor[8080][4]/AbstractSitemap:
Current Sitemap Parameters:
PARAM: '1' VALUE: 'images/bar-bottom-right.gif'
PARAM: '0' VALUE: 'tutorial/images/bar-bottom-right.gif'

DEBUG   (2002-02-26) 17:37.18:134   [sitemap]
(/cocoon2.0.2/tutorial/images/submit-button.gif)
HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern tutorial/**
DEBUG   (2002-02-26) 17:37.18:134   [sitemap]
(/cocoon2.0.2/tutorial/images/submit-button.gif)
HttpProcessor[8080][4]/AbstractSitemap:
Current Sitemap Parameters:
PARAM: '1' VALUE: 'images/submit-button.gif'
PARAM: '0' VALUE: 'tutorial/images/submit-button.gif'

DEBUG   (2002-02-26) 17:37.18:144   [sitemap]
(/cocoon2.0.2/tutorial/images/dot.gif) HttpProcessor[8080][0]/sitemap_xmap:
Matched wildcard pattern tutorial/**
DEBUG   (2002-02-26) 17:37.18:144   [sitemap]
(/cocoon2.0.2/tutorial/images/dot.gif)
HttpProcessor[8080][0]/AbstractSitemap:
Current Sitemap Parameters:
PARAM: '1' VALUE: 'images/dot.gif'
PARAM: '0' VALUE: 'tutorial/images/dot.gif'
###

Cocoon 2 - Internal server error




type fatal

message String index out of range: -16

description java.lang.StringIndexOutOfBoundsException: String index out of
range: -16

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.StringIndexOutOfBoundsException: String index out of range: -16
at java.lang.String.substring(String.java:1525)
at
org.apache.cocoon.environment.http.HttpEnvironment.extractAction(HttpEnviron
ment.java:139)
at
org.apache.cocoon.environment.http.HttpEnvironment.(HttpEnvironment.java:106
)
at
org.apache.cocoon.servlet.CocoonServlet.getEnvironment(CocoonServlet.java:10
92)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:954)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catali

AW: SOAP examples

2002-02-11 Thread Jörn Heid

Just found the examples of Ovidiu Predescu.
Sorry for that. I will hit me four times for that.

-Ursprüngliche Nachricht-
Von: Jörn Heid [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 11. Februar 2002 10:53
An: [EMAIL PROTECTED]
Betreff: SOAP examples



As far as I have seen it, the SOAP examples 'just' call SOAP functions
in order to display them as HTML, XML.

There's no example of using C2 as a SOAP server, isn't it?

What should be done for that? Well, the easiest way to do that is to
parse the envelope in an generator. This one will call an internal
pipeline of the same name (or uri) as given in the method name. Is there
a need for a namespace which simplifies the SOAP result xml?

What do you think? Is it as easy as I think?

JOERN


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




SOAP examples

2002-02-11 Thread Jörn Heid


As far as I have seen it, the SOAP examples 'just' call SOAP functions
in order to display them as HTML, XML.

There's no example of using C2 as a SOAP server, isn't it?

What should be done for that? Well, the easiest way to do that is to
parse the envelope in an generator. This one will call an internal
pipeline of the same name (or uri) as given in the method name.
Is there a need for a namespace which simplifies the SOAP result xml?

What do you think? Is it as easy as I think?

JOERN


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




AW: RE: File mode cause of "sitemap not available" problems?

2002-02-04 Thread Jörn Heid

Did you try to comment out the svg serializers in the sitemap?

-Ursprüngliche Nachricht-
Von: Baer Peter [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 4. Februar 2002 10:50
An: [EMAIL PROTECTED]
Betreff: Re: RE: File mode cause of "sitemap not available" problems?


Hi Chris,

thanks for your reply.

Unfortunately we need the graphics stuff, and we'd prefer to run a real
X server (not a headless replacement). However, we'll give Xvfb a go, as
soon as we have time.

We tried PJA, BTW, but C2 was unable to finde the Jars, although we put 
them in all the lib directories of which we know (one after another) 
that Java searches them for Jar files, and we also tried setting the 
CLASSPATH. It didn't work.

One problem here, is apparently that Cocoon can't be started ouf of the
box without running into problems, as, eg, the example applications use
SVG etc. Wouldn't it be a good idea to separate the stuff depending on X
/ AWT from the rest, so that one could, at least, get Cocoon up and 
running, and add the rest later?

Think that would help newbies and upgraders from C1!

Regards
-- 
+---+-+
|Peter C. A. Bär| Siemens Business Services & Co. OHG |
|Fon  +49.911.654-2387  | Von-der-Tann-Str. 30-31 |
|Fax  +49.911.654-2108  | 90439 Nürnberg  |
|   | Deutschland |
+---+-+
|  >>>  mailto:[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]>




Include SAX-Events

2002-02-01 Thread Jörn Heid

I know the CInclude transformer.
As it's possible to use an internal pipeline via the cocoon:// pseudo
protocol I looked into the spurces to find out how Cocoon manages that.

Cocoon uses streams to include the generated. I fear it's quite an overhead
as this means SAX->Stream->SAX.

Is it possible to include the SAX events (a pipeline without serialization)
with CInclude?


JOERN


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




AW: jvm.dll error!!

2002-01-31 Thread Jörn Heid

Just try out the latest 1.3 or 1.4 versions from Sun.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 21:17
An: [EMAIL PROTECTED]
Betreff: jvm.dll error!!


Hi,
Having trouble starting up Cocoon!

I have copied the cocoon.war file into my web apps folder as stated in the
installation documentation.

Started up Tomcat and typed in the URI http://localhost:8080/cocoon/ againas
stated. However an error was displayed as follows: -

Java has caused an error in JVM.dll
Java will now close

Tried restarting the computer yet to no avail. If I type just
http://localhost:8080/
it works fine without any errors.

I am not sure at all what to do next.

I am running Windows Me, Tomcat 4 ,Cocoon 2.0 and jdk1.2.2. Could jdk1.2.2
be the problem? Do I need a newer version?

Thanks

Andy




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




AW: Cocoon on a read-only medium

2002-01-21 Thread Jörn Heid

You can use JToEXE to create one.
This was the URL:
http://www.bravozulu.com/Products/JToExe/

You can use Google to find it elsewhere.

As this is off-topic(!) I won't answer any further mail to it on the mailing
list.
If anybody is interested in it I can give 2.2 as a ZIP (my installation).
Please send an eMail directly to me if you're interested.

JOERN


-Ursprüngliche Nachricht-
Von: Lewis, Andrew J [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 21. Januar 2002 17:08
An: '[EMAIL PROTECTED]'
Betreff: RE: Cocoon on a read-only medium


actually - you need the EXE. Launching documents directly from the
autorun.inf is error prone, and unreliable. There is another technotes out
there that basically points out that the type of exec call they use is not
the ShellOpen but rather a lower leve exec so the program needs to be an EXE
or a COM file.

I've been bit by that before. The wierd thing is that the document only will
work on some versions, but not others.

> --
> From: Robert Koberg[SMTP:[EMAIL PROTECTED]]
> Reply To: [EMAIL PROTECTED]
> Sent: Monday, January 21, 2002 11:00 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Cocoon on a read-only medium
>
> copied from MS:
>
> Creating an AutoRun-enabled CD-ROM application is a straightforward
> procedure. You simply include two essential files:
>
>   a.. An Autorun.inf file
>   b.. A startup application
> When a user inserts a disc into a CD-ROM drive on a AutoRun-compatible
> computer, the system immediately checks to see if the disc has a personal
> computer file system. If it does, the system searches for a file named
> Autorun.inf. This file specifies a setup application that will be run,
> along
> with a variety of optional settings. The startup application typically
> installs, uninstalls, configures, and perhaps runs the application.
>
> ---
>
> the .inf doc is plain text so no need for the exe!
>
>
>
>
>
>
>
>
> - Original Message -
> From: "Jorn Heid" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 21, 2002 7:54 AM
> Subject: AW: Cocoon on a read-only medium
>
>
> > I thought about using Jetty for that. It's free and it's possible to use
> it
> > as a read only server.
> > Creating a exe (autostart) should be quite easy with JEXE.
> > As it's all Java (except that autostart exe for Windows) it should be
> very
> > easy to distribute.
> >
> > -Ursprungliche Nachricht-
> > Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 21. Januar 2002 16:42
> > An: [EMAIL PROTECTED]
> > Betreff: RE: Cocoon on a read-only medium
> >
> >
> > > From: Robert Koberg [mailto:[EMAIL PROTECTED]]
> > >
> > > - Original Message -
> > > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > >
> > > > > Or do you rellay mean you put everything on a CD,
> > > > > together with the data, and get an PDF/HTMLoutput from such a
> > > > stand-alone
> > > > > application running the CD on any (customer) machine without any
> > > > previous
> > > > > adaptations?
> > > >
> > > > Yes. The CD I put together have:
> > > >  * JDK,
> > > >  * Resin (or Tomcat, does not matter),
> > > >  * webapp.
> > > >
> > > > That's all I need to get my application running. Obviously, webapp
> > > > contains all necessary libraries:
> > > >  * Avalon, Excalibur
> > > >  * Cocoon, regexp, jTidy, logkit, xalan, xerces, etc.
> > > >
> > > >
> > > > > Do you have any practical experience in creating an distributing
> > CD
> > > > > applications to customers?
> > > >
> > > > It's relatively easy to put together autorun and have CD started
> > > > automatically, with no installation steps required. Only thing you
> > need
> > > > from the customer machine is the free IP port (8080 or any other).
> > You
> > > > can even put Perl on the CD and have some startup/shutdown scripts.
> > >
> > > Are there any licensing problems distributing these software on CD?
> >
> > Don't know - I do not distribute and I'm not a lawyer. Assuming that all
> > software included either apache-style license, or Sun's JDK license
> > (Binary Code License Agreement), or Resin license (free for
> > non-commercial use), I'm quite sure that there is no reason to have a
> > license issue unless you sell these CDs.
> >
> > Here is excerpt from Sun's license:
> > ---
> > 2. License to Distribute Software. Subject to the terms and conditions
> > of
> > this Agreement, including, but not limited to Section 4 (Java (TM)
> > Technology Restrictions) of these Supplemental Terms, Sun grants you a
> > non-exclusive, non-transferable, limited license to reproduce and
> > distribute the Software in binary code form only, provided that (i) you
> > distribute the Software complete and unmodified and only bundled as part
> > of, and for the sole purpose of  running, your Programs, (ii) the
> > Programs
> > add significant and primary functionality to the Software, (iii) you do
> > not
> > distribute additional software intende

Cocoon on a read-only medium

2002-01-16 Thread Jörn Heid


Is it possible to run Cocoon on a CD (without having the possibility to
write anything)?

I think you can precompile all(?) of the dynamic content, but doesn't Cocoon
generate the sitemap at every startup? Can logging be completly disabled? Or
can I set the output dir to java.io.tmpdir?



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




AW: How can get the xml-file which cocoon produces...

2002-01-15 Thread Jörn Heid

That's right. But he should ;) And he thinks about it...

Back to the original message (to Christian): If it's possible for you, use
C2.
If you do have questions about it - feel free to contact me directly.

JOERN

-Ursprüngliche Nachricht-
Von: Morrison, John [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 15. Januar 2002 11:13
An: '[EMAIL PROTECTED]'
Betreff: RE: How can get the xml-file which cocoon produces...


> From: Jörn Heid [mailto:[EMAIL PROTECTED]]
>
> 1. Use a stylesheet and an html serializer
> 2. Don't use a stylesheet und use the xml serializer with a
> content-type of
> application/occet-stream (or something like that)
> 3. Write your own action

At the moment - he can't, if you read the message again he's still using C1
:)

> -Ursprüngliche Nachricht-
> Von: Schroeter Christian [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 15. Januar 2002 11:09
> An: [EMAIL PROTECTED]
> Betreff: How can get the xml-file which cocoon produces...
>
>
> ...and what must i do to:
> * display it in the browser (eg. MSIE)
> * sent it so that the browser would save it as an file
> * sent it as an eMail (eg as an attachment)
>
> at the moment i use cocoon 1.8.2 but i think about to change
> to cocoon2
>
> 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]>
>
>
> -
> 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]>
>


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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




AW: How can get the xml-file which cocoon produces...

2002-01-15 Thread Jörn Heid

1. Use a stylesheet and an html serializer
2. Don't use a stylesheet und use the xml serializer with a content-type of
application/occet-stream (or something like that)
3. Write your own action


-Ursprüngliche Nachricht-
Von: Schroeter Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 15. Januar 2002 11:09
An: [EMAIL PROTECTED]
Betreff: How can get the xml-file which cocoon produces...


...and what must i do to:
* display it in the browser (eg. MSIE)
* sent it so that the browser would save it as an file
* sent it as an eMail (eg as an attachment)

at the moment i use cocoon 1.8.2 but i think about to change to cocoon2

cu,
Christian

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




AW: Applet With cocoon

2002-01-07 Thread Jörn Heid



You 
can use applets which communicates with Cocoon (or any other CGI implementation) 
via HTTP.
Do you 
mean this?

  -Ursprüngliche Nachricht-Von: Ferran Urgell 
  [mailto:[EMAIL PROTECTED]]Gesendet: Montag, 7. Januar 2002 
  11:03An: [EMAIL PROTECTED]Betreff: Applet With 
  cocoon
  Hi everybody!!!
   
  I'm a new user in cocoon, and I'm searching about 
  the applets in cocoon. I've tried to put an applet, but not 
  works...
  Why ? I need help about this..
  I don't have an idea about applets with 
  cocoon
   
   
  Thanks
   
  Ferran


C2 generated websites?

2001-12-17 Thread Jörn Heid

Hi.

There's a section about C2 powered website.

For me, I use C2 as a generator for websites. Those website delivers static
html/pdf/png files which are generated by C2. The site is for that not
powered by C2.

Is there any interest in publishing 'C2 generated sites'?

If so, you can add http://www.n3k.co.uk and http://www.malediven.de for now.

JOERN


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




AW: XSLT transformations with Cocoon (added clearer formulation)

2001-12-10 Thread Jörn Heid

The browser shows the xml file becuase of its content type text/xml.
If you change that (you can do so in the sitemap) to application/x-whatever
your browser should ask you to save or view it. But that's not Cocoon
specific.

If you want to show the source code I think you have to write a xslt which
produces < und >.

Copy and Paste is not a task of a browser or Cocoon. There's no way to do
this except the user.

I can't understand your problem with FOP. What do you mean with XML2XML? FOP
means xml->pdf (via xsl:fo). The question is if you want to have a pdf. If
so, you can look for other approaches like xml->tex->ps->pdf (there were
some topics about that before I think).

JOERN

-Ursprüngliche Nachricht-
Von: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. Dezember 2001 16:52
An: [EMAIL PROTECTED]
Betreff: RE: XSLT transformations with Cocoon (added clearer
formulation)


That was real quick, David. Thanks.

I'll clarify:

1. In Tomcat [4] we have set the destination type to , as you have suggested.
The following problems have arisen:
- Internet Explorer gets into Cocoon's way and wants to open the xml file
when I click onto it to start the transformation. We haven't found a way to
stop IE doing that.
- Alternatively, we have set Tomcat to ,
producing an html output with the option of (a) viewing the source code, (b)
copy it to the clipboard, (c) paste it into an empty xml file using some XML
editor, (d) saving the xml file in the xml editor. This (a)..(d) does not
seem satisfactory at all.

We need the xml output as an xml file, to further process it.

Therefore, we'd prefer to
- set the destination type to 
- click on the xml file or any other destination file from inside the
browser TO START THE TRANSFORMATION
- have our xml editor open the xml file produced by the transformation or,
alternatively, view the xml sourcecode directly in the browser or,
alternatively, have an xml file dropped unviewed somewhere in a specified
destination folder.

Is this possible, and if it is, how?

2. The other question I tried to get over before was this: When we embarked
in FOP transformation we didn't expect so many problems linked to the
processor. However, we got lots of problems with non-existing or even wrong
documentation, non-working functions or functions working under some very
specific conditions. Is the state of realization of XML2XML with Cocoon [2]
satisfactory under this aspect? Or would anybody advise me to use rather a
different processor?

Thanks for your answer(s) in advance,

Matthias


-Original Message-
From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 4:00 PM
To: [EMAIL PROTECTED]
Subject: Re: XSLT transformations with Cocoon


I'm not sure I understand your question, so I'll try to answer as best I
can:

* Is it possible to use cocoon to do an XSLT transformation with the output
being XML?
Yes.

[...]

DR


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




AW: SVG Resizing

2001-12-09 Thread Jörn Heid

There are two possibilities.
1. Use use-request-parameters in the Trax-Transformer (see JavaDoc for it -
I haven't used it yet).
2. Write your own action which puts the parameter to the sitemap params.

-Ursprüngliche Nachricht-
Von: Gustavo Nalle Fernandes [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. Dezember 2001 01:18
An: Cocoon-Users
Betreff: SVG Resizing



Hello C2 Users,currently I have the following pipeline in my sitemap:








I woud like that when the user request
http://localhost/cocoon/picture.svg?width=200&height=300 , cocoon reads the
SVG file,make a XSL transform in order to resize the SVG an finally
serialize to jpg.My SVG files all looks like :





http://www.w3.org/2000/svg";
width="463.4675" height="463.4517" viewBox="0 0 463.4675 463.4517"
style="overflow:visible;enable-background:new 0 0 463.4675 463.4517"
xml:space="preserve">















The XSL must only change the values "width" and "height" in the svg xmlns
declaration,based on the URL request parameters.
Question:
How can I get the request parameter in this scenario ?




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




AW: Unable to show images in IE 5.5 and IE 6.0 (slightly OT)

2001-11-30 Thread Jörn Heid

I have had a similar problem.
That time the problem was the caching of Resin.
Perhaps this might help as I do not know if Tomcat has such a feature to be
disabled.

JOERN

-Ursprüngliche Nachricht-
Von: Luca Morandini [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 30. November 2001 15:46
An: Cocoon-users
Betreff: Unable to show images in IE 5.5 and IE 6.0 (slightly OT)


Folks,

My Cocoon app behaves erraticaly when I try to load images (actually a lot
of them, about 100, but each of them small) using IE 5.5 or IE 6.0, while
everything is fine on IE 5.0.

Not every image is shown, though they are loaded, since I can suddenly see
them with the "Show picture" right-mouse command.

The status of images (shown/not shown) keeps changing at every refresh, but,
on average, almost half are NOT shown.

For displaying them in my sitemap I use the  element.

I was just wondering whether anyone is experiencing this problem. Which is
probably not due to Cocoon in itself.

My configuration is:

- Windows 2000 SP2 pre-SP3
- IIS 5.0
- Tomcat 3.2
- Cocoon 2.0rc2

Best regards,

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




AW: Applett with C2

2001-11-29 Thread Jörn Heid

Why do you think it's a problem of Cocoon when it works if you
mini-/maximize your browser?
It's definetly a problem of your applet.

My applets works perfectly on Cocoon and anywhere else.

Feel free to contact me directly - perhaps I can help you.

JOERN

-Ursprüngliche Nachricht-
Von: Sebastian Mäder [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 29. November 2001 18:42
An: [EMAIL PROTECTED]
Betreff: Applett with C2


Hola Cocooners °-)

We have problem with an applet. The Applet starts, shwo the loading
screen, an stand still.
If we refresh like random comes the gray screen, sometime the loading
screen and real applet.
Whne minimize the browser and maximize again, the applet works fine.

And we dont know why!
Please Help

Sebastian and Hendrik


In sitemap.xmap:





In XSL - File:

























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




AW: svg2gif ?

2001-11-26 Thread Jörn Heid

I think the problem is the patent from Unisys.
But I do not know if it's just the compression algorithm (LZW).

You have to ask (or better search the mailing lists) for it at the batik
forum as Cocoon just uses the offered transcoders.

I'm interested in it, too, and have written such an serializer for C2. It
almost works but I cannot share the code due the patent. And it's quite
difficult (I used several code examples from different people). You have two
patch several source files - so it would be better to make the gif export
work with batik.

JOERN

-Ursprüngliche Nachricht-
Von: Alex Kachanov [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 26. November 2001 15:01
An: [EMAIL PROTECTED]
Betreff: svg2gif ?



Ok, guys, we have svg2jpeg, svg2png

How about svg2gif? Any clues?

with best wishes
Alexander Kachanov

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




AW: no html output after html rendering

2001-11-09 Thread Jörn Heid

I don't know what you exactly want.
First of all, does it make sense to generate a html file when you use a
redirect just before the page can be seen?
If you use a redirect, make sure the "docs/samples/junit/index.html" has a
valid matching pipeline.
Feel free to contact me directly if you do have further questions.

JOERN

-Ursprüngliche Nachricht-
Von: Erik Stunkat [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. November 2001 17:42
An: [EMAIL PROTECTED]
Betreff: no html output after html rendering


Hi

when I have an index.html page instead of the name I specify in
sitemap.xmap:


   


 !!!!
   


is that correct? I want to show the index.html page (there are a couple of
html generated).
log file is ok, but there is only a blank page in the browser. When I create
the same stuff without cocoon the initial page is "index.html"

Erik Stunkat
QA
POET Software
Hamburg, Germany
+49(0)40 60990-303
[EMAIL PROTECTED]



> I have docbook dtd xml 4.1.2 with N. Walshs stylesheets and I´m able to
get
> html output with the xsl stylesheets for plain html. It seems to work with
> fo to produce pdfs (no errors in log) but the browser shows nothing, empty
> page.

Your problem is probably called 'microsoft'.

1. Try with Netscape/Opera
or
2. Have an URL ending with .pdf

--
Sébastien Koechlin - IVision - [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]>


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




AW: C2 Logicsheet : HttpServletResponse

2001-11-08 Thread Jörn Heid

I do not know if I understand you.
You want to cast the response object to the request object? That cannot
work.
As the org.apache.cocoon.environment.* classes are wrappers around the
original Http* objects, you do have the HttpServletRequest ...

JOERN

-Ursprüngliche Nachricht-
Von: Shailendra Vasale [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. November 2001 08:32
An: [EMAIL PROTECTED]
Betreff: C2 Logicsheet : HttpServletResponse



hi Friends,  Why it's not possible to use HttpServletRequest object in
logicsheet in C2? Even when I type cast the
"org.apache.cocoon.environment.http.HttpResponse"  to HttpServletReusest,it
throws an exception -  "org.apache.cocoon.ProcessingException:  Exception in
ServerPagesGenerator.generate():  java.lang.ClassCastException:
org.apache.cocoon.environment.http.HttpResponse" How can use
HttpServletResponse object?Thanks in advance.  Regadrs, SHAILENDRA.


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




AW: [C2] Socket write error serving CSS file

2001-11-01 Thread Jörn Heid

** means that sudirs will be integrated.
* means looking in that specific directory.

I do have similar problems with Tomcat 4.01. For me, the output is wrong due
to socket exceptions.
With Resin, all works fine.

What version of Tomcat do you use?

-Ursprüngliche Nachricht-
Von: Mark S. Kent [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 1. November 2001 23:08
An: [EMAIL PROTECTED]
Betreff: [C2] Socket write error serving CSS file


My pages display fine, but the log is chock full of messages about a
java.net.SocketException.  I haven't changed my sitemap, but the error seems
to occur after I haven't "visited" my Cocoon2 page page for a while.  Once I
try to refresh it, it fills the logs with these messages while try to serve
my "testing.css" file (although the page displays just fine...).  See
snippets below.

What is the difference between "**.css" and "*.css" in the sitemap?  I
followed examples from the supplied samples to do mine in my own "testing"
folder, but what unsure what the difference means...

<< snipped from sitemap.xmap >>
   

   

<< snipped from cocoon.log >>
WARN(2001-11-01) 15:53.53:581   [cocoon  ] (/cocoon/testing/testing.css)
HttpProcessor[8080][3]/sitemap_xmap: Sitemap Error Process
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.net.SocketException: Connection aborted by peer: socket write error
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca
chingStreamPipeline.java:225)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac
tStreamPipeline.java:116)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:250)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN4005CD(sitemap_xmap.java:77
00)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2758)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2231)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:591)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Unknown Source)
java.net.SocketException: Connection aborted by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)


Thanks!
Mark


---

Request about Cocoon Generator / SAX-Events

2001-10-30 Thread Jörn Heid


I just finished to write my own generator.

The resulting, valid xml is transformed to html via a xsl file.

My problem is that the result is shown in the browser when all elements have
been built.

I thought that using SAX events results in a continuous outputted html.

It's essential for me as the result might take minutes to be generated.

JOERN_HEID


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




AW: external-graphic

2001-10-29 Thread Jörn Heid

I believe I have read something about that in the dev mailinglist. I think
there are people working at it. I don't know what the current state is.

The problem is the context. If you generate the pdf in a batch, FOP searches
for the in the directory of that xsl. In Cocoon the 'working dir' is
somewhere else.
This is a bug.
You can look for that working dir.

Another workaround would be to use http:// for the link. With SVG, this one
helped me.

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Adnan Zelkanovic [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 29. Oktober 2001 16:02
An: [EMAIL PROTECTED]; Cocoon-DEV; [EMAIL PROTECTED]
Betreff: external-graphic


I have a very big problem:

"external-graphic" doesn't work with my Cocoon2. If I run my xml/xsl-files
without Cocoon2 from fop.bat, then it works perfect. The generated pdf-file
contains the image. But if I try to generate the pdf with Cocoon2 "on the
fly", the generated pdf-file doesn't contain the image. What does it mean?
I'm using the "external graphic"-tag just with "src" only, nothing else. The
value of "src" is "file:image.jpg" for example. Why does it work with FOP
only, but not with Cocoon2 together? Is this a bug of Cocoon2/Tomcat/FOP or
something else?


Mit freundlichen Grüßen

Adnan Zelkanovic
allgäuNet.Onlinedienste GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 96869-33
Fax  (08241) 96869-26
http://www.allgaeu.net
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [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]>




AW: Another applet question

2001-10-29 Thread Jörn Heid



You 
can.
The 
question is - how.
One 
easy approach is to use GET or POST like this one for HTTP 
GET:
URL 
url = new URL ("/myproducer?xml="+URLEncoder.encode 
(myxmlstring));
 
You 
can map /myproducer to a xsp file or your own producer.
 
If you 
do have further questions feel free to contact me directly.
 
JOERN_HEID

  -Ursprüngliche Nachricht-Von: Gustavo Fernandes 
  [mailto:[EMAIL PROTECTED]]Gesendet: Montag, 29. Oktober 2001 
  11:58An: [EMAIL PROTECTED]Betreff: Another 
  applet question
  Hi 
  all,
   
  I´m currently 
  developing an applet who must insert data in a database thru cocoon2.How can 
  this be possible done ? Is it possible to send an XML to C2 and put a pipeline 
  that transform this into database queries ? 
   
   
   
  


  

  
Gustavo Nalle Fernandes[EMAIL PROTECTED]www.eccentia.comRua Luigi 
Galvani, 42 cj. 61Tel [FAX] 55 11 5506.0444Cel: (11) 
9229-2193São Paulo - BRASIL 
   


AW: Help!Cocoon2+XSP

2001-10-29 Thread Jörn Heid

Seems you have to learn HTML/HTTP first.
Look for CGI-Programming.
I think the answe for your question is to use request parameters


In XSP you can read this parameter and generate your database query.

-Ursprüngliche Nachricht-
Von: Skladov, Victor [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 29. Oktober 2001 11:07
An: [EMAIL PROTECTED]
Betreff: Help!Cocoon2+XSP


Hello friends!

Need your help urgently!
I am new to Cocoon and XSP, so sorry for this question...
THE PROBLEM:
I'm writing an XSP, that reads from the DB the names of different items
and lists them in a table in a HTML document. Then on mouse click upon
any item a new window with another HTML-Document must be opened with the
information about this item. The count of items, their description etc.
may vary everytime, so it's clear to me that in the 1st HTML  the names
of items must be packed in a VARIABLE, that then must be transmitted
further to another XSP, which shows an information about the item
clicked. HOW CAN I DO THAT? I haven't found good examples im Net so far.

Would be very very grateful for a example or a  good link!

Thanks in advance!

Regards,
Viktor

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




AW: C2 and Applets

2001-10-27 Thread Jörn Heid



You 
can use an action for this task. This would make it possible to use a html 
frontend transparently.
 
Perhaps, you should look for SOAP for greater flexibility - but my 
knowledge is not enought for telling you exactly how this could be 
done.

  -Ursprüngliche Nachricht-Von: Gustavo Fernandes 
  [mailto:[EMAIL PROTECTED]]Gesendet: Freitag, 26. Oktober 2001 
  15:46An: [EMAIL PROTECTED]Betreff: C2 and 
  Applets
  Hello 
  cocoon-users,
   
  Has anyone used an 
  applet interacting with cocoon 2 ? In my project,the applet would have 
  two use cases:
   
  1) Show  
  data.This would be done by posting a parametrized request via HTTP to cocoon 
  and receive an XML.Then the applet would handle XML (parse).Here the applet 
  would simulate a browser...No problem...
   
  2) Put data in 
  DB.The user would enter data in a applet form and this results must be 
  inserted in the database.How can this possible be done with the features 
  of  C2 ? 
   
  I´m using Coccon 2 
  Rc1 deployed in  JBoss+tomcat on a w2k + SQL server 
  machine...
   
   
   
   
   
  


  

  
Gustavo Nalle Fernandes[EMAIL PROTECTED]www.eccentia.comRua Luigi 
Galvani, 42 cj. 61Tel [FAX] 55 11 5506.0444Cel: (11) 
9229-2193São Paulo - BRASIL 
   


[C2] SocketException with Tomcat 4.0.1

2001-10-24 Thread Jörn Heid

When calling some pages in my project I get

2001-10-24 16:32:45 [org.apache.catalina.connector.warp.WarpConnector] Error
accepting requests
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:580)
at java.lang.Thread.run(Unknown Source)

in the apache.log (although I used :8080 and not any apache connector?).


With Resin 2.0.2 it works perfectly.

Any hints?

JOERN_HEID

Cocoon 2.0RC1a, Tomcat 4.0.1, JDK 1.3.1_01, Windows 2000 SP 2


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




AW: where to put class for action?

2001-10-24 Thread Jörn Heid

try WEB-INF/classes (and of course the directories for your package).

-Ursprüngliche Nachricht-
Von: sergi [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 24. Oktober 2001 08:32
An: [EMAIL PROTECTED]
Betreff: where to put class for action?


hi,
i would like to know, where to put java class for MYaction. i'm trying to
put my action in sitemap, but i don't know in which folder or file to put
that class so i could use it in my sitemap.


-
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 put libs in Tomcat 4.0.1 (without using .war)

2001-10-23 Thread Jörn Heid

Well, I'm a newbie using Tomcat.
With Resin, the deployment of the jars is quite easy - just put it in lib.

With Tomcat I tried out common/lib, server/lib and lib.
Without success.

Here's the exception:

type internal-server-error

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 21, column 7: Class
org.apache.avalon.framework.component.Component not found in import. Line
22, column 7: Class org.apache.avalon.framework.configuration.Configurable
not found in import. Line 23, column 7: Class
org.apache.avalon.framework.configuration.Configuration not found


I do not want to use the cocoon.war as I have many projects which requires
Cocoon. So I want to share those jars.

JOERN_HEID


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




AW: Generate static HTML with Cocoon

2001-10-22 Thread Jörn Heid

The problem of those web spiders is using of dynamic links (e.g. via
JavaScript or Flash).

I'm currently developing a little tool on top of Cocoon which generates
static content via a mapping xml file. There you can define all of your urls
and their dependencies to xml and xsl files. So if you change an xsl file
the tool downloads only that urls which could have changed. Aftre that it
can upload the newest files.

I want to support ftp and WebDAV. But the project just startet yesterday ;)

JOERN_HEID

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
Bertrand Delacretaz
Gesendet: Dienstag, 23. Oktober 2001 08:25
An: [EMAIL PROTECTED]
Betreff: Re: Generate static HTML with Cocoon


On Tuesday 23 October 2001 08:12, Holger Danske wrote:
> We want to use Cocoon to generate static HTML.

wget (www.gnu.org/software/wget), a command-line utility, is very good at
creating static versions of dynamic web sites.

--
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






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




AW: Generate static HTML with Cocoon

2001-10-22 Thread Jörn Heid

In one of my projects I used a web spider (OfflineExplorer) to get a static
copy of my webserver.

Second possibility: Write your own transformer (or serializer) which saves
the output to a file.

There might be more. Hope this helps.

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Holger Danske [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 23. Oktober 2001 08:13
An: [EMAIL PROTECTED]
Betreff: Generate static HTML with Cocoon


Hello Cocoon-User.

We want to use Cocoon to generate static HTML.

Bachground:
Our customer don't want to work with Cocoon, but we
want. So we want to use Cocoon for our work and
generate the HTML for the customer.

Is there an possibiltity to do that with Cocoon.

TIA

JD

__

Es ist soweit: das Nokia Game beginnt. Sei bereit für das multimediale
Abenteuer. Melde dich bis zum 3. November bei
http://de.promotions.yahoo.com/info/nokiagame an!

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




AW: about map:action and about sitemap

2001-10-22 Thread Jörn Heid

http://xml.apache.org/cocoon2/

-Ursprüngliche Nachricht-
Von: sergi [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 22. Oktober 2001 15:35
An: [EMAIL PROTECTED]
Betreff: about map:action


i'm not sure what this does... is anyone there who could explain 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]>




AW: [C2RC1a] Serious (maybeupload.jar) problem with Windows XP / JDK 1.3.1_01

2001-10-18 Thread Jörn Heid

No.
The problem seems to be fixed with the new version of maybeupload.jar. If
you can, please download it and integrate it into the CVS (I can also write
a bug report - should I?).

BTW it would be nice if ALL of the jars have version information in its
name.

-Ursprüngliche Nachricht-
Von: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 18. Oktober 2001 16:16
An: [EMAIL PROTECTED]
Betreff: Re: [C2RC1a] Serious (maybeupload.jar) problem with Windows XP
/ JDK 1.3.1_01


Jörn Heid wrote:
>
> When trying to start Cocoon (Resin 2.0.2) on XP I get
>
> java.lang.ClassFormatError:
uk/co/weft/maybeupload/MaybeUploadRequestWrapper
> (Code of a method longer than 65535 bytes)
> at java.lang.ClassLoader.defineClass0(Native Method)
>
> On my Windows 2000 machine the same configuration seems to work fine (same
> JDK, same Resin installation).

I believe that this may be a ClassLoader issue with Resin.  They already
have a synchronization error in their ClassLoader code.  It is very possible
to reason that M$ changed the native API that Resin was using and no longer
performs the unzip operation correctly.

Resin uses JNI to speed up sections of the servlet container.

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




[C2RC1a] Serious (maybeupload.jar) problem with Windows XP / JDK 1.3.1_01

2001-10-18 Thread Jörn Heid

When trying to start Cocoon (Resin 2.0.2) on XP I get

java.lang.ClassFormatError: uk/co/weft/maybeupload/MaybeUploadRequestWrapper
(Code of a method longer than 65535 bytes)
at java.lang.ClassLoader.defineClass0(Native Method)


On my Windows 2000 machine the same configuration seems to work fine (same
JDK, same Resin installation).



JOERN_HEID


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




AW: AW: internal server error

2001-09-27 Thread Jörn Heid

It depends what servlet-engine you are using.
E.g. Resin looks for the JAVA_HOME in the Windows registry. If this is set
to 1.4, it uses this version.

You do not need to uninstall 1.4 but you have to make sure that it is not
used by your servlet engine (setting the right JAVA_HOME).

-Ursprüngliche Nachricht-
Von: raghu iyengar [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 27. September 2001 15:13
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: AW: internal server error


hi john !
thanx for your reply.

this problem started only when i tried to use JDK1.4
...by setting java_home=C:\jdk1.4 and adding
C:\jdk1.4\bin into the path.

but after i got teh error i again reverted back to
jdk1.3 .

but alas , i cud no longer get the cocoon working.
is there any other entry which is to be changed.

shud i try un-installing jdk1.4 ?

please help.

raghu

--- Jörn Heid <[EMAIL PROTECTED]> wrote:
> Do you use another xml parser?
> E.g. JDK 1.4 or a parser in lib/ext?
>
> -Ursprüngliche Nachricht-
> Von: raghu iyengar [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 27. September 2001 14:52
> An: [EMAIL PROTECTED]
> Betreff: internal server error
>
>
>
> hi all !
>  i am using cocoon2.0b2 .
>  it was working perfectly well till yesterday.
>  now today  , i have not been able to run cocoon as
> it
> gives the
> following
> error when i click the url
> http://localhost:8080/cocoon
>
>
> exception
>
>
org.apache.avalon.framework.configuration.ConfigurationException:
> Error
> trying to load configurations
>
> request-uri
>
> /cocoon
>
> stacktrace
>
>
org.apache.avalon.framework.configuration.ConfigurationException:
> Error
> trying to load configurations
>  at
> org.apache.cocoon.Cocoon.configure(Cocoon.java:220)
>  at
> org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
>  at
>
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
>  at
>
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
>  at
>
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
>  at
>
org.apache.tomcat.core.Handler.init(Handler.java:215)
>  at
>
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
>  at
>
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
> Interceptor.java:130)
>  at
>
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
>  at
>
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
>  at
>
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
>  at
>
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> Caused by: org.xml.sax.SAXNotSupportedException:
> Property:
> http://xml.org/sax/properties/lexical-handler
>  at
>
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
>  at
>
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
>  at
> org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
>  ... 11 more
>
>
> embedded exception
>
> org.xml.sax.SAXNotSupportedException: Property:
> http://xml.org/sax/properties/lexical-handler
>
> embedded exception stacktrace
>
> org.xml.sax.SAXNotSupportedException: Property:
> http://xml.org/sax/properties/lexical-handler
>  at
>
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
>  at
>
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
>  at
> org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
>  at
> org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
>  at
>
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
>  at
>
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
>  at
>
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
>  at
>
org.apache.tomcat.core.Handler.init(Handler.java:215)
>  at
>
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
>  at
>
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
> Interceptor.java:130)
>  at
>
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
>  at
>
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
>  at
>
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
>  at
>
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
>
> i doubt that it is due to some parser error. but the
> fact is that my
> lib
> files or any of the environment variables have not
> been changed since
> yesterday.
>
> my cocoon/web-inf/lib contains  xerces_1_4_1.jar
> and
> my tomcat(3.2.2)
> 's
> lib directory contains xerces_1_3_1.jar .
>
> i have searched the mailing lists al

AW: internal server error

2001-09-27 Thread Jörn Heid

Do you use another xml parser?
E.g. JDK 1.4 or a parser in lib/ext?

-Ursprüngliche Nachricht-
Von: raghu iyengar [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 27. September 2001 14:52
An: [EMAIL PROTECTED]
Betreff: internal server error



hi all !
 i am using cocoon2.0b2 .
 it was working perfectly well till yesterday.
 now today  , i have not been able to run cocoon as it
gives the
following
error when i click the url
http://localhost:8080/cocoon


exception

org.apache.avalon.framework.configuration.ConfigurationException:
Error
trying to load configurations

request-uri

/cocoon

stacktrace

org.apache.avalon.framework.configuration.ConfigurationException:
Error
trying to load configurations
 at
org.apache.cocoon.Cocoon.configure(Cocoon.java:220)
 at
org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
 at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
 at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
 at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
 at
org.apache.tomcat.core.Handler.init(Handler.java:215)
 at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
 at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java:130)
 at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
 at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
 at
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
 at
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Caused by: org.xml.sax.SAXNotSupportedException:
Property:
http://xml.org/sax/properties/lexical-handler
 at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
 at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
 at
org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
 ... 11 more


embedded exception

org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler

embedded exception stacktrace

org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler
 at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
 at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
 at
org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
 at
org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
 at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
 at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
 at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
 at
org.apache.tomcat.core.Handler.init(Handler.java:215)
 at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
 at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java:130)
 at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
 at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
 at
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
 at
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


i doubt that it is due to some parser error. but the
fact is that my
lib
files or any of the environment variables have not
been changed since
yesterday.

my cocoon/web-inf/lib contains  xerces_1_4_1.jar   and
my tomcat(3.2.2)
's
lib directory contains xerces_1_3_1.jar .

i have searched the mailing lists also , and
everywhere they say that
it is
due to improper parser. but i am unable to pinpoint
the error here.
 please help.


Sumit Ranjan

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.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]>




[C2] SVG with external PNG

2001-09-26 Thread Jörn Heid

Hi.

I tried to use


inside a svg document which should be rendered to a PNG.

There's no error message but it seems as if the image could not be found. I
put the image in several directories without success.

Has anybody successfully included an external image into svg?

JOERN_HEID


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




AW: Locale-Action

2001-09-11 Thread Jörn Heid

Use ../1 instead of 1:


  





  


-Ursprüngliche Nachricht-
Von: Mario Brust [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 11. September 2001 13:03
An: Cocoon-Users (E-Mail)
Betreff: Locale-Action


hi,

I'm using cocoon2b2 and want to use the Locale-Action. But I did not found
any way to extract the language out of the uri.
I want to have a uri like
http://bla.bla/cocoon/bla/sitemaproot/de_DE/site.html.

If I extract the locale I don't know what to do with.

  





  


thx in advance
Mario Brust

---

System Development
VIRBUS AG
ICQ   24139151
[EMAIL PROTECTED]
www.virbus.de


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




AW: Uploads

2001-09-11 Thread Jörn Heid

You can't cast a string to a file (I think you have to learn more about
Java, first)!
Try
uploadDir = new File ("c:\\"); // look for the '\\'!

instead. I think you forced a compiler error.

The other question:
You want to reload a page, right?
There are many possibilities. The probably easiest version is to use
JavaScript to redirect to another page.
Actions might help you, too.

Feel free to contact me if you need additional help.

-Ursprüngliche Nachricht-
Von: Mohit Narain [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 11. September 2001 11:49
An: Cocoon Users
Betreff: Uploads


How does one configure where exactly the uploaded files are stored? In the
xsp file, we have:

public void contextualize(Context context) throws ContextException {
uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
}

I tried to change this as follows: uploadDir = (File) "c:\"; However, the
page did not display. Any idea where/how we should configure this?

Also, when the upload completes, by default, the "upload" page reloads.
However, if the upload code is in some file of ours (say try.xsp), then
where do we configure it to reload this page after the upload is complete?

Looking forward to your response,
Best Wishes...Mohit


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




AW: xlink namespace exception

2001-09-10 Thread Jörn Heid

It seems you have forgotten to declare the namespace like
http://whatever";>


-Ursprüngliche Nachricht-
Von: Dinkar Ganti [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 23:43
An: 'Cocoon-Users
Cc: [EMAIL PROTECTED]
Betreff: xlink namespace exception


Hello,

I am trying to generate an SVG page that has an xlink. CocoonServlet
exception throws the following exception:

http://apache.org/cocoon/error/2.0";>


:Error creating the resource





Error creating the
resource


Failed to execute
pipeline.


details


from


sourceorg.apache.cocoon.ProcessingException



descriptionorg.apache.cocoon.ProcessingException:
Failed to execute pipeline.:org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:org.xml.sax.SAXParseException: The namespace prefix
"xlink" was not declared.


extra info



org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.xml.sax.SAXParseException: The namespace prefix "xlink" was
not declared.




org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.xml.sax.SAXParseException: The namespace prefix "xlink" was
not declared.
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:228)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2464)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1447)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
;
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
3;
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)&#
13;
at java.lang.Thread.run(Thread.java:484)
org.xml.sax.SAXParseException: The namespace prefix "xlink" was not
declared.
at
org.apache.cocoon.components.parser.JaxpParser.error(JaxpParser.java:141)
3;
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1186)
at
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttribute
s(XMLValidator.java:3640)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1155)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1862)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1238)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:72)
;
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)&
#13;
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:220)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2464)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1447)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
;
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThr

AW: doubts regarding interwebapp communication

2001-09-10 Thread Jörn Heid

I think you just need to write your own action which puts the user name from
'whatever you want' into the pipeline.

-Ursprüngliche Nachricht-
Von: Davanum Srinivas [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 13:03
An: raghu
Cc: [EMAIL PROTECTED]
Betreff: Re: doubts regarding interwebapp communication


Raghu,

Since i have not used JetSpeed myselfAm forwarding this to the cocoon
users list. FWIW, Am
quite sure that JetSpeed is maintining session variables, you need to check
with their docs on
what they are and which ones you can use.

Thanks,
dims

--- raghu <[EMAIL PROTECTED]> wrote:
> Hello,
> I am working on forms in cocoon2.  What we have in our system is 2
> webapplications(cocoon2 and jetspeed,also a jakarta project).   Jetspeed
is
> a portlet framework,  and we have cocoon forms coming as portlet in the
> jetspeed main page.
> My question is,
> When the user logs in to the jetspeed homepage,  is there any methods in
> cocoon by which i can get the parameter (user name) from the jetspeed.  I
> have connected both the webapplication to the same database(mysql).
>What i want is,  when the user after logging to jetspeed , he clicks on
> cocoon form, cocoon takes the username as a parameter, and based on this
> parameter fills some fields from the database table so that the user
neednot
> enter those fields everytime he wants to fill in a form.
> Hope u are clear,
> Thanx,
> Raghu
>
>
> Man cannot remake himself without suffering. For he is both
> the marble and the sculptor.
>


=
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.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]>




To those who are experts in using fop

2001-09-10 Thread Jörn Heid

I want to create a pdf file in landscape format.
First, is it possible and if so, is it complexer than using portrait format?

Sorry, if it's a stupid question, I have never worked with fop before.

JOERN_HEID


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




AW: AW: Velocity and sitemap

2001-09-10 Thread Jörn Heid

"(It was a hard weekend .-)  )"

Indeed - you lost an eye ;)

-Ursprüngliche Nachricht-
Von: Tobias Luikard [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 10:17
An: [EMAIL PROTECTED]
Betreff: Re: AW: Velocity and sitemap


I'm getting old. Thanks a lot.

Tobias

(It was a hard weekend .-)  )

Jörn Heid wrote:

> Perhaps because of 'scr' instead of 'src' ;)
>
> -Ursprüngliche Nachricht-
> Von: Tobias Luikard [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 10. September 2001 09:54
> An: [EMAIL PROTECTED]
> Betreff: Re: Velocity and sitemap
>
> Hi out there,
>
> I got a similar problem like Daniel.
>
> I createt a example direktory called Connections. There a simple xls
> example Homer.html (-.xml and adress-html.xls) which works perfekt. But
> when I try to run the sales.html example a "Internal server error"
> occurres. The descripiton is: "org.apache.cocoon.ProcessingException:
> Stylesheet URI can't be null" but I specified one. The XSL tranformation
> works fine when I rename the files in Homer.xml and address-html.xsl (and
> call then Homer.html)
>
> Here the pipeline deffinitions from the sitemape.xmap in the Connections
> direcory:
>
>  
>   
>
> 
>
>
> 
> 
> 
>
>
> 
> 
> 
>
>   
>  
>
> With this statement I included the sitemap from the Context-Root sitemap:
>
>   
>
>  uri-prefix="Connections"/>
>
>   
>
> Can anyone give me a hint why sales.html isn't working?
>
> Thanks a lot
>
> Tobias
>
> Daniel Owsianski wrote:
>
> > Hi,
> >
> > I use Cocoon2b2 and Tomcat 3.2.3 with Apache.
> > sitemap has the following entries:
> >
> > 
> >
> > 
> > 
> > 
> >
> >
> > 
> >
> > 
> > 
> > 
> >
> >
> > 
> >
> > 
> > 
> > 
> >
> >
> > Why only 'C' works fine ??
> > Both 'A' and 'B' generates processing exception (unable to find
> > 'templates/hello-page.vm') in VelocityGenerator.
> > Please, a bit of help and explanation.
> > Thx in advance...
> >  Daniel
> >
> > -
> > 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]>


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




AW: Velocity and sitemap

2001-09-10 Thread Jörn Heid

Perhaps because of 'scr' instead of 'src' ;)

-Ursprüngliche Nachricht-
Von: Tobias Luikard [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 09:54
An: [EMAIL PROTECTED]
Betreff: Re: Velocity and sitemap


Hi out there,

I got a similar problem like Daniel.

I createt a example direktory called Connections. There a simple xls
example Homer.html (-.xml and adress-html.xls) which works perfekt. But
when I try to run the sales.html example a "Internal server error"
occurres. The descripiton is: "org.apache.cocoon.ProcessingException:
Stylesheet URI can't be null" but I specified one. The XSL tranformation
works fine when I rename the files in Homer.xml and address-html.xsl (and
call then Homer.html)

Here the pipeline deffinitions from the sitemape.xmap in the Connections
direcory:

 
  
   

   
   



   
   



   
  
 

With this statement I included the sitemap from the Context-Root sitemap:

  
   

   
  

Can anyone give me a hint why sales.html isn't working?

Thanks a lot

Tobias


Daniel Owsianski wrote:

> Hi,
>
> I use Cocoon2b2 and Tomcat 3.2.3 with Apache.
> sitemap has the following entries:
>
> 
>
> 
> 
> 
>
>
> 
>
> 
> 
> 
>
>
> 
>
> 
> 
> 
>
>
> Why only 'C' works fine ??
> Both 'A' and 'B' generates processing exception (unable to find
> 'templates/hello-page.vm') in VelocityGenerator.
> Please, a bit of help and explanation.
> Thx in advance...
>  Daniel
>
> -
> 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]>




AW: Sitemap parameters scope and non-destructive session parameters propagation

2001-09-10 Thread Jörn Heid

I hope I understood your problem.
I had a similar problem with parameters (look for 'Confused about Actions').
To get access to a parameter in a different hierachy, I use {../1}. Perhaps
this will solve your first question (try {../myvar_dbvars1}).

To propagate session values to the sitemap, I think you have to write an
action for that (I don't know if there's such an action in cocoon right now:

public void act ... {

Map sitemapParams = new HashMap ();
for (Enumeration e = request.getSession ().getAttributeNames (); e.hasNext
()) {
String key = e.nextElement ().toString ();
if (request.getSession ().getAttribute (key) != null)
   sitemapParams.put (key, request.getSession ().getAttribute
(key).toString ());
}
return sitemapParams;
}

No session attributes would be deleted. You could easily modify this code so
that only your attributes would be propagated (in this solution only
String-attributes would be useful).

If this doesn't help you feel free to write me directly.

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Paolo [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 09:27
An: [EMAIL PROTECTED]
Cc: Cocoon-Users
Betreff: Sitemap parameters scope and non-destructive session parameters
propagation


I am working with Cocoon but I have some problems with sitemap variables
scope. It seems that Sitemap Parameters propagated from db-authenticator
actions are not inherited into selectors or other db-authenticator
actions. Please look at this code and the scope of myvar_dbvars1
(propagated by db-authenticator action) to the session and Sitemap:
























Then, my questions:
1) is it possibile to propagate Sitemap parameters into child elements
of sitemap?
2) is it possibile to check and propagate session attributes to Sitemap
without deleting an existing session?

Thanx!

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.


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




Confused about Actions

2001-09-09 Thread Jörn Heid

The following pipeline does not work as the parameter {1} isn't visible
after the email-action:


   


  







  

The following version works


   

  









  

as the action return a map which duplicates the params:

Map sitemapParams = new HashMap ();
for (int i = 0; i < params.getNames ().length; i++)
try {
sitemapParams.put (params.getNames ()[i], params.getParameter
(params.getNames ()[i]));
} catch (Exception ex) { ex.printStackTrace (); }


Is this the right way?
Why do actions act like that? Why doesn't the pipeline union the different
parameter maps?

JOERN_HEID


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




AW: XML selector

2001-09-06 Thread Jörn Heid

I don't think this is possible as of SAX: When the first element is
generated from your xsp the pipeline has to be determined.
What you want to have is that the pipeline depends on the dom tree (C1). For
that, you have to find another way.

The simplest solution for your problem, I think, is to write an action which
puts the information you desires into the sitemap. Then you can use the
ParameterSelectorFactory to determine the transformation.

Other opinions? Am I right?

JOERN_HEID


-Ursprüngliche Nachricht-
Von: Paolo [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 6. September 2001 09:47
An: Cocoon-Users
Betreff: XML selector


I need to select the correct stylesheet checking some XML flags of the
pipeline. Something like this (look at the XML selector):


   

   
  
  
 
  
  
 
 
  
  
 
  
   

   
   


Remember I don't want to do that in the XSP generator because of leaving
separated logic and view of my page.

Any hint for me?

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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




[C2] Urgent problem with selector inside resource

2001-09-05 Thread Jörn Heid

When using the parameter-selector
(org.apache.cocoon.selection.ParameterSelectorFactory) inside a resource


   
   



  ...


  ...


   



I get

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 1213, column 28:  Undefined variable: selector_parameter_N192_expr
Line 1228, column 30:  Undefined variable: selector_parameter_N199_expr

But the same selector inside a map:match does to work.

So, is it a bug or is there a workaround?

JOERN_HEID


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




AW: C2: Action to modify request parameters

2001-09-05 Thread Jörn Heid

No. There are two maps.

-Ursprüngliche Nachricht-
Von: Chris Newland [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 5. September 2001 11:14
An: [EMAIL PROTECTED]
Betreff: RE: C2: Action to modify request parameters


Does this mean that sitemap parameters override request parameters of the
same name?

Form:
Set request parameter

--->

Filter action:
Get request parameter
Alter parameter
Save in sitemap parameter

--->

DatabaseAddAction:
use sitemap parameter instead of request parameter with same name

Otherwise, I cannot chain these actions without altering the code in
DatabaseAddAction (which I am trying not to do)

Thanks,

Chris

> -Original Message-
> From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Sent: 04 September 2001 19:14
> To: [EMAIL PROTECTED]
> Subject: AW: C2: Action to modify request parameters
>
>
> I think not. But you can use sitemap params (that's the preferred way for
> actions). And this works with the sitemap, other actions, xslt...
>
> -Ursprngliche Nachricht-
> Von: Chris Newland [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 4. September 2001 19:34
> An: Cocoon-Users
> Betreff: C2: Action to modify request parameters
>
>
> Hi All,
>
> I'm writing an action that is a pre-filter to DatabaseAddAction that
> modifies request parameters before they are sent to the database.
>
> In the map() method of my action I can get the parameters using:
>
> Request req = (Request)objectModel.get(Constants.REQUEST_OBJECT);
> String my_param = (String)request.getParameter("my_param");
>
> // process parameter here
>
> But there is no request.setParameter() to return the updated value to the
> request.
>
> Is this possible? (I hope so)
>
> Thanks,
>
> Chris
>
> --
> Chris Newland
> Software Research Engineer
>
> Emorphia Ltd
> Registered in England.  4133002
> Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
>
> Email: [EMAIL PROTECTED]
> Tel: +44 (0)1279 450100
> Fax: +44 (0)1279 450102
>
> Check out FIPA-OS at http://fipa-os.sourceforge.net/
>
> This message may contain information proprietary to Emorphia so any
> unauthorised disclosure, copying or distribution of its contents
> is strictly
> prohibited.
>
>
>
> -
> 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]>


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




AW: C2: Action to modify request parameters

2001-09-04 Thread Jörn Heid

I think not. But you can use sitemap params (that's the preferred way for
actions). And this works with the sitemap, other actions, xslt...

-Ursprüngliche Nachricht-
Von: Chris Newland [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. September 2001 19:34
An: Cocoon-Users
Betreff: C2: Action to modify request parameters


Hi All,

I'm writing an action that is a pre-filter to DatabaseAddAction that
modifies request parameters before they are sent to the database.

In the map() method of my action I can get the parameters using:

Request req = (Request)objectModel.get(Constants.REQUEST_OBJECT);
String my_param = (String)request.getParameter("my_param");

// process parameter here

But there is no request.setParameter() to return the updated value to the
request.

Is this possible? (I hope so)

Thanks,

Chris

--
Chris Newland
Software Research Engineer

Emorphia Ltd
Registered in England.  4133002
Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK

Email: [EMAIL PROTECTED]
Tel: +44 (0)1279 450100
Fax: +44 (0)1279 450102

Check out FIPA-OS at http://fipa-os.sourceforge.net/

This message may contain information proprietary to Emorphia so any
unauthorised disclosure, copying or distribution of its contents is strictly
prohibited.



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




AW: Strange problem with the Reader

2001-08-30 Thread Jörn Heid

Yes, many people have the same problem and likes resin for its better
performance.
It works, if you disable resins caching.
If both apps are caching the files it do not work.

But perhaps there's some good boy/girl who can fix it.
I saw a patch for the reader in the dev-list but I do not know if it fixes
this problem. So, perhaps you can checkout the latest version off the cvs
and tell us if it works with resin caching.


JOERN_HEID

-Ursprüngliche Nachricht-
Von: Tibi DONDERA [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 31. August 2001 09:12
An: [EMAIL PROTECTED]
Betreff: RE: Strange problem with the Reader


There was talk a while ago about some caching problems with Resin and GIF
files.
I have the same problems, with the gif files and the css problems. Using IE5
(with always reload), I sometimes get the images in my pages displayed right
(usually immediately after a restart of resin), and afterwards, they just
disappear (without any modification to any of the files).
I would be more than happy to send you examples of code (I kinda like resin
over Tomcat, so I would be happy tu use it), but frankly, I don't know where
to start, so start asking... :)

Cheers,
Tibi

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




XIncludeTransformer again - Please answer if you do have problems, too

2001-08-24 Thread Jörn Heid


I'm using my own XInclude-Transformer because - for me - the built-in one
only works for the first document.

For all the other file the base dir is not changed so that the transformer
looks in the wrong directory.

As I didn't get an answer to my questions before, it seems that nobody else
has the same problem (so it's a problem of my installation (everything else
is working) or nobody uses xinclude).

So, PLEASE send me an eMail if you have/had the same problem, so that I know
that there's a bug.

JOERN_HEID


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




AW: How do i insert a space character inside a node ?

2001-08-24 Thread Jörn Heid



I 
think   will help you.

  -Ursprüngliche Nachricht-Von: Lucian COZMA 
  [mailto:[EMAIL PROTECTED]]Gesendet: Freitag, 24. August 2001 
  10:49An: [EMAIL PROTECTED]Betreff: How do i 
  insert a space character inside a node ?
  I have a little problem, that I think it's 
  trivial, but you must understand that I've just begun using xml 
  & xslt. :)
  I want to insert a space character between 2 tags 
  something like that:
     
      
   Name    
   Value    
   -- here i want just a space character ( ); the cell 
  must contain just a space char  
  
   
  Can anyone help me solve my problem 
?
  Thanx !
   


AW: newcomer: desperately impossible getting Cocoon Started

2001-08-23 Thread Jörn Heid

I do ot use Tomcat but perhaps I can help you.
Remove (oder better just move;) all XML libs of Tomcat (perhpas jaxp.jar,
xerces.jar, dom.jar, sax.jar). Replace them with the xerces lib of C2.
Restart.

Hope that helps.

-Ursprüngliche Nachricht-
Von: Enric Staromiejski [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 23. August 2001 15:28
An: [EMAIL PROTECTED]
Betreff: newcomer: desperately impossible getting Cocoon Started


We've been reading lots of threads from faqs and mail-lists and do not
understand how it is possible anyone is actually working with tomcat &
Cocoon 2. We're sorry to admit, but are getting a bit desperate ...

Our problem is that we constantly get the message:

org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler when acceeding Cocoon from
http://localhost:8080/cocoon



Here it goes everything we've done once and again (among other things), in
different linux boxes (Redhat 7.0)

0. We formatted the hard disk and installed a complete new Linux RedHat 7.0
OS
1. We install jkd1.3.1 (and try java and javac are working ok)
2. We install Tomcat-3.2.1. (and it starts ok)
3. We install Cocoon-2.b2
4. We build cocoon.war
5. We copy cocoon.war inside ${TOMCAT_HOME}/webapps
6. We restart tomcat and apache
7. We type the url: http://localhost:8080/cocoon and get the
org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler exception.
8. Following the instructions inside the Cocoon's INSTALL file we delete
jaxp.jar and parser.jar and try again


we restart Tomcat and try again...but nothing new happens.We've even tried
to hack the JaxpParser.java.

This is not the only thing we've been trying. Our question is...is it really
anyone working with this without having this same problem? and if the anwser
is yes...how did they do it? and why is this happening to us? Does anyone
actually know how to solve it?

Thanks for your attention
Enric


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




AW: separation of content and logic

2001-08-23 Thread Jörn Heid

It really looks nice but I wouldn't use a jsp for rendering. I think using
XSLT is the 'standard' for rendering in different output formats. JSP is
only a Sun/Java standard not a W3C standard. You can use XSLT without Java -
JSP not. But that's believing.

Is XSP->XSLT->HTML that much slower?

-Ursprüngliche Nachricht-
Von: Karl Oie [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 23. August 2001 14:44
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: RE: separation of content and logic


I did manage to create a working treeview by creating the structure with a
xsl-sheet and then use the result in a xsp page, but after a little
experimentation I found it was easier to use a jsp page that requested the
"toc.html" stream from the pipeline.







jsp performed a little better that xsp when it came to code the required
functionality for the treeview, the result was quite good and the jsp page
that reads the structure from the c2 pipeline takes only 0.028s to process
(depending of levels of recursion of course). See enclosed screenshot!

mvh karl



-Original Message-
From: Max Larsson [mailto:[EMAIL PROTECTED]]
Sent: 23. august 2001 08:00
To: [EMAIL PROTECTED]
Subject: AW: separation of content and logic


Hi,

> Now I want to generate a Menuestructure from database
> entries in the way a filebrowser works, expand an entry on mouseclick,
> on the second mouseclick collapse them (html links).
> My first guess was to use nested select statements
> to only get those entries I want to show (expanded or collapsed).

I am trying to do the same. At the moment i am trying to use
the nested set model from "SQL for smarties". See:

http://www.dbmsmag.com/9603d06.html
http://www.dbmsmag.com/9604d06.html
http://www.dbmsmag.com/9605d06.html

> As I thought further may be it would be better in the xsp
> to always retrieve all items from the database
> and then decide in the stylesheet which entries to
> show and which not (e.g. by session attributes).
> But in a xsl I cann't use 

After thinking a lot i decided to let xsp retrieve
the complete menu structure and let the xsl stylesheet
decide which menu items are collapsed or expandended.
To that i will give the xsl stylesheet a parameter,
which contains all the ids of the menuitems, wich shall
be expanded. That's my idea, if it works have to
be proved.

Max

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




AW: C2: can't match images in sitemap

2001-08-22 Thread Jörn Heid

What URL produces
?

If it's "pages/test.xsp" the link has to be "../images/my_image.jsp" ...

-Ursprüngliche Nachricht-
Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 22. August 2001 16:30
An: [EMAIL PROTECTED]
Betreff: RE: C2: can't match images in sitemap


Chris,

Access "images/my_image.jpg" from the browser and look into cocoon.log file.
(you may want to delete existing cocoon.log - if any - before this)

Vadim

> -Original Message-
> From: Chris Newland [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 10:10 AM
> To: Cocoon-Users
> Subject: C2: can't match images in sitemap
>
>
> Hi All,
>
> I'm trying to add a map:match to my sitemap to fetch images but they are
not
> fetched (my fault, Cocoon2 is working great)
>
> Location of my files:
>
> tomcat/webapps/cocoon/docs/samples/pages/my_page.xsp
> tomcat/webapps/cocoon/docs/samples/images/my_image.jpg
> tomcat/webapps/cocoon/stylesheets/my_xsl.xsl
>
> sitemap entries:
>
> 
>   
>   
> 
>
> (loads + processes XSP page fine)
>
> 
>   
> 
>
> (does not return the image)
>
> The returned HTML contains:
>
> 
>
> As far as I can see, this is the same way that the cocoon.gif image is
> fetched from samples.xml but I can't see what I'm doing wrong.
>
> Any help would be appreciated.
>
> Thanks,
>
> Chris
>
> --
> Chris Newland
> Software Research Engineer
>
> Emorphia Ltd
> Registered in England.  4133002
> Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK
>
> Email: [EMAIL PROTECTED]
> Tel: +44 (0)1279 450100
> Fax: +44 (0)1279 450102
>
> Check out FIPA-OS at http://fipa-os.sourceforge.net/
>
> This message may contain information proprietary to Emorphia so any
> unauthorised disclosure, copying or distribution of its contents is
strictly
> prohibited.
>
>
>
> -
> 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]>




AW: Error with Coccon2b2 and Jakarta Tomcat 4 b7

2001-08-16 Thread Jörn Heid

I think here's the problem:

DEBUG   99785   [cocoon  ] (main): Could not access the Component for role:
org.apache.cocoon.components.parser.Parser
java.lang.ClassCastException: org.apache.crimson.jaxp.SAXParserFactoryImpl
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:155)
at
org.apache.cocoon.components.parser.JaxpParser.(JaxpParser.java:38)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)


I don't have Tomcat b7 installed so it could be wrong what I'm writing.

Try to replace the xml libs of tomcat (seems that it uses Crimson) with the
one of C2 (xerces_xxx.jar).

Hope this helps.

JOERN_HEID


-Ursprüngliche Nachricht-
Von: dom [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 15. August 2001 08:08
An: [EMAIL PROTECTED]
Betreff: Error with Coccon2b2 and Jakarta Tomcat 4 b7


I cannot get Cocoon 2 beta2 to to work with C:\jakarta-tomcat-4.0-b7 on a
Win2k machine.  Following is my web log.

Please help!

Thanks in advance




DEBUG   99785   [cocoon  ] (main): Using configuration file: /cocoon.xconf
DEBUG   99785   [cocoon  ] (main): extraClassPath is absolute:
C:\jakarta-tomcat-4.0-b7\common\lib\servlet.jar
DEBUG   99785   [cocoon  ] (main): Trying to load class:
org.hsqldb.jdbcDriver
INFO99785   [cocoon  ] (main): Reloading from:
jndi:/localhost/cocoon/cocoon.xconf
DEBUG   99785   [cocoon  ] (main): New Cocoon object.
DEBUG   99785   [cocoon  ] (main): = System Properties Start =
DEBUG   99785   [cocoon  ] (main): java.runtime.name=Java(TM) 2 Runtime
Environment, Standard Edition
DEBUG   99785   [cocoon  ] (main): sun.boot.library.path=C:\jdk1.3.1\jre\bin
DEBUG   99785   [cocoon  ] (main): java.vm.version=1.3.1-b24
DEBUG   99785   [cocoon  ] (main): java.vm.vendor=Sun Microsystems Inc.
DEBUG   99785   [cocoon  ] (main): java.vendor.url=http://java.sun.com/
DEBUG   99785   [cocoon  ] (main): path.separator=;
DEBUG   99785   [cocoon  ] (main): java.vm.name=Java HotSpot(TM) Client VM
DEBUG   99785   [cocoon  ] (main): file.encoding.pkg=sun.io
DEBUG   99785   [cocoon  ] (main): java.vm.specification.name=Java Virtual
Machine Specification
DEBUG   99785   [cocoon  ] (main): user.dir=C:\jakarta-tomcat-4.0-b7\bin
DEBUG   99785   [cocoon  ] (main):
org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
DEBUG   99785   [cocoon  ] (main): java.runtime.version=1.3.1-b24
DEBUG   99785   [cocoon  ] (main):
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
DEBUG   99785   [cocoon  ] (main): os.arch=x86
DEBUG   99785   [cocoon  ] (main):
java.io.tmpdir=C:\DOCUME~1\dsisnero\LOCALS~1\Temp\
DEBUG   99785   [cocoon  ] (main): line.separator=

DEBUG   99785   [cocoon  ] (main): java.vm.specification.vendor=Sun
Microsystems Inc.
DEBUG   99785   [cocoon  ] (main): java.awt.fonts=
DEBUG   99785   [cocoon  ] (main):
java.naming.factory.url.pkgs=org.apache.naming
DEBUG   99785   [cocoon  ] (main): os.name=Windows 2000
DEBUG   99785   [cocoon  ] (main):
java.library.path=C:\jdk1.3.1\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program
Files\IBM\IBMDebug\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\
PROGRAM
FILES\THINKPAD\UTILITIES;C:\PROGRA~1\COMMON~1\AUTODE~1;C:\jdk1.3.1\bin;C:\IM
Nnq_NT;C:\jakarta\ant1.4.b1\bin;c:\jakarta\fop-0_15_0;c:\cygwin\bin;c:\Progr
am Files\emacs207\bin;c:\Program Files\emacsen\bin;c:\Program
Files\Ghostgum\gsview;c:\jakarta\fop-0_16_0\bin;C:\mysql\bin
DEBUG   99785   [cocoon  ] (main): java.specification.name=Java Platform API
Specification
DEBUG   99785   [cocoon  ] (main): java.class.version=47.0
DEBUG   99785   [cocoon  ] (main): os.version=5.0
DEBUG   99785   [cocoon  ] (main): user.home=C:\Documents and
Settings\dsisnero
DEBUG   99785   [cocoon  ] (main): user.timezone=America/Denver
DEBUG   99785   [cocoon  ] (main): catalina.useNaming=true
DEBUG   99785   [cocoon  ] (main):
java.awt.printerjob=sun.awt.windows.WPrinterJob
DEBUG   99785   [cocoon  ] (main): file.encoding=Cp1252
DEBUG   99785   [cocoon  ] (main): java.specification.version=1.3
DEBUG   99785   [cocoon  ] (main): catalina.home=C:\jakarta-tomcat-4.0-b7
DEBUG   99785   [cocoon  ] (main): user.name=dsisnero
DEBUG   99785   [cocoon  ] (main):
java.class.path=C:\jakarta-tomcat-4.0-b7\bin\bootstrap.jar;C:\jdk1.3.1\lib\t
ools.jar
DEBUG   99785   [cocoon  ] (main):
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
DEBUG   99785   [cocoon  ] (main): java.vm.specification.version=1.0
DEBUG   99785   [cocoon  ] (main): java.home=C:\jdk1.3.1\jre
DEBUG   99785   [cocoon  ] (main): java.specification.vendor=Sun
Microsystems Inc.
DEBUG   99785   [cocoon  ] (main): user.language=en
DEBUG   99785   [cocoon  ] (main): awt.toolkit=sun.awt.windows.WToolkit
DEBUG   99785   [cocoon  ] (main): java.vm.info=mixed mode
DEBUG   99785   [cocoon  ] (main): java.version=1.3.1
DEBUG   99785   [cocoon  ] (main): java.ext.dirs=C:\jdk1.3.1\jre\lib\ext
DEBUG   99785   [cocoon  ] (main):
sun.boot.class.path=C:\jdk1.3.1

AW: session-invalidator and back-button?

2001-08-16 Thread Jörn Heid

As I know there are two meta-tags.
The one with expires and another with nocache.

Perhaps it works if you are using both.

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Enke Michael [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 16. August 2001 15:30
An: [EMAIL PROTECTED]
Betreff: Re: session-invalidator and back-button?


Thank you for the hint, I never used this.
It works.
But: konqueror (KDE webbrowser) seems not to care
about "expires". This confused me awhile.

Michael

java guru wrote:
>
> Hi.,
>   Correct me if i am wrong...why not use page
> expiration time in http headers?..
>
>  --- "Morrison, John" <[EMAIL PROTECTED]>
> wrote: > If you use the javascript:location.replace (I
> > *think* that's what its
> > called) I don't *believe* that the new page is added
> > to the history...
> >
> > > -Original Message-
> > > From: Enke Michael
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, 16 August 2001 1:54 pm
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: session-invalidator and back-button?
> > >
> > >
> > > But if I use e-mail or banking over internet,
> > > it is not possible to get the last page back.
> > > And there is no extra window, the back button is
> > selectable.
> > > The server answers that an error occured or that
> > > I have to login again.
> > >
> > > Is there a way in cocoon other than spawning
> > another browser window?
> > >
> > > Michael
> > >
> > > Adrian Geissel wrote:
> > > >
> > > > Hi Michael,
> > > >
> > > > I believe that the only way to solve such an
> > issue is to
> > > 'run' the protected
> > > > portion of your website in a spawned browser
> > window, and
> > > then when the user
> > > > log's out, to close that window. This will
> > ensure that the
> > > Back history,
> > > > which is local to a browser window, cannot be
> > access with
> > > permission.
> > > >
> > > > Hope that this helps,
> > > > Adrian
> > > >
> > > > - Original Message -
> > > > From: Enke Michael
> > <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, August 16, 2001 11:46 AM
> > > > Subject: session-invalidator and back-button?
> > > >
> > > > > Hi,
> > > > > I tryed the web-application demo from cocoon2
> > > > > where a login and logout can be performed.
> > > > > But after logout if I press the back button of
> > my browser
> > > > > I get back into protected area without
> > authorization.
> > > > > How can this be avoided?
> > > > >
> > > > > Michael
> > > > >
> > > > >
> > >
> >
> -
> > > > > 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]>
> > >
> >
> >
> >
> ===
> > Information in this email and any attachments are
> > confidential, and may
> > not be copied or used by anyone other than the
> > addressee, nor disclosed
> > to any third party without our permission.  There is
> > no intention to
> > create any legally binding contract or other
> > commitment through the use
> > of this email.
> >
> > Experian Limited (registration number 653331).
> > Registered office: Talbot House, Talbot Street,
> > Nottingham NG1 5HF
> >
> >
> -
> > 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]>
> >
>
> =
> Thanks and have great day
> srini
>
> 
> Do You Yahoo!?
> Send a newsletter, share photos & files, conduct polls, organize chat
events. Visit http://in.groups.yahoo.com.
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscr

Finally mail: Strange problem with the Reader

2001-08-14 Thread Jörn Heid

Sorry, here's a second addition:

When I change my file ending from .jpg to .gif and back again it seems that
it's not a problem of the ending as the gif makes problems with the ending
.jpg, too. The jpg doesn't with a .gif ending.

As a workaround I changed the following lines

public long getLastModified() {
   return 0;
   //return this.inputSource.getLastModified();
   }

This is my second workaround (the other was the XIncludeTransformer) :(

Until now it seems that nobody can help me and nobody seems to have the same
problems I have. If so don't mind. But if someone else does have those
problems please answer. I would like to have some kind of lobby to eliminate
those problems before C2 goes final.

JOERN_HEID


-Ursprüngliche Nachricht-
Von: Jörn Heid [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 14. August 2001 22:13
An: [EMAIL PROTECTED]
Betreff: AW: Strange problem with the Reader


Addition:
I used the source of the ResourceReader and added some System.out in some
methods. Perhaps, this helps.

Loading in IE (image could be seen):
setup
shouldSetContentLength
Generate
recycle

Netscape 6.1 (image could not be seen):
setup
shouldSetContentLength
Generate
recycle
setup
recycle



> -Original Message-
> From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 2:18 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: AW: Strange problem with the Reader
>
>
> Thanks for your answer.
> But now I found out something stranger:
> It works with JPEGs!
>
> But not with GIFs ...
>
> When trying to save the gif to disk after two seconds it saved correctly.
>
> I tried the cocoon webapp and I think there the cocoon.gif doesn't
disappear
> ...
>
> For me it's a HUGE bug and if nobody can help me I will write a bug report
> although I'm not sure if it's one ...
>
> JOERN_HEID
>
> -Ursprüngliche Nachricht-
> Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 14. August 2001 15:55
> An: [EMAIL PROTECTED]
> Betreff: RE: Strange problem with the Reader
>
>
> Assuming you do not see image correctly after refresh:
>
> I had similar problem, but it's gone now for some reason. What I do
> remember:
>
> Try and test this under Tomcat - problem should go away. Also, if you put
> resin behind HTTP cache,
> problem should disappear. I do not have explanation for this. May be,
Resin
> does not handle
> keep-alive correctly.
>
> PS Mine config is the same: (Win 2000, Resin 2.0.1, JDK 1.3.1)
>
> Vadim
>
> > -Original Message-
> > From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 14, 2001 2:11 AM
> > To: Cocoon-Users
> > Subject: Strange problem with the Reader
> >
> >
> > (Win 2000, Resin 2.0.1, JDK 1.3.1)
> >
> > I do the following:
> >
> > 1. Deleting WEB-INF/tmp and WEB-INF/logs
> > 2. Starting Resin
> > 3. Starting Mozilla
> > 4. Type the URL http://www.n3k-test.de/images/logo_bg.gif
> > 5. I see the right image
> > 6. If I hit Shift-Reload the image disappears and Mozilla says
>
> What does it say?
>
> > http://www.n3k-test.de/images/logo_bg.gif
> >
> > Other browsers (IE, Opera) seem to cache it so there the problem appears
> > after one hour.
> >
> > Does anybody have the same problem?
> >
> > The problem appears with b2 and I just checked the newest build.
> >
> > JOERN_HEID
> >
> >
> > -
> > 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]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.or

AW: Strange problem with the Reader

2001-08-14 Thread Jörn Heid

Addition:
I used the source of the ResourceReader and added some System.out in some
methods. Perhaps, this helps.

Loading in IE (image could be seen):
setup
shouldSetContentLength
Generate
recycle

Netscape 6.1 (image could not be seen):
setup
shouldSetContentLength
Generate
recycle
setup
recycle



> -Original Message-
> From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 2:18 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: AW: Strange problem with the Reader
>
>
> Thanks for your answer.
> But now I found out something stranger:
> It works with JPEGs!
>
> But not with GIFs ...
>
> When trying to save the gif to disk after two seconds it saved correctly.
>
> I tried the cocoon webapp and I think there the cocoon.gif doesn't
disappear
> ...
>
> For me it's a HUGE bug and if nobody can help me I will write a bug report
> although I'm not sure if it's one ...
>
> JOERN_HEID
>
> -Ursprüngliche Nachricht-
> Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 14. August 2001 15:55
> An: [EMAIL PROTECTED]
> Betreff: RE: Strange problem with the Reader
>
>
> Assuming you do not see image correctly after refresh:
>
> I had similar problem, but it's gone now for some reason. What I do
> remember:
>
> Try and test this under Tomcat - problem should go away. Also, if you put
> resin behind HTTP cache,
> problem should disappear. I do not have explanation for this. May be,
Resin
> does not handle
> keep-alive correctly.
>
> PS Mine config is the same: (Win 2000, Resin 2.0.1, JDK 1.3.1)
>
> Vadim
>
> > -Original Message-
> > From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 14, 2001 2:11 AM
> > To: Cocoon-Users
> > Subject: Strange problem with the Reader
> >
> >
> > (Win 2000, Resin 2.0.1, JDK 1.3.1)
> >
> > I do the following:
> >
> > 1. Deleting WEB-INF/tmp and WEB-INF/logs
> > 2. Starting Resin
> > 3. Starting Mozilla
> > 4. Type the URL http://www.n3k-test.de/images/logo_bg.gif
> > 5. I see the right image
> > 6. If I hit Shift-Reload the image disappears and Mozilla says
>
> What does it say?
>
> > http://www.n3k-test.de/images/logo_bg.gif
> >
> > Other browsers (IE, Opera) seem to cache it so there the problem appears
> > after one hour.
> >
> > Does anybody have the same problem?
> >
> > The problem appears with b2 and I just checked the newest build.
> >
> > JOERN_HEID
> >
> >
> > -
> > 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]>
>
>


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




AW: Strange problem with the Reader

2001-08-14 Thread Jörn Heid

Thanks for your answer.
But now I found out something stranger:
It works with JPEGs!

But not with GIFs ...

When trying to save the gif to disk after two seconds it saved correctly.

I tried the cocoon webapp and I think there the cocoon.gif doesn't disappear
...

For me it's a HUGE bug and if nobody can help me I will write a bug report
although I'm not sure if it's one ...

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 14. August 2001 15:55
An: [EMAIL PROTECTED]
Betreff: RE: Strange problem with the Reader


Assuming you do not see image correctly after refresh:

I had similar problem, but it's gone now for some reason. What I do
remember:

Try and test this under Tomcat - problem should go away. Also, if you put
resin behind HTTP cache,
problem should disappear. I do not have explanation for this. May be, Resin
does not handle
keep-alive correctly.

PS Mine config is the same: (Win 2000, Resin 2.0.1, JDK 1.3.1)

Vadim

> -Original Message-
> From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 2:11 AM
> To: Cocoon-Users
> Subject: Strange problem with the Reader
>
>
> (Win 2000, Resin 2.0.1, JDK 1.3.1)
>
> I do the following:
>
> 1. Deleting WEB-INF/tmp and WEB-INF/logs
> 2. Starting Resin
> 3. Starting Mozilla
> 4. Type the URL http://www.n3k-test.de/images/logo_bg.gif
> 5. I see the right image
> 6. If I hit Shift-Reload the image disappears and Mozilla says

What does it say?

> http://www.n3k-test.de/images/logo_bg.gif
>
> Other browsers (IE, Opera) seem to cache it so there the problem appears
> after one hour.
>
> Does anybody have the same problem?
>
> The problem appears with b2 and I just checked the newest build.
>
> JOERN_HEID
>
>
> -
> 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]>




Strange problem with the Reader

2001-08-13 Thread Jörn Heid

(Win 2000, Resin 2.0.1, JDK 1.3.1)

I do the following:

1. Deleting WEB-INF/tmp and WEB-INF/logs
2. Starting Resin
3. Starting Mozilla
4. Type the URL http://www.n3k-test.de/images/logo_bg.gif
5. I see the right image
6. If I hit Shift-Reload the image disappears and Mozilla says
http://www.n3k-test.de/images/logo_bg.gif

Other browsers (IE, Opera) seem to cache it so there the problem appears
after one hour.

Does anybody have the same problem?

The problem appears with b2 and I just checked the newest build.

JOERN_HEID


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




AW: does cocoon2 support (xml-)schema yet?

2001-08-06 Thread Jörn Heid

Validation costs time and I think it's not a task of a publishing framework.

The author of the xml files should make sure they are valid. Some editors
like XMLSpy do not let you save incorrect files.

-Ursprüngliche Nachricht-
Von: Richard Heintze [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 6. August 2001 16:31
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: does cocoon2 support (xml-)schema yet?


I've been trying to make it work with schema and it
does not flag an error when I have a violation of the
schema in my XML file. I'm using Cocoon 1.8.2
--- Alexander Thomas <[EMAIL PROTECTED]>
wrote:
> Hi there!
>
> If somebody knows, I would be pleased to get a brief
> answer!
>
> Regards,
>
> Alex
>
>
-
> 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]>
>


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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]>




AW: does cocoon2 support (xml-)schema yet?

2001-08-06 Thread Jörn Heid

If you mean that Cocoon will verify each document when serving it, I think
the answer is no.
If you want to know if Cocoon can work with xml files with schema
declaration, the answer is yes.

I think you have to be more specific.

-Ursprüngliche Nachricht-
Von: Alexander Thomas [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 7. August 2001 00:39
An: [EMAIL PROTECTED]
Betreff: does cocoon2 support (xml-)schema yet?


Hi there!

If somebody knows, I would be pleased to get a brief answer!

Regards,

Alex

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




AW: XML Spy becomes a tool we all were looking for

2001-07-25 Thread Jörn Heid

I do have a valid license and I use XMLSpy for generating schema and as an
excellent editor. I think it's thee best editor around.

The problem with XMLSpy is that it is only running on windows.

So I do not know if it's the tool all of us are looking for ;)

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 25. Juli 2001 13:44
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: XML Spy becomes a tool we all were looking for


XML Spy becomes a tool  we all were looking for:


Look what I have received from them:

Dear XML Spy Enthusiast,

We are sending you this message, because you have recently registered for
the 30-day evaluation version of our XML Spy 3.5 product, which
automatically includes a free subscription to the XML Spy Mailing List, or
because you are a registered XML Spy customer, or because you explicitly
requested a subscription through our web site. If you do not wish to receive
future messages from us, you can easily unsubscribe from this mailing list
at any time - detailed instructions are included at the end of this message.

We are pleased to announce the second stage of the beta testing phase for
the upcoming XML Spy 4.0 product line and would like to invite everybody to
participate in this event. XML Spy 4.0b2 is a Public Beta and accessible to
anyone interested in XML development and document editing on the Windows
platform.

The XML Spy 4.0 Integrated Development Environment (IDE) builds on the
success of the award-winning XML Spy 3.5 product in the developer market and
adds expanded ODBC database access functionality, enhanced user interface
customization, a new plug-in architecture for 3rd party developers, as well
as support for the final XML Schema Recommendation for both graphical XML
Schema editing and validation of XML instance documents based upon XML
Schema.

In addition, the new 4.0 product line now includes the XML Spy 4.0 Document
Framework - a revolutionary solution for all document or content editing
applications that is based on a combination of XML Schema and XSLT
Stylesheets. This provides the customer with a highly user-friendly
interface - very much like a typical word processor - that allows for true
XML content editing and creation. The framework consists of two
applications:

The XML Spy 4.0 Document Editor supports free-flow WYSIWYG text editing,
form-based data input, graphical elements, presentation and editing of
arbitrary repeating XML elements as tables, real-time validation, and
consistency checking using XML Schema and is typically deployed on the
end-users desk. The XML Spy Document Editor is available in three
variations:

   + as a stand-alone application, to be deployed on the PC of any
non-technical user
   + integrated as a separate view within the XML Spy IDE user-interface (if
you purchase the XML Spy Suite product)
   + NEW: as a Browser Plug-In for Internet Explorer, which dramatically
eases deployment in the enterprise

The XML Spy 4.0 XSLT Designer is a graphical Stylesheet creation tool that
enables the customization of the document editor by defining an XSLT
Stylesheet and additional editing-specific options based upon the underlying
DTD or XML Schema for use during the content creation or editing process.

For the current 4.0 Beta 2 release, all components of the 4.0 product line
are available for public testing! Specifically, the 4.0b2 version of the IDE
includes the following new features:

   + support for the final XML Schema Recommendation released by the W3C on
May 2nd, 2001
   + the ability to automatically convert schemas from the April 7 WD or Oct
24 CR to the final Rec version
   + the ability to convert existing DTDs, XML-Data, or BizTalk schemas to
the W3C XML Schema Definition Language
   + automatic generation of an XML Schema from any ADO or ODBC accessible
SQL database (including datatypes & relations)

   + expanded database connectivity (ADO or ODBC) for import/export
functions
   + hierarchical database to XML import based on ADO SHAPE
   + new user-interface look & feel (Office XP compatible)
   + advanced user-interface customization (menus, keyboard-shortcuts, etc.)
   + new Plug-In architecture that lets 3rd party developers extend the XML
Spy IDE

The XML Spy 4.0 Document Editor is currently available both integrated into
the XML Spy IDE as an additional view (i.e. what you get, when you purchase
the XML Spy Suite product) and as a Browser Plug-In for Internet Explorer.
To get a live demonstration of the new Browser Plug-In, please visit:

http://plugin.xmlspy.com (this requires Internet Explorer 5.5 or
6.0)

This Document Editor Browser Plug-In is a unique solution that allows live
XML content editing from any desktop in your enterprise, which dramatically
eases deployment and reduces total cost of ownership (TCO). This is indeed
the first browser-based XML editing solution in the entire industry, and it
is based upon open standards, such as XML

[C2b2] Workaround for XInclude-Bug

2001-07-25 Thread Jörn Heid

For those who do have problems with the XInclude-Transformer, here's a
workaround (not a patch!):

1. Copy src/org/apache/transformation/XIncludeTransformer.java to a
directory of your choice for compiling it.

2. Replace the setup method with this one:

   public void setup(SourceResolver resolver, Map objectModel,
  String source, Parameters parameters)
throws ProcessingException, SAXException, IOException {
if (manager != null && current_xmlbase_uri == null) {
   try {
   source = parameters.getParameter("src", "");
   source = source.substring (0, source.lastIndexOf ('/'));
   this.urlFactory =
(URLFactory)this.manager.lookup(URLFactory.ROLE);
   base_xmlbase_uri = urlFactory.getURL(source);
   this.current_xmlbase_uri = base_xmlbase_uri;
   } catch (Exception e) {
   getLogger().debug("XincludeTransformer", e);
   throw new ProcessingException(e.getMessage(), e);
   }
  }
}

3. Add the following lines to the source-File (don't know if it's
nessesary):
/**
 * Recycle the component
 */
public void recycle() {
super.recycle();
this.current_xmlbase_uri = null;
this.base_xmlbase_uri = null;
this.xmlbase_element_name_stack.clear();
this.xmlbase_element_uri_stack.clear();
this.last_xmlbase_element_name = "";
}

4. Change the packagename and compile it.

5. In the sitemap change the definition of the XIncludeTransformer regarding
your package:


6. The last thing is that each time you are using the transformer you must
set the src-Parameter:












For the developers: The problem is that the setDocumentLocator method is not
called enough times. If there are two instances of the transformer the
method is only called on one transformer.
When stopping the engine (Resin), then the method isn't called one time! -
but the setup-method. So I used it for this workaround.

JOERN_HEID


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




AW: XML inside XML, and XSLT inside XSLT

2001-07-04 Thread Jörn Heid

For xml it's XInclude...

-Ursprüngliche Nachricht-
Von: Adrian Geissel [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 4. Juli 2001 09:55
An: [EMAIL PROTECTED]
Betreff: Re: XML inside XML, and XSLT inside XSLT


For XSLT, use 

Adrian

- Original Message -
From: Carloz Alaniz <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 9:01 PM
Subject: XML inside XML, and XSLT inside XSLT


>
> Can someone help me or tell me there is such a thing as including an XML
> file inside another XML file, or including an XSLT file inside another
> XSLT file?
>
> Does such a thing exist??
>
> ~carloz






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




AW: sitemap error

2001-06-27 Thread Jörn Heid



Look 
in WEB-INF/logs/cocoon.log
In 
most cases you can find the exactly exception there.
If you 
stop your engine, delete the log, start the engine again, you can find a clean 
log.
 
JOERN_HEID

  -Ursprüngliche Nachricht-Von: Marco Spinetti 
  [mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 27. Juni 2001 
  12:13An: [EMAIL PROTECTED]Betreff: sitemap 
  error
  Hi all,
  when I try to access cocoon2 homepage I receive 
  this error from cocoon:
   
  type internal-server-error
  message The sitemap handler's sitemap is not available.
  description org.apache.cocoon.ProcessingException: The sitemap 
  handler's sitemap is not available.
  sender org.apache.cocoon.servlet.CocoonServlet
  source Cocoon servlet
  request-uri/cocoon/
  
  exceptionorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.
  
  path-info
  
  stacktraceorg.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.
	at org.apache.avalon.framework.CascadingException.(CascadingException.java:40)
	at org.apache.cocoon.ProcessingException.(ProcessingException.java:36)
	at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:498)

  
  
  
  
   
  What can I do ? 
  Thanks
  Marco
   


AW: [C2] xinclude : file not found

2001-06-27 Thread Jörn Heid

I think it's the bug I noticed before. I think you have to patch the
XInclude-Transformer.

Please look in the archive for it as I don't have the mail anymore.

If you can't find I can send you my working XIncludeTransformer (.java or
.class) this evening.

-Ursprüngliche Nachricht-
Von: Orgalist [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 27. Juni 2001 11:22
An: [EMAIL PROTECTED]
Betreff: [C2] xinclude : file not found


here's my problem :
I'm trying to include a file plan.xml in index.xml using xinclude (they are
in the same directory) and I keep getting :
org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.io.FileNotFoundException:
C:\dweb\tomcat\webapps\cocoon\sens3d_cc\test\index.xmlplan.xml (Le fichier
spécifié est introuvable)
and I don't understand what I'm doing to get this path
here's part of my sitemap.xmap:
-
(I ve got the "map:transformer xinclude.." line )
 



  
  
  
  
  
   

  

   

  
  
   

  
 



-
and my file :

-




http://www.w3.org/1999/XML/xinclude";>



 


 
-


thank you

C de Corbier


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




[C2] Where's the bug?

2001-06-26 Thread Jörn Heid

I want to remove newlines (or spaces) from my output. It seems the HTML
serializer causes the problem (Xalan commandline, xml-serializer work
correctly)...


With this stylesheet






JOERN_HEID


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




AW: SV: ident and spaces (Netscape problem)

2001-06-26 Thread Jörn Heid

Is it the same problem as mine in '[C2] Bug in HTML-Serializer?'


-Ursprüngliche Nachricht-
Von: Sergio Carvalho [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 12:28
An: [EMAIL PROTECTED]
Betreff: Re: SV: ident and spaces (Netscape problem)



As a general rule, when removing the DOCTYPE removes a 'bug' on mozilla,
it's just that mozilla is behaving correctly as per the standard (the one
DOCTYPE refers to!), and reverts to quirk-mode when there's no DOCTYPE.

I had the same problem with image layout (which was introducing spurious
space). In my case, I solved it with a CSS stylesheet changing image layout
to block.

Can you give specifics as to what layout problem are you having?

Sérgio

On Mon, 25 Jun 2001 14:16:26 +0200
Pål Wester <[EMAIL PROTECTED]> wrote:

> I found out that if i remove the DOCTYPE definition
> on top of the produced page, I get rid of the problem.
>
> Is there any way to keep the formatting and get rid of
> the DOCTYPE at the first line? I've tried changing it to
> loose, but thats not good either.
>
> mvh: Pål Wester
> høgskoleingenør/programmerer
>
>
> never.no as, stortingsgt 30, 0161 Oslo
> direkte: 22 01 66 34, 906 900 62
> tlf: 22 01 66 34, fax: 22 01 66 21
> http://never.no - icq:103476059
>
>
>
>   -Opprinnelig melding-
>   Fra: Pål Wester [mailto:[EMAIL PROTECTED]]
>   Sendt: 25. juni 2001 12:57
>   Til: Cocoon
>   Emne: ident and spaces
>
>
>   HI there...
>
>   I'm having problems with the fact that cocoon pages
>   removes spaces, tabs and linefeed. It seems that
>   Netscape 6 parse the pages differently...
>
>   How can I preserve the spaces on the output??
>   mvh: Pål Wester
>   høgskoleingenør/programmerer
>
>
>   never.no as, stortingsgt 30, 0161 Oslo
>   direkte: 22 01 66 34, 906 900 62
>   tlf: 22 01 66 34, fax: 22 01 66 21
>   http://never.no - icq:103476059
>
>
>
>
>

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




AW: [C2] Bug in HTML-Serializer?

2001-06-26 Thread Jörn Heid


First, the resulting page is smaller so it's not nicely formatted but it's
faster.

Second, not all browser will ignore that newline. E.g. NN 4.x will add more
space between the tables than the 10 pixels...

Ain't here anybody who can say to me if it is a bug? In C1 I think it would
work...


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 11:08
An: [EMAIL PROTECTED]
Betreff: RE: [C2] Bug in HTML-Serializer?


Why is this a problem?
Do you want to make the html human-readable? If not, don't care about it too
much. Your browser will ignore the newline.

hth,

tomK

-Original Message-
From: Jörn Heid [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 26 juni 2001 9:13
To: [EMAIL PROTECTED]
Subject: AW: [C2] Bug in HTML-Serializer?


Nobody understands me ;( My fault, of course.
The problem is that there's a newline in the ouput (that's my problem):

> BUT I get this with the html serializer (see the newline)
>
> 
> mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 09:00
An: [EMAIL PROTECTED]
Betreff: Re: [C2] Bug in HTML-Serializer?


Hi

I don't think it's a bug, it's HTML.


To: Cocoon-Users <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 8:59 PM
Subject: [C2] Bug in HTML-Serializer?


> With this stylesheet
>
>  border="1"/>
> I get this with the xml serializer
>
>  src="/images/empty.gif"/>
> BUT I get this with the html serializer (see the newline)
>
> 
> 
>
> Is it a bug or a feature I don't want?
>
> Please help.
>
> In my stylesheet I do have
>
>
>
> BTW, how can I remove all those spaces between > and 
> JOERN_HEID
>
>
> -
> 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]>

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




AW: [C2] Bug in HTML-Serializer?

2001-06-25 Thread Jörn Heid

Nobody understands me ;( My fault, of course.
The problem is that there's a newline in the ouput (that's my problem):

> BUT I get this with the html serializer (see the newline)
>
> 
> mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 09:00
An: [EMAIL PROTECTED]
Betreff: Re: [C2] Bug in HTML-Serializer?


Hi

I don't think it's a bug, it's HTML.


To: Cocoon-Users <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 8:59 PM
Subject: [C2] Bug in HTML-Serializer?


> With this stylesheet
>
>  border="1"/>
> I get this with the xml serializer
>
>  src="/images/empty.gif"/>
> BUT I get this with the html serializer (see the newline)
>
> 
> 
>
> Is it a bug or a feature I don't want?
>
> Please help.
>
> In my stylesheet I do have
>
>
>
> BTW, how can I remove all those spaces between > and 
> JOERN_HEID
>
>
> -
> 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]>




[C2] Bug in HTML-Serializer?

2001-06-25 Thread Jörn Heid

With this stylesheet



   

BTW, how can I remove all those spaces between > and http://xml.apache.org/cocoon/faqs.html>

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




AW: AW: [C2]Problem with whitespaces/newline

2001-06-24 Thread Jörn Heid

Well, first I'm using C2. I think there's no cocoon.properties anymore.
Second, the line before that is , so it couldn't be something like
that...

;(


-Ursprüngliche Nachricht-
Von: Ruben [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 24. Juni 2001 20:21
An: [EMAIL PROTECTED]
Betreff: Re: AW: [C2]Problem with whitespaces/newline



 Hi Jörn,

 Oh, sorry, sunday it's not the best day for me to understand english...

 Maybe I'm saying something stupid again, but, there is a line in
cocoon.properties stating the maximum line width  in HTML (I think):

formatter.text/html/loose.line-width = 120

 Could it be that your  tag is at the end of the line? I'm afraid
I'm
wrong again, but I don't understand why the new line is inserted, it has no
sense...

/Rubén


Jörn Heid wrote:

> ;( Now, I have two newlines between the two tags.
> If you misunderstood me: I want to remove all newlines between the two
tags
> as there's none defined in my stylesheet..
>
> But thanks for your help.
>
> JOERN_HEID
>


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




AW: [C2]Problem with whitespaces/newline

2001-06-24 Thread Jörn Heid

;( Now, I have two newlines between the two tags.
If you misunderstood me: I want to remove all newlines between the two tags
as there's none defined in my stylesheet..

But thanks for your help.

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Ruben [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 24. Juni 2001 19:49
An: [EMAIL PROTECTED]
Betreff: Re: [C2]Problem with whitespaces/newline


Have you tried using 
 between  and ?

Jörn Heid wrote:

> I have the following line in an xslt-stylesheet
>
>  border="1"/>
> This one is outputted in html as
> 
> 
> How is it possible that there's a newline before  I used
>
>
> without success.
>
> Is it a problem of the serialzier?
>
> Please help.
>
> -
> 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]>




[C2]Problem with whitespaces/newline

2001-06-24 Thread Jörn Heid

I have the following line in an xslt-stylesheet



   
without success.

Is it a problem of the serialzier?

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




AW: C2: Resin 2.0.0 oddities.

2001-06-20 Thread Jörn Heid

There is a class missing. You will find that class in the srun-box or in the
error.log, I don't know.
If you know what the name of the class is look for it in the removed jars
(e.g. rename them to .zip). Remove all other class from taht jar and put the
jar in the lib dir.

That should work.

-Ursprüngliche Nachricht-
Von: thomas@jet [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 20. Juni 2001 20:35
An: [EMAIL PROTECTED]
Betreff: C2: Resin 2.0.0 oddities.


Hi list,

I have Resin 2.0.0 running on my NT Box and was about trying
getting Cocoon 2.0b1 to co-operate but there is something fishy going on.
I can't get xtp execution and cocoon to co-exist.

Followed the installation steps as described:
1. removed 'dom.jar', 'jaxp.jar' and 'sax.jar'. from resin/lib
2. Moved 'xerces_1_4_0.jar' to resin/lib
3. copied cocoon.war to resin/webapps
4. added servlet mapping to resin.conf.



now i get to the the cocoon examples as '/cocoon' going and they appears
working allright,
but now I get HTTP 500 Servlet Exception when trying to request the Resin
examples instead.
(.xtp files)

if I reverse step 1 and 2 and re-start srun the Resin examples work again,
but ofcourse cocoon gets broken.

I am no java-guru, but I suspect there is a missing class issue.
I have attached the HTTP 500 page I get from Resin when requesting
'/index.xtp'
when having cocoon onboard. Can anyone shed some light on this / have any
hints
on getting xtp and cocoon to co-exist...

Setup:
NT4 / Apache 1.3.20
jdk 1.3.1
Resin 2.0.0 / Cocoon 2.0b1


thanks
thomas.



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




Bugs in XIncludeTransformer

2001-06-16 Thread Jörn Heid

First Bug:

 public void setDocumentLocator(Locator locator) {
try {
base_xmlbase_uri = urlFactory.getURL(locator.getSystemId());
if (current_xmlbase_uri == null) {
current_xmlbase_uri = base_xmlbase_uri;
}
} catch (MalformedURLException e)
{getLogger().debug("XincludeTransformer", e);}
super.setDocumentLocator(locator);
  }

has to be changed to


 public void setDocumentLocator(Locator locator) {
try {
base_xmlbase_uri = urlFactory.getURL(locator.getSystemId());
//if (current_xmlbase_uri == null) {
current_xmlbase_uri = base_xmlbase_uri;
//}
} catch (MalformedURLException e)
{getLogger().debug("XincludeTransformer", e);}
super.setDocumentLocator(locator);

The caching only works if the xml files can use the same base.
E.g. /test1.xml and /test2.xml work fine with href="included.xml" but
 /a/test3.xml would use href="include.xml" instead of "../included.xml"
because of caching.


The second bug is more complicated.
The problem is that the current_xml_base is for example /test/test.xml. The
url with
url = urlFactory.getURL(current_xmlbase_uri,href);
will be /test/test.xml../included.xml instead of /test/../included.xml. I
think it's a bug in URLFactory, but I didn't fix it there. I implemented my
own Transformer and here's how I did it:

public void setDocumentLocator(Locator locator) {
try {
base_xmlbase_uri = urlFactory.getURL(locator.getSystemId());
if (current_xmlbase_uri == null) {
current_xmlbase_uri = base_xmlbase_uri;
}
} catch (MalformedURLException e)
{getLogger().debug("XincludeTransformer", e);}
super.setDocumentLocator(locator);
}

was changed to (the first bug is fixed here, too):

public void setDocumentLocator(Locator locator) {
try {
base_xmlbase_uri = urlFactory.getURL(locator.getSystemId());
//if (current_xmlbase_uri == null) {
   current_xmlbase_uri = base_xmlbase_uri;
//   }

// If url ends with .xxx then truncate to dir
if (current_xmlbase_uri.toExternalForm().lastIndexOf('.') >
current_xmlbase_uri.toExternalForm().lastIndexOf('/'))
   current_xmlbase_uri = new
URL(current_xmlbase_uri.toExternalForm().substring(0,
current_xmlbase_uri.toExternalForm().lastIndexOf('/')+1));
} catch (MalformedURLException e) {
getLogger().debug("XincludeTransformer", e);
}
super.setDocumentLocator(locator);
}

and

 protected void processXIncludeElement(String href, String parse) throws
SAXException,MalformedURLException,IOException {
getLogger().debug("Processing XInclude element: href="+href+",
parse="+parse);
URL url;
String suffix;
int index = href.indexOf('#');
if (index < 0) {
url = urlFactory.getURL(current_xmlbase_uri,href);
suffix = "";

was altered to

 protected void processXIncludeElement(String href, String parse) throws
SAXException,MalformedURLException,IOException {
getLogger().debug("Processing XInclude element: href="+href+",
parse="+parse);
URL url;
String suffix;
int index = href.indexOf('#');
if (index < 0) {
url = urlFactory.getURL(current_xmlbase_uri,"/"+href);
suffix = "";



The caching is problematic. As the XInclude-Transformer does not have a
src-attribute it could not determine if a change has been made. I don't know
much about the caching in C2. If the caching is disabled if ONE component
says so, the XInclude-Transformer could always say ok to caching. If not,
the transformer should behave as the generator - if the generator has
changes the transformer should do so, too. But how can you implement that?

JOERN_HEID


-Ursprüngliche Nachricht-
Von: giacomo [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 16. Juni 2001 20:55
An: Cocoon-Users
Betreff: Re: XIncludeTransformer not cacheable?


On Sat, 16 Jun 2001, Jörn Heid wrote:

> Why is the XIncludeTransformer not cacheable?
> I do not know how to implement it as it just transforms a xml file from
the
> pipeline.

Nobody has added the necessary methods and interfaces to that component.
If you'd like to enhance the XIncludeTransformer have a look at the
TraxTransformer.

>
> BTW I found two bugs in it. If there's a developer of Cocoon, please send
me
> your eMail. I will explain it.

Please explain the bugs you've found here on the list.

Giacomo


---

XIncludeTransformer not cacheable?

2001-06-16 Thread Jörn Heid

Why is the XIncludeTransformer not cacheable?
I do not know how to implement it as it just transforms a xml file from the
pipeline.

BTW I found two bugs in it. If there's a developer of Cocoon, please send me
your eMail. I will explain it.

JOERN_HEID


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




Access to HttpEnvironment

2001-06-16 Thread Jörn Heid

I need to have access to the class HttpEnvironment. It's an attribute in
HttpRequest, but it's private.

The problem is that I need the path info of the generator xml file (bormal
xml or xsp file). Perhaps there is a better solution.

How can I get this?

JOERN_HEID


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




AW: [C2] Flash

2001-06-14 Thread Jörn Heid

As I do understand it, the solution of enhydra is to take a template and use
the internal xml parser of flash to change some attributes of the movie.
A much better way would be generating the whole movie from a xml file.
I found one resource on the web for that (beside on commerical one):
http://www.tivano.de/opensource/flash/
But the writer hasn't been released.


-Ursprüngliche Nachricht-
Von: Maurizio [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 14. Juni 2001 09:42
An: [EMAIL PROTECTED]
Betreff: [C2] Flash


Hi all. It'd be possible to manage flash with cocoon2? I've seen that
enhydra
is developing something in this direction (it seems require the plugin for
Flash 5). I mean: wonderful Cocoon2 produce jpeg and png, why not Flash?
It'd
be interesting, I think. I wonder if it is possible.

Many thanx, best regards to all.

Mau


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




AW: resin + cocoon

2001-06-13 Thread Jörn Heid

Here's how I did it:
1. Download and install Resin 2.0.0
2. Move Xerces-Jar to lib
3. Move dom.jar, sax.jar and jaxp.jar one dir up
4. Move cocoon.war to webapps
5. Start resin

Resin is now missing a class. I don't know which class it was but you can
find it in one of the moved jars. So look for it, make a copy of that jar
and remove all classes off that jar except that  special class. Move the new
jar to lib and it should work (for me (Win 2000) it works).

-Ursprüngliche Nachricht-
Von: Arnon Jaya [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 13. Juni 2001 18:33
An: [EMAIL PROTECTED]
Betreff: resin + cocoon


Hi

I'm a uni student, a beginner...

does anyone know where can I get online tutorial / guideline on integrating
resin and cocoon ?

thank you
Arnon


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




C2b1: successfully installed again

2001-06-13 Thread Jörn Heid

If anybody is interested:

Operating System:Win2000 SP2
Web Server:  Apache 1.3.19
Servlet Engine:Resin 2.0.0
JVM: JDK 1.3.1

There are some conflicting xml files which had to be removed. One JAR had to
be modified (removal of confilicting classes inside the jar; the other
classes remains in that jar).



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




[C2] Problem with xinclude

2001-06-12 Thread Jörn Heid

I do have a problem with XInclude as a transformer (see below).
Besides the problem does anybody know if I can use aggregation for that? I
want to generate one xml file from two xml files (none of the must be a
XSP)...



I used the following in the sitemap:

..






and the following xml file
http://www.w3.org/1999/XML/xinclude";>

...


I got the following error (in WEB-INF/logs):

ile:/d:/www/N3K/public/company/about_us.xml
ERROR   8962[cocoon  ] (tcpConnection-6802-0): FileGenerator.generate()
java.util.EmptyStackException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1048)
at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:72)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:220)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)

and in the browser

"resource-not-found"

Any idea?

JOERN_HEID


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




AW: Adding dynamically element

2001-06-11 Thread Jörn Heid

Sorry, that doesn't work as XSP couldn't be a transformer (in C1 it can).
I have written my own transformer and I think that's the only possibility.
As mentioned, my source is a normal xml file and could not be a xsp.

But thanks for your answer.

-Ursprüngliche Nachricht-
Von: Martin Man [mailto:[EMAIL PROTECTED]]Im Auftrag von Martin Man
Gesendet: Montag, 11. Juni 2001 11:37
An: Jorn Heid
Cc: [EMAIL PROTECTED]
Betreff: Re: Adding dynamically element


On Sun, Jun 10, 2001 at 04:53:37PM +0200, Jorn Heid wrote:
> Yes... As XSP is a generator, should I write my own transformer or
> aggregator... Give me an answer, please... ;(
>
> The question again:
> I want to produce a html from a xml (not XSP) page but depending on the
> session object there moght be an additional element. In C1 it worked with
> XML->XSP->XSLT->HTML. But how does it (best) work with C2?
> XML->Aggreation->XSLT->HTML or XML->MyTransformer->XSLT->HTML?
>
in c2 you do it best using XSP, handling session, and xincluding (look at
aggregate.xsp sample) static xml content



rgds,
martin

--

---
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

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




Problem with xinclude

2001-06-11 Thread Jörn Heid

I used the following in the sitemap:

..






and the following xml file
http://www.w3.org/1999/XML/xinclude";>

...


I got the following error (in WEB-INF/logs):

ile:/d:/www/N3K/public/company/about_us.xml
ERROR   8962[cocoon  ] (tcpConnection-6802-0): FileGenerator.generate()
java.util.EmptyStackException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1048)
at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:72)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:220)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)

and in the browser

"resource-not-found"

Any idea?

JOERN_HEID


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




XInclude-Transformer

2001-06-11 Thread Jörn Heid


Are there any intensions to extend the funcionality of the xinclude
transformer to support parameter processing like this:

  xml
  ../menu.xml

It isn't possible now, is it?


JOERN_HEID


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




  1   2   >