RE: Write binary data (file content) to the output stream

2007-06-27 Thread Christian Schlichtherle
Hi, I wonder if you really need a pipeline for your example, a simple Servlet may actually be the best option. If your binary file would be the result of a transformation however, I would recommend to write a Serializer component. Kind regards, Christian _ From: [EMAIL PROTECTED] [

RE: About Client side Javascript in Cform

2007-06-19 Thread Christian Schlichtherle
Hi, > Christian, I don't understand your proposal. What brings us > using identity transformation? it removes all whitespace as a side effect. Since you can easily add it to any XSLT stylesheet, it works well. Kind regards, Christian ---

RE: About Client side Javascript in Cform

2007-06-18 Thread Christian Schlichtherle
Hi, > I have been thinking about similar functionality you > describe. For a sign that it makes sense I suggest to take a > look at Dojo's ShrinkSafe > tool: http://dojotoolkit.org/docs/shrinksafe it may be one of the best kept public secrets of XSLT, but a simple identity transformation will d

RE: Stackoverflow when using regexp matcher (Cocoon 2.1.10)

2007-06-08 Thread Christian Schlichtherle
Hi, > The EncodeURLTransformer was modified to use java.util.regexp > instead of Apache regexp. Tests showed it is significantly > faster and I was experiencing extremely deep stacks on calls > to matchNodes (although I never actually got a > StackOverflow). Although you have bypassed the pro

Resolved: Stackoverflow when using regexp matcher (Cocoon 2.1.10)

2007-06-07 Thread Christian Schlichtherle
Hi, > unfortunately both stacktraces don't help to track down the > error. The first one is without any Cocoon part. The second > one can only happen if a RequestWrapper wraps a > RequestWrapper wraps a ... and never an actual Request > object. Posting more complete stacktraces might help - th

Stackoverflow when using regexp matcher (Cocoon 2.1.10)

2007-06-07 Thread Christian Schlichtherle
this a bug or am I doing something wrong? Kind regards, Christian Schlichtherle -- Schlichtherle IT Services Wittelsbacherstr. 10a 10707 Berlin Tel: +49 (0) 30 / 34 35 29 29 Mobil: +49 (0) 173 / 27 12 470 mailto:[EMAIL PROTECTED] http://www.schlichtherle.de <http://www.schlichtherle

RE: re-design of sitemaps

2007-06-07 Thread Christian Schlichtherle
Hi, many folks seem confused about XML Schema. If so, they may be confused about DTD or Relax NG as well. All of these are just definitions of a grammar, not semantics. So if a sitemap has been validated with a schema, this means no more than that the sitemap is well-formed XML which complies to t

RE: Setting request headers when accessing HTTP URLs from sitemap

2007-06-05 Thread Christian Schlichtherle
Hi, > > Since all the building bricks already exist in Cocoon, I wonder if > > this has been done already. There must be an even simpler solution, > > but I could not figure it. Any hints would be welcome. > > I'm not aware of a usage of that source (factory) in Cocoon. > But there is a proxy

Setting request headers when accessing HTTP URLs from sitemap

2007-06-05 Thread Christian Schlichtherle
file cocoon.xconf. Done. Since all the building bricks already exist in Cocoon, I wonder if this has been done already. There must be an even simpler solution, but I could not figure it. Any hints would be welcome. Kind regards, Christian Schlichtherle -- Schlichtherle IT Services Wittelsbach

RE: Cocoon 2.1.10: Wrong encoding when using html or nekohtml generator

2007-06-05 Thread Christian Schlichtherle
Hi, just for the record: I've tried to edit /WEB-INF/tidy.properties and /WEB-INF/neko.properties, but with no success. I must have been fooled by the caching algorithm. In fact, it does work by setting http\://cyberneko.org/html/properties/default-encoding=UTF-8 in neko.properties. Ki

RE: Discussion: Postponing XSL processing to browsers

2007-06-04 Thread Christian Schlichtherle
Hi Philippe, so far my results have been really great. I've written a complex style sheet by now which does all the grouping/sorting using strict XSL 1.0 (no Ajax yet). When the server detects an XSL-capable browser, it responds in about a 1/4 - 1/3 of the time, simply because it can serve the dat

RE: Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, I do know XSL/T, but that doesn't help with the Schema of any input to the XSL processor. Kind regards, Christian smime.p7s Description: S/MIME cryptographic signature

RE: Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, > This is because they describe different aspects of a form. I appreciate this well (otherwise I wouldn't use Cocoon), but just wanted to make clear that XML by itself is little more than a string tokenizer. Without a DTD, Schema, or RELAX NG and the implied semantics an XML file says nothin

RE: Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
Hi, > And there are only really two technologies here: XML/XSLT > and Javascript. But if you > > don't know either of these, then I agree that Cocoon can be > difficult to assimilate... Wait a minute - a form definition uses a different XML schema than the view template and the sitemap and t

RE: Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
track of > what the current view state is. > > I'm afraid I don't quite grasp teh question about reparsing. > Are you suggesting using JSF with Cocoon as the view handler? > (The JSF block demonstrates that that can be done). > > Ralph > > Christian Sc

Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
ant to transform the generated XML. Am I correct? With best regards, Christian Schlichtherle -- Schlichtherle IT Services Wittelsbacherstr. 10a 10707 Berlin Tel: +49 (0) 30 / 34 35 29 29 Mobil: +49 (0) 173 / 27 12 470 mailto:[EMAIL PROTECTED] http://www.schlichtherle.de <http://www.schlichtherle.de/>

Cocoon 2.1.10: Wrong encoding when using html or nekohtml generator

2007-06-04 Thread Christian Schlichtherle
ed - I must fix this encoding. Kind regards, Christian Schlichtherle -- Schlichtherle IT Services Wittelsbacherstr. 10a 10707 Berlin Tel: +49 (0) 30 / 34 35 29 29 Mobil: +49 (0) 173 / 27 12 470 mailto:[EMAIL PROTECTED] http://www.schlichtherle.de <http://www.schlichtherle.de/>

Cocoon Forms vs. JSF

2007-06-04 Thread Christian Schlichtherle
ant to transform the generated XML. Am I correct? With best regards, Christian Schlichtherle -- Schlichtherle IT Services Wittelsbacherstr. 10a 10707 Berlin Tel: +49 (0) 30 / 34 35 29 29 Mobil: +49 (0) 173 / 27 12 470 mailto:[EMAIL PROTECTED] http://www.schlichtherle.de <http://www.schlichthe

Cocoon 2.1.10: Wrong encoding when using html or nekohtml generator

2007-06-04 Thread Christian Schlichtherle
ed - I must fix this encoding. Kind regards, Christian Schlichtherle -- Schlichtherle IT Services Wittelsbacherstr. 10a 10707 Berlin Tel: +49 (0) 30 / 34 35 29 29 Mobil: +49 (0) 173 / 27 12 470 mailto:[EMAIL PROTECTED] http://www.schlichtherle.de <http://www.schlichtherle.de/> smi

RE: How to suppress xmlns:jx attribute in output of JXTemplate generator?

2007-06-02 Thread Christian Schlichtherle
Hi, based on your script, this is what I derived: http://www.w3.org/1999/XSL/Transform";> The difference to the script provided by you is that this one only removes namespaces if they are not used by an element. So

RE: Cocoon Productivity

2007-06-01 Thread Christian Schlichtherle
Hi, > Since most people curently are working with an IDE (Eclipse > ...), in a basic tutorial we need also a chapter regarding > the setup of a Servlet Container for debugging, testing and > deployment of our cocoon apps within this environment. If the > tutorial describes how to do it with

RE: Discussion: Postponing XSL processing to browsers

2007-06-01 Thread Christian Schlichtherle
Hi, and yet again, it's also possible to embed CSS and AJAX in the resulting page. This gives XML + XSL + CSS + asynchronous JavaScript = Web 3.0? Kind regards, Christian smime.p7s Description: S/MIME cryptographic signature

RE: Discussion: Postponing XSL processing to browsers

2007-06-01 Thread Christian Schlichtherle
Hi, one more thing: Sending XML+XSL to the client for rendering also enables the user to save and postprocess the data. Say the content is tabular data resulting from a database query. Now the client could save it and easily import the data into any XML-enabled application, say Microsoft Excel.

Discussion: Postponing XSL processing to browsers

2007-06-01 Thread Christian Schlichtherle
ing such an approach in public web applications. I have never noticed a web app which uses this technology, but due to its transparency I just might have missed it. Kind regards, Christian Schlichtherle -- Schlichtherle IT Services Wittelsbacherstr. 10a 10707 Berlin Tel: +49 (0) 30 / 34 35 29 2

RE: How to suppress xmlns:jx attribute in output of JXTemplate generator?

2007-06-01 Thread Christian Schlichtherle
Hi Giuseppe, thank you for your information. Kind regards, Christian smime.p7s Description: S/MIME cryptographic signature

How to suppress xmlns:jx attribute in output of JXTemplate generator?

2007-05-31 Thread Christian Schlichtherle
ion="1.0" exclude-result-prefixes="jx"> start This should not be necessary since all s have been processed and removed from the output. Any clues how I can remove them easily (without writing another XSL stylesheet hopefully)? Kind regards, Christian Schlichther

RE: Cannot access sitemap parameters using Velocity and JXTemplate

2007-05-30 Thread Christian Schlichtherle
What the !"ยง$%&/()=? Everything works as expected if I use the "newjx" generator instead of the "jx" generator. I suppose this is a bug. How to report it? Kind regards, Christian smime.p7s Description: S/MIME cryptographic signature

Cannot access sitemap parameters using Velocity and JXTemplate

2007-05-30 Thread Christian Schlichtherle
ild (all blocks) and configuration (cocoon.xconf, sitemap.xmap, etc). Kind regards, Christian Schlichtherle -- Schlichtherle IT Services Wittelsbacherstr. 10a 10707 Berlin Tel: +49 (0) 30 / 34 35 29 29 Mobil: +49 (0) 173 / 27 12 470 mailto:[EMAIL PROTECTED] http://www.schlichtherle.de <http

RE: Cocoon Productivity

2007-05-30 Thread Christian Schlichtherle
Hi, sounds exciting. please allow to me ask the following as a seasoned NetBeans user and Cocoon newby: What will I lose if I want to use Cocoon 2.2 in NetBeans 5.5.1? Will I still be able to follow the instructions or do I need to figure everything myself? Kind regards, Christian Schlichtherle