RE: Password Encryption

2002-09-20 Thread Stefan Seifert
A bit off-topic, but: A good method is using a SHA-Hash of the password like this: public static String encryptPassword(String pstrPassword) { MessageDigest sha = MessageDigest.getInstance(SHA); sha.update(pstrPassword.getBytes()); byte abytHash[] = sha.digest();

RE: german umlaut!

2002-09-09 Thread Stefan Seifert
Just use a proper encoding for the XML file (i.e. UTF-8) and a UTF-8-able editor (under Windows i.e. XML Spy or JBuilder). Then you can just type the umlauts as any other chars in your document without problems. The HTML Serializer by default will encode them when doing HTML output to iso

RE: cocoon 2.0.3, xalan 2.3.1, output encoding

2002-08-22 Thread Stefan Seifert
You can specify a encoding parameter in the HTML Serializer definition in the sitemap like this: map:serializer name=html mime-type=text/html logger=sitemap.serializer.html src=org.apache.cocoon.serialization.HTMLSerializer pool-max=128 pool-min=16 pool-grow=16 encodingUTF-8/encoding

RE: ampersand

2002-08-21 Thread Stefan Seifert
Did you try using a amp; instead of ? i.e. foo?param1=foo1amp;param2=foo2. Stefan -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 5:33 PM To: [EMAIL PROTECTED] Subject: ampersand I need a link with 2 parameters in the url :

RE: ampersand

2002-08-21 Thread Stefan Seifert
: Re: ampersand nope - Original Message - From: Stefan Seifert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 5:43 PM Subject: RE: ampersand Did you try using a amp; instead of ? i.e. foo?param1=foo1amp;param2=foo2. Stefan -Original

RE: Merging Dynamic Content and Static HTML in Same Page

2002-08-20 Thread Stefan Seifert
There is another possibility, though a bit out of the scope of cocoon: Use Cocoon to genrate HTML content that includes a Server Side Include-Statement (!--#include...--), put a Apache Webserver 2.x in front of cocoon (i.e. using mod_jk). With proper configuration in httpd.conf of the Apache

RE: Strange error using JPEG/SVGSerializier under heavy load - ClassCastException

2002-08-20 Thread Stefan Seifert
of this problem. Stefan -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Strange error using JPEG/SVGSerializier under heavy load - ClassCastException Stefan Seifert wrote: Hello Vadim

Strange error using JPEG/SVGSerializier under heavy load - ClassCastException

2002-08-14 Thread Stefan Seifert
Configuration: Cocoon 2.0.3, Tomcat 3.2.3. We use the SVGSerializer with JPEG-Output to generate graphical menus (we could not get the customer to use only plain text menus). All works fine after a starting up tomcat. But after a few days (variing) without even touching the server the SVG

AW: JDBC for SQL Server 2000

2002-06-13 Thread Stefan Seifert
I can recommend the SPRINTA and OPTA drivers vom inet Software (http://www.inetsoftware.de/), but they are not free. But they are very stable and have very good performance, BLOB support etc. Stefan -Ursprüngliche Nachricht- Von: Parrott Geoff [mailto:[EMAIL PROTECTED]] Gesendet:

RE: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-12 Thread Stefan Seifert
Well, this is no problem, done it many times - it is well documented in the Tomcat documentation: see i.e. tomcat-iis-howto.html from the tomcat 3.x distribution. For futher questions or problems see tomcat mailing lists. Stefan -Original Message- From: [EMAIL PROTECTED]

RE: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-11 Thread Stefan Seifert
But you still have to do most of things on foot which is already built into Cocoon. The technology is there (well, most of it), but there is now framework nearly comparable to Cocoon in the MS/.NET-world (yet). Stefan -Original Message- From: Roger I Martin PhD [mailto:[EMAIL

RE: Load test with ab

2002-04-08 Thread Stefan Seifert
We are using MS SQL 2000 and Cocoon 2 very sucessful in two big projects. We bought a JDBC Driver (SPRINTA and OPTA) from inet-software (http://www.inetsoftware.de). They are not cheap, but worth the money. Stefan -Original Message- From: Horst Rutter [mailto:[EMAIL PROTECTED]] Sent:

RE: XSL question

2002-03-25 Thread Stefan Seifert
Try this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE root [ !ENTITY nbsp #160; ] root ... /root Stefan -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 4:51 PM To: [EMAIL PROTECTED]; Richard Korthuis Subject: Re: XSL question Ok,

AW: Extension functions

2002-03-20 Thread Stefan Seifert
What you are trying is XSLT 1.1 syntax, that is not supported by this xalan version as fare as i know. See http://xml.apache.org/xalan-j/extensions.html for the propietary xalan extension syntax. Stefan -Ursprüngliche Nachricht- Von: Malay Das [mailto:[EMAIL PROTECTED]] Gesendet:

AW: [FYI] Success Story - Cocoon-based Web-CMS with Vignette-Integration

2002-03-10 Thread Stefan Seifert
Hello Olivier. I wonder if you developped your own X(HT)ML authoring applet? I think this is the component that Cocoon is lacking for further evolutions in CMS applications. Q42.nl plans to open-source version2 of their product. XXE is a GREAT editor, but license is quite hard to manage

[FYI] Success Story - Cocoon-based Web-CMS with Vignette-Integration

2002-03-09 Thread Stefan Seifert
We developed in a big project roughly spanning the past 1,5 years a Java-based Web Content Management System using Cocoon 2 with Vignette-Integration. The result of the first development phase (the live website) you can see at http://www.gruene-fraktion.de (german). The System was developed by

AW: How to define custom parameter for map:serialize?

2002-03-08 Thread Stefan Seifert
snip/ This was discussed several times and the result is: serializers must be unaware of environment they running in and always produce same response independent of environment state. IIRC, this has to do with the caching. Implement custom transformer if you want, it can have parameters.

AW: How to define custom parameter for map:serialize?

2002-03-08 Thread Stefan Seifert
- Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 8. März 2002 16:17 An: [EMAIL PROTECTED] Betreff: RE: How to define custom parameter for map:serialize? From: Stefan Seifert [mailto:[EMAIL PROTECTED]] snip/ This was discussed several times and the result

How to define custom parameter for map:serialize?

2002-03-07 Thread Stefan Seifert
We have written a custom serializer and want to specify a custom parameter in the sitemap pipeline, not in serializer definition. This works map:serializers map:serializer name=serializerxyz mime-type=... logger=... src=... parameter name=param1 value=xyz/ /map:serializer

Re: CPU throttling under cocoon

2002-02-15 Thread Stefan Seifert
In most cases this results from running tomcat 3.x and Netscape 4.x at the same time under NT/W2K. Solution: Open Task Manager and set the Process Priority for netscape.exe to low. Unfortunately you have to do this each time you start Netscape 4.x. Stefan -Ursprüngliche Nachricht-

AW: Multi - Page Tables Examples

2002-01-15 Thread Stefan Seifert
Yes, that is possible. We did it with cocoon and the recent FOP-Releases (although our tables usually do not span more than two pages). The Table header is automatically repeated on every page, works quite well. The reference we used is http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html

AW: Specifying XSL sheet for client side translation in XSP?

2002-01-03 Thread Stefan Seifert
I solved a similiar problem using a XSL stylesheet which only puts a xml:stylesheet processing instructing in the resulting XML-Stream before it is send to the browser. Use a stylesheet like this (i called it add_stylesheet_pi.xsl): xsl:stylesheet version=1.0

[C2] Getting rid of unused XML namespaces in XML Streams from XSP

2001-12-19 Thread Stefan Seifert
Using XSP Pages and ESQL logicsheet to generate XML Streams results in putting several namespaces used for internal XSP processing in the final stream, i.e.: xmlns:xsp=http://apache.org/xsp; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:esql=http://apache.org/cocoon/SQL/v2;

AW: Cocoon and .NET

2001-12-18 Thread Stefan Seifert
If you write a .NET Service that has an XML-Output via HTTP it should be easy to integrate this with coocoon (as data producer). But it think it is nearly impossible at this time to write a real cocoon generator or serializer with the benefits of SAX Event Processing and reduced server

AW: [C2] Newbie: Adding doctype to xhtml output?

2001-12-17 Thread Stefan Seifert
Try adding the elements doctype-public, doctype-system in your sitemap to the HTML-Serializer like the following: map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer doctype-public-//W3C//DTD HTML 4.01//EN/doctype-public

AW: Cocoon2 and j2sdkee1.2.1 ?

2001-09-26 Thread Stefan Seifert
Hallo Roman. Did anyone manage to make cocoon2 work with the j2sdkee1.2.1? 1. cocoon2 could not access the jar-files in the WEB-INF/lib dir so I extracted them all into the WEB-INF/classes dir Did you try to set the Parameter init-classloader to true in the cocoon servlet init parameters in

[C2] How to Configure MRUMemoryStore/Pipeline-Caching

2001-09-06 Thread Stefan Seifert
Has anyone further information concerning the MRUMemoryStore-Settings in cocoon.xconf? It is commentent in the File, but on several questions i found no answers: - Why are there three MRUMemoryStores? One store, one stream-cache, on event-cache? - What exactly is cached in store? - What

AW: esql, get-xml and xsp:logic

2001-08-20 Thread Stefan Seifert
Take a look at the generate Java class behind the XSP page - and you will see the problem. get-xml does not an xml string, but a xml dom element object (or sax events in cocoon 2). In your second case there was just the .toString()-Method of org.w3c.dom.Element called. I can see not much sense

AW: formatting from the DB coming out as text

2001-08-19 Thread Stefan Seifert
Use get-xml from the esql logicsheet in your xsp pages and the copy-of XSLT-Command in your XSLT-Stylesheet. See several postings on this issue in this mailing list. Note that the XML in the database has to be a well-formed xml document with root node etc. Stefan -Ursprüngliche

AW: JRE 1.3.1 problem

2001-08-17 Thread Stefan Seifert
We use the same configuration (but Tomcat 3.2.3, not Tomcat 3.2.2), it works fine (though we hat to set the cocoon-parameter init-classloader in web.xml to true). Stefan -Ursprüngliche Nachricht- Von: Luca Morandini [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 17. August 2001 14:30

AW: Why doesn't Cocoon2 recognize [position() lt; last()] ??

2001-08-13 Thread Stefan Seifert
Its not a cocoon, but a XSL-Problem. Try the following: xsl:template match=Member xsl:for-each select=* xsl:if test=position()1 xsl:value-of select=$delimiter/ /xsl:if xsl:value-of select=./ /xsl:for-each /xsl:template Stefan -Ursprüngliche Nachricht- Von:

AW: Why doesn't Cocoon2 recognize [position() lt; last()] ??

2001-08-13 Thread Stefan Seifert
MSXML4.0 but not Cocoon2. Just wondering so I could identify future instances that are similar. Thanks again. -Original Message- From: Stefan Seifert [mailto:[EMAIL PROTECTED]] Sent: August 13, 2001 8:19 AM To: [EMAIL PROTECTED] Subject: AW: Why doesn't Cocoon2 recognize [position

AW: Why doesn't Cocoon2 recognize [position() lt; last()] ??

2001-08-13 Thread Stefan Seifert
An: '[EMAIL PROTECTED]'; Stefan Seifert Betreff: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ?? Thanks for the reply. Actually, the XSL is valid and it should work according to the W3 Recommendations. The only conclusion left is that there is a bug in Cocoon2, which is what

AW: XML in database, how to pass to Cocoon?

2001-08-13 Thread Stefan Seifert
: Stefan Seifert [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 10:41 AM To: [EMAIL PROTECTED] Subject: AW: XML in database, how to pass to Cocoon? I have been using Cocoon 1 for a little while and have been happy with the results. Using the browser I can enter a URL

AW: Ancestor and Cocoon 2

2001-07-20 Thread Stefan Seifert
Of course. ancestor is not a function but a integral part of the XPath specification and fully supportet by the XSLT processor used by Cocoon 2. Use it like this: xsl:value-of select=ancestor::NameOfNode/ Look in the XPath specifications for further documentation. Stefan -Ursprüngliche

AW: the problem of nbsp

2001-07-18 Thread Stefan Seifert
Or, just put a Entity Reference Declaration in your XML document like: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE root [!ENTITY nbsp #160;] root ... /root or, you can directly use #160; instead of nbsp; in you XML source without any further declarations. Stefan -Ursprüngliche

AW: AW: the problem of nbsp

2001-07-18 Thread Stefan Seifert
-Ursprüngliche Nachricht- Von: Drasko Kokic [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. Juli 2001 11:30 An: [EMAIL PROTECTED] Betreff: Re: AW: the problem of nbsp Thanks for your suggestion :-) Unfortunately, is not exactly same as nbsp; Drasko --- Stefan Seifert

AW: [C2] Redirects

2001-07-11 Thread Stefan Seifert
Anders Lindh wrote: Migrating from C1 becomes so much more complicated when XSP redirects are not available... I agree. There's no way I can port my old Cocoon1 apps without redirects being available conditionally (i.e. depending on user input). Perhaps this is possible

[C2] Why different Pipelines

2001-07-11 Thread Stefan Seifert
Hello. I've one question concerning pipelines in C2: What is the difference in using one large pipeline to splitting it up in several smaller pipelines? I cannot see a differene from the documentation? Any performance/feature differences? Is it possible to use parts of one pipeline in another

AW: [C2] Possible Solution for PDF Bug with IE 5.x !??

2001-07-05 Thread Stefan Seifert
Hello Ulrich. Just one point: Most of the workarounds do not work with C2 (did you ever try them with C2)? The one you described with a content disposition unlike *.pdf works, but it is not acceptable for the user (who expectes to open the pdf in the browser window and could not do the

AW: hello.pdf not displaying anything

2001-07-05 Thread Stefan Seifert
Take a look at my posting from yesterday - [C2] Possible Solution for PDF Bug with IE 5.x !??. I explained it in detail. Ask me for further questions. In my tests a realized big problems because of the lack of content-length for FOP-generated PDF's. With content-length it worked quite well. This

AW: [C2] Possible Solution for PDF Bug with IE 5.x !??

2001-07-05 Thread Stefan Seifert
Solution 2: Generate PDF, save it in temmp PDF file, redirect User's browser to this file (since content length is known - no problems with IE), delete temp file 1 minute later. I thought of that too, but how do delete the file 1 minute (or whatever) later? Is there i simple solution in

C2/Tomcat 3.2.2: Include Cocoon-Content in JSP

2001-07-03 Thread Stefan Seifert
I want to include the result of a cocoon transformation as part of another JSP Page as follows: ... jsp content ... % String strIncludeURL = ../cocoon/meeting_agenda.htm?MeetingID=1; % jsp:include page=%=strIncludeURL% flush=true/ ... jsp content ... Unfortunately this does not work. If i

[c2] ESQL, get-xml and entities like nbsp;

2001-06-26 Thread Stefan Seifert
I use ESQL and get-xml to get XHTML-Fragments from the database. The Problem: The XHTML conatins sometimes entities like nbsp;, which are vaild for XTHML, but not for XML. In an XSL-Stylesheet i can use a statement like !DOCTYPE xsl:stylesheet [ !ENTITY % HTMLlat1 PUBLIC

AW: XSP/ESQL Examples

2001-06-22 Thread Stefan Seifert
Take a look at the attached Cocoon 2 XSP Page. It uses multiple nested queries with case switching, custom ordering etc. I'm not sure if its used as intended from the xsp developers, but it fits perfectly to my problem. -Ursprüngliche Nachricht- Von: Matt Sabourin [mailto:[EMAIL

C2 - Dynamically choose XSL-Template in XSP

2001-06-14 Thread Stefan Seifert
Hello. This is my problem: With Cocoon 1 I created a XSP-Page, which builds an XML-Stream using the ESQL TagLib from a Database. The Path for the XSL to use was also fetched from the database and applyed using the following statement: xsp:pi target=xml-stylesheet

Problems with cocoon-2.0b1 and tomcat-4.0-b5

2001-06-12 Thread Stefan Seifert
the simple hello world-Sample still takes a minute or so. Anyone else encountered this problem? I only installed cocoon 2 as described in the docs via building the WAR-File and copying it to the webapps directory. Stefan Seifert