AW: Getting session object inside a custom generator

2003-06-18 Thread Jörn Heid
Title: Nachricht public void generate () throws SAXException {Sessionsession = ObjectModelHelper.getRequest (objectModel).getSession(true); -Ursprüngliche Nachricht-Von: Brian Delahunty [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Juni 2003 12:18An: [EMAIL

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 -

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.

Problem with xmldb-pseudo-protocol

2002-05-01 Thread Jörn Heid
When I call this pipeline: map:match pattern=expose/neu.html map:generate src=xmldb:xindice://localhost:4080/db/ximmo/kruck/exposes/meta#./ map:serialize type=xml/ /map:match I get java.io.FileNotFoundException:

AW: Problem with xmldb-pseudo-protocol

2002-05-01 Thread Jörn Heid
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

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.

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-

AW: Confused about Logging

2002-04-09 Thread Jörn Heid
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

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

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

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

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

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

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:

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

2002-01-15 Thread Jörn Heid
]] 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

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

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

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

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

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:

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

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

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:

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.

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

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 a href=article.xsp?id=something In XSP you can read this parameter and generate your database query. -Ursprüngliche Nachricht- Von: Skladov, Victor

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

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

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

AW: Generate static HTML with Cocoon

2001-10-23 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

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

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

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

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

2001-10-18 Thread Jörn Heid
- 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

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

AW: AW: internal server error

2001-09-27 Thread Jörn Heid
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

AW: xlink namespace exception

2001-09-10 Thread Jörn Heid
It seems you have forgotten to declare the namespace like root-element xmlns:xlink=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

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: map:match pattern=**.xml map:act type=email map:generate src={1}.xml/ map:transform

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:

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?

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

AW: C2: can't match images in sitemap

2001-08-22 Thread Jörn Heid
What URL produces img src=images/my_image.jpg? 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

Finally mail: Strange problem with the Reader

2001-08-14 Thread Jörn Heid
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

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

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:

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

[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

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 xsl:import href=/ Adrian - Original Message -

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:

AW: [C2] Bug in HTML-Serializer?

2001-06-26 Thread Jörn Heid
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

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

[C2]Problem with whitespaces/newline

2001-06-24 Thread Jörn Heid
I have the following line in an xslt-stylesheet /tableimg src=/images/empty.gif width=1 height=10 border=1/table This one is outputted in html as /table img src=/images/empty.gif width=1 height=10 border=1/table How is it possible that there's a newline before img? I used

AW: [C2]Problem with whitespaces/newline

2001-06-24 Thread Jörn Heid
: Sonntag, 24. Juni 2001 19:49 An: [EMAIL PROTECTED] Betreff: Re: [C2]Problem with whitespaces/newline Have you tried using xsl:text#xA;/xsl:text between table and img? Jörn Heid wrote: I have the following line in an xslt-stylesheet /tableimg src=/images/empty.gif width=1 height=10 border=1/table

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.

Bugs in XIncludeTransformer

2001-06-16 Thread Jörn 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

[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: map:transformer name=xinclude

AW: Adding dynamically element

2001-06-11 Thread Jörn Heid
Thanks for answer. But there's a problem: 'Giacomo' wrote: An XSP page is a generator, point.. As I have to use a xml page I would have to write a XSP which reads (from FileReader) the xml... I think that's not the best way as the pipeline should do this for me. So I wrote a transformer which