RE: XML- PDF bad encoding

2011-12-04 Thread Nathaniel, Alfred
Does that apply to all non-ASCII characters, or only to those you mention (which are not part of Latin-1)? Did you check that the font description to give to FOP have glyphs for these specific codes? HTH, Alfred. -Original Message- From: FunkyDisco

RE: thought I had fixe it

2011-10-24 Thread Nathaniel, Alfred
Hi Paul, I don't think that it is a database issue. It is rather the question where the application places the large amounts of data and how it is cleaned up. I interprete your statements that it is placed in the session object assuming that the memory is freed at session timeout.

RE: scaling problem

2011-10-21 Thread Nathaniel, Alfred
Java GC tuning is something of a black art. The default settings are not suitable for a large servlet container, and they also depend on the Java version. I don't have experience with Java7 but with jdk1.6.0_24 (SPARC Solaris) we are using: -server -d64 -XX:CodeCacheMinimumFreeSpace=10M

RE: Want to join in this group..

2011-10-19 Thread Nathaniel, Alfred
JDK 1.6.0_25 introduced major code changes which apparently also contain a number of regressions. I'd recommend you to give the latest 1.6.0_29 a try. If the problem persists there as well, then use 1.6.0_24. HTH, Alfred. From: Jagadeesh Kumar Bhavanasi [mailto:jagadeeshbhavan...@yahoo.com]

RE: Adding my Java code to flowscript

2011-09-29 Thread Nathaniel, Alfred
Hi Des, Thanks for sharing this information. Would you mind entering it into http://issues.apache.org/jira/browse/COCOON to keep track of it? Cheers, Alfred. -Original Message- From: Des Magner [mailto:d...@icandriveatractor.com] Sent: Sonntag, 11. September 2011 13:16 To:

RE: Transformer parameters are intermittently not set.

2011-09-19 Thread Nathaniel, Alfred
Hi Alan, I don't have any explanation for your problem but a few hints to look at. I would think that the transformer parameters are passed all right but that the request-param input module resolves all parameters to the empty string. Either the parameter map gets modified or the whole request

RE: Enviroment missing in cron class?

2011-09-14 Thread Nathaniel, Alfred
Hi Gary, There are a number of missing links in your mail but I would guess that the NPE is caused because in MLDocGenerator you have something like try { ... source = resolver.resolveURI(src); } catch(Exception ex) { // ignore } } public void recycle() {

[C3] User survey on increase of minimum Java version to 1.6.0 for Cocoon3

2011-08-05 Thread Nathaniel, Alfred
Dear Cocooneers, On the dev list we have been discussing whether to increase the minimum Java version required for building and running Cocoon3 (C3) from currently 1.5.0 (Java5) to 1.6.0 (Java6). C3 is a green-field reimplementation of the Cocoon pipeline concept. Thanks to the efforts of

RE: database access in Cocoon 3?

2011-08-04 Thread Nathaniel, Alfred
Please open the issue under https://issues.apache.org/jira/browse/COCOON3 since the COCOON project in JIRA is for C2 related issues. Cheers, Alfred. -Original Message- From: Lars Huttar [mailto:language-maps_i...@sil.org] Sent: Freitag, 5. August 2011 00:31 To: users@cocoon.apache.org

RE: Cannot get JSPReader/JSPGenerator to work

2006-10-04 Thread Nathaniel Alfred
Cocoon provides XSP which is the same paradigm as JSP (content augmented with Java code) but integrates better with XML pipelines. HTH, Alfred. From: Paritosh Patel [mailto:[EMAIL PROTECTED] Sent: Dienstag, 3. Oktober 2006 21:27 To: users@cocoon.apache.org

RE: Passing parameter from sitemap to .xsp - everything failes - help ne

2006-09-12 Thread Nathaniel Alfred
That's XSP trap #1. xsp:logic inside xsp:page generates code in class scope rather than in method scope. xsp:page xsp:logic Date adate = new Date(); /xsp:logic page xsp:logic Date bdate = new Date(); /xsp:logic adatexsp:expradate/xsp:expr/adate

RE: Is there an Excel generator for Cocoon ?

2006-09-06 Thread Nathaniel Alfred
You can use an XSP to extract the data from the Excel file and send it as XML downstream to a stylesheet. But beware by using XSP you disqualify youself as Cocoon guru :-) Cheers, Alfred. -Original Message- From: Jeroen Reijn [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 6. September 2006

RE: Getting XML out of an esql call

2006-08-25 Thread Nathaniel Alfred
esql:get-xml column=foo/ should do it. HTH, Alfred. -Original Message- From: Kamal Bhatt [mailto:[EMAIL PROTECTED] Sent: Freitag, 25. August 2006 03:03 To: users@cocoon.apache.org Subject: Getting XML out of an esql call Hi I would like to store XML (XHTML to be more precise) in a

RE: Cocoon 2.1.9 and xsp taglibs problems

2006-08-17 Thread Nathaniel Alfred
You should convert the Java class to a Cocoon transformer. The you build a simple xsp-generator | transformer pipeline where the transformer replaces placeholder tags in the XSP with the generated object using the SAX API. If the logic is not too complicated, and since the markup details are

RE: Cocoon 2.1.9 and xsp taglibs problems

2006-08-16 Thread Nathaniel Alfred
You were looking at the Cocoon 1.x documentation which has little to do with Cocoon 2.1.9. The docs for Cocoon 2.1 XSP are at http://cocoon.apache.org/2.1/userdocs/xsp.html. HTH, Alfred. -Original Message- From: Ninh Quyen [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 16. August 2006 14:24

RE: Cocoon 2.1.9 and xsp taglibs problems

2006-08-16 Thread Nathaniel Alfred
IIUC xspCurrentNode stems from the DOM-based pipelines of Cocoon 1. Cocoon 2 uses SAX pipelines that the notion of a current node does not apply anymore. You are apparently trying to port a C1 XSP to C2. What is it supposed to do? Cheers, Alfred. -Original Message- From: Ninh Quyen

RE: How to avoid the encoded text #220 in pdf generation

2006-07-12 Thread Nathaniel Alfred
Sure, that all figures. You read from the database the character sequence '' '#' '2' '2' '0' ';'. The text serializer send these characters verbatim to the output. The XML serializer has to ensure that the output is wellformed XML and escapes the '' as amp;. To solve your immediate problem you

RE: How to avoid the encoded text #220 in pdf generation

2006-07-11 Thread Nathaniel Alfred
You have to tweak your XSP that it produces the equivalent of ?xml version=1.0 encoding=UTF-8? doc text#220;bung/text /doc Any effort to use XSLT for unwinding the double escaped amp;#220; == #220; == Ü is futile. You should look whether the text is already like this in the

RE: HTTP encoding: trouble with '/'

2006-04-27 Thread Nathaniel Alfred
I would guess that the difference between the laptop and the server is a proxy the request is going through to reach the server. Your are assuming that there is a double-decoding happening in order to decode %252F first into %2F and then /. There is only a slim chance that this is going to work

RE: Re: Scaling Cocoon to handle a heavy load

2006-03-02 Thread Nathaniel Alfred
Your apparently have the (understandable) misconception that Perm space is used for storing very long-living objects. That is not the case. Perm space is used only for Class objects and other JVM internal metadata. You need to increase the Perm space only if you really have a LOT of classes

RE: java variables as parameters of logicsheet templates calls

2005-12-19 Thread Nathaniel Alfred
I'm afraid that is not quite possible. esql:get-string/@column must be a manifest column name or number. The ESQL logicsheet assumes that you know what the data in your table means. However, there is one tag which allows to output the metadata of a query. esql:get-columns writes for each result

RE: Cocoon JSP to Cocoon XSP porting question

2005-12-15 Thread Nathaniel Alfred
The util logicsheet is the place to look for: xsp:page ... xmlns:util=http://apache.org/xsp/util/2.0; Cell util:include-expr expr=displayField.getDisplayType()/ /Cell There are also similar functions for including XML documents from files or URIs. XSP is not going away. It has only

RE: Re: xspAttr cannot be resolved in Cocoon 2.1.8

2005-11-23 Thread Nathaniel Alfred
Damn it, the ESQL logicsheet escaped my renaming exercise. Our pre-release testing really sucks... Fix for 2.1.9-dev and trunk committed. You can patch it relatively easy in a 2.1.8 source distribution. Edit

RE: Newbie Logicsheet question...

2005-11-23 Thread Nathaniel Alfred
Your should make the changes in the source tree and run the build again. Changes in the build tree will be wiped out with the next build run. HTH, Alfred. -Original Message- From: George F. Crewe [mailto:[EMAIL PROTECTED] Sent: Dienstag, 22. November 2005 20:44 To:

RE: Existing XSP not found by Cocoon (only on Linux)

2005-10-27 Thread Nathaniel Alfred
You should get rid of the /../ and /./ in file:/var/www/dynaprism/lib/exist/webapp/../../../webapp/./search/highlight.xsp. It seems to confuse the package name generation once deducing it from the verbatim path and from a canonical form. If you look into the generated highligh_xsp.java file

RE: A xsp simple question

2005-10-23 Thread Nathaniel Alfred
Logicsheets are not defined in the sitemap but either in cocoon.xconf or in the XSP itself. To start with, it is simpler to define it in the XSP. Put in greeting3.xsp xsp:logicsheet location="logicsheet.greetings.xsl"/ before xsp:page and remove the map:transform fromthe

RE: XSP Issue

2005-08-16 Thread Nathaniel Alfred
At work we use that regularly although with an old 2.1 version. With which version do you have this problem? Cheers, Alfred. -Original Message- From: Berin Loritsch [mailto:[EMAIL PROTECTED] Sent: Montag, 15. August 2005 17:47 To: users@cocoon.apache.org Subject: XSP Issue XSP is not

RE: esql logicsheet sometimes fails to transform elements

2005-08-08 Thread Nathaniel Alfred
I see three possible causes for this behaviour: 1) The esql logicsheet is not applied (Cocoon problem). 2) The esql logicsheet is applied but does not transform the input (XSLT problem). 3) The esql logicsheet is applied before sil.xsl. If you define sil.xsl as builtin-logicsheet in

RE: sitemap match and path

2005-07-21 Thread Nathaniel Alfred
The browserrequests the absoluteURL http://myserver/cocoon/xml/docA/gusto.css. So you have to match pattern="**/gusto.css". HTH, Alfred. -Original Message-From: Franco Andrao [mailto:[EMAIL PROTECTED]Sent: Donnerstag, 21. Juli 2005 13:09To:

RE: connection pool fail over

2005-06-29 Thread Nathaniel Alfred
You are probably better off to write your own meta connection pool manager as a layer between Cocoon and the actual connection pools. Network problems usually mean that you connection will get stuck waiting for a long timeout instead of returning an error immediately. In that case, you soon

RE: Dynamic use of filter transformer

2005-05-31 Thread Nathaniel Alfred
You can for example use http://cocoon.apache.org/2.1/userdocs/matchers/wildcarduri-matcher.html to extract the page number from the request URI: map:match pattern=page_*.html map:generate .../ ... map:transform type=filter map:parameter name=element-name value=row/

RE: Logicsheet transformation happening but XSP not running

2005-05-26 Thread Nathaniel Alfred
a simple 'oh yes that happens loads' type problem then! Perhaps its to do with my logicsheets and their construction? Although I thought you sere supposed to be able to use logicsheets within logicsheets!? -Original Message- From: Nathaniel Alfred [mailto:[EMAIL PROTECTED] Sent: 24 May 2005 21:59

RE: Logicsheet transformation happening but XSP not running

2005-05-23 Thread Nathaniel Alfred
Title: Message Could be a manifestation of http://issues.apache.org/bugzilla/show_bug.cgi?id=32934. Otherwise try torun yourJVM in "client" mode. (We had asimilar weirdo behaviour with an earlier JDK1.4version in "server" mode. Since then we are using "client" mode also in

RE: running xsp from cocoon

2005-05-17 Thread Nathaniel Alfred
You must run the XSP file (which should rather be called greeting.xsp) through the XSP generator: map:generate type=serverpages src=greeting.xsp/ HTH, Alfred. -Original Message- From: n. [mailto:[EMAIL PROTECTED] Sent: Dienstag, 17. Mai 2005 14:44 To: users@cocoon.apache.org

RE: saxon in production?

2005-05-14 Thread Nathaniel Alfred
Le 14 mai 05, à 00:11, Gregor J. Rothfuss a écrit : ...we use it in production and found it to be lots faster than xalan (no surprise there). saxon8 is much stricter about XSL syntax than xalan, so you may have to do some small modifications to your stylesheets to comply, but saxon has

RE: is cocoon the right solution for my need (suggested answer: YES, but why)

2005-05-10 Thread Nathaniel Alfred
-Original Message- From: Wojciech Biela [mailto:[EMAIL PROTECTED] Sent: Dienstag, 10. Mai 2005 13:57 To: users@cocoon.apache.org Subject: is cocoon the right solution for my need (suggested answer: YES, but why) So finally the

RE: storing result of esql:get-xml

2005-05-02 Thread Nathaniel Alfred
-Original Message- From: Leona Slepetis [mailto:[EMAIL PROTECTED] Sent: Montag, 2. Mai 2005 20:18 To: users@cocoon.apache.org Subject: storing result of esql:get-xml Try the following: I would like: (what is the type of myVar?) ... String myVar; esql:execute-query esql:query select

RE: mount - ish question

2005-04-27 Thread Nathaniel Alfred
-Original Message- From: Chris Maloney [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 27. April 2005 03:15 To: users@cocoon.apache.org Subject: map:mount - ish question I'm setting up a web site that consists of two main directories: Main - contains my sitemap and all my main XML

RE: xsp and lt; symbol problem

2005-04-27 Thread Nathaniel Alfred
-Original Message- From: beyanet.com [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 27. April 2005 10:29 To: users@cocoon.apache.org Subject: Re: xsp and lt; symbol problem thanks for that information. i tried several serializers but when i create output in the form xsp:logic

RE: xsp and lt; symbol problem

2005-04-27 Thread Nathaniel Alfred
-Original Message- From: Volker Bublitz [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 27. April 2005 11:57 To: users@cocoon.apache.org Subject: Re: xsp and lt; symbol problem i decided to attach my current .xsp file since i can't get it to work. thanks for all your help. String

RE: mount - ish question

2005-04-27 Thread Nathaniel Alfred
-Original Message- From: Chris Maloney [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 27. April 2005 17:36 To: users@cocoon.apache.org Subject: Re: mount - ish question Perhaps this should be in the documentation? How could I try to get this added? Input to the Cocoon Wiki will be

RE: xsp and lt; symbol problem

2005-04-26 Thread Nathaniel Alfred
An XSP generates a stream of SAX events. The conversion to a character stream is done by the serializer at the end of the pipeline. I suppose you are using the XML serializer. Have a look at the HTML serializer or, depending on your application, the text serializer. HTH, Alfred.

RE: Table with multiple rows in xsp:logic

2005-04-26 Thread Nathaniel Alfred
Don't try to fake tags. The beauty of XSP is that it guarantees wellformed output (if there are no exceptions thrown). Instead store the query result upfront in a List and then use a double nested loop: xsp:logic for( int outer = 0; outer lt; idList.length(); outer += 4 )

RE: too large XSP logicsheet? aka How to cut XML in to pieces and generate from each one independly (using Cocoon not text editor ;) )

2005-04-26 Thread Nathaniel Alfred
XSP is the wrong tool here. Have a look at the SQL transformer. That should allow you to make a pipeline: 1.) map:generate from XML input 2.) map:transform by stylesheet converting ENTRY to SQL transformer markup 3.) map:transform by SQL transformer 4.) map:serialize Do you really want ot use

RE: urgent fo:external-graphic and relative path

2005-02-16 Thread Nathaniel Alfred
In http://issues.apache.org/bugzilla/show_bug.cgi?id=15316 there is an unofficial patch implementing context-relative URLs. HTH, Alfred. -Original Message- From: Murray Cassie [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 16. Februar 2005 23:03 To: cocoon Subject: urgent fo:external-graphic

RE: Deployment Questions

2005-02-15 Thread Nathaniel Alfred
In the sitemap: map:generate type=xsp src=foo.xsp map:parameter name=ipaddr value=127.0.0.1/ /map:generate In the XSP: String ipaddr = parameters.getParameter(ipaddr); HTH, Alfred. -Original Message- From: Barodawala, Ali [mailto:[EMAIL PROTECTED] Sent: Montag, 14. Februar

XSLTC 2.6 rocks, only slightly out of tune

2005-01-04 Thread Nathaniel Alfred
Already in December we launched the all-Cocoon redesign of our SWX Swiss Exchange main website http://www.swx.com. Initially we had to fight some performance problems due to XSLT transformation with interpreted Xalan taking around one second per page (after profiling and optimizing the

RE: Aggregation - or is it? How do I combine multiple streams of SAX events?

2004-06-03 Thread Nathaniel Alfred
The xsp-util logicsheet offers an include tag to insert an external source of SAX events. Never tried it myself, but it should also work to call it with in a esql:row-results loop with dynamically generated src attributes. HTH, Alfred. Now I'd like to combine several of those individual XML

RE: question about debugging

2004-06-03 Thread Nathaniel Alfred
-Original Message- From: WHIRLYCOTT [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 3. Juni 2004 21:34 To: [EMAIL PROTECTED] Subject: question about debugging I'm new to Cocoon and I'm working on modifying an existing Cocoon application for a client. I'm finding that the process I'm

RE: Help needed with Content Aggregation ???

2004-05-11 Thread Nathaniel Alfred
Use a small stylesheet at the end of your current pipeline to transform the result set rows into cinclude:include tags, and then add the CIncludeTransformer as next pipeline step: Transform rowuri//row == include xmlns:http://apache.org/cocoon/include/1.0src=""/ map:match

RE: [POLL] which Cocoon version / JDK version / Servlet Container are you using ?

2004-03-02 Thread Nathaniel Alfred
COCOON : 2.1m3 JDK : 1.4.2_03 CONTAINER : Tomcat 4.1.26 PRO/CON 1.4 requirement for 2.2 : PRO This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If

RE: redirects

2003-12-09 Thread Nathaniel Alfred
I use this in actions: import org.apache.cocoon.environment.http:HttpResponse; ... HttpResponse httpResponse = (HttpResponse)ObjectModelHelper.getResponse(objectModel); String redirectURI = ...; httpResponse.sendRedirect(redirectURI); I should also work in a generator but the pipeline will

RE: FW: Escaping in XSP Logic

2003-12-05 Thread Nathaniel Alfred
For Java code inside XSPs you have to use Unicode escapes: ç = \u00E7 See http://www.unicode.org/charts/PDF/U0080.pdf for other Latin-1 characters. HTH, Alfred. -Original Message- From: Alexandre Victoor [mailto:[EMAIL PROTECTED] Sent: Freitag, 5. Dezember 2003 09:39 To: [EMAIL

RE: French characters within xsp:logic

2003-10-13 Thread Nathaniel Alfred
The handling of non-UTF-8 input encoding is flawed for XSPs. Somewhere along the line from parsing the foo.xsp input, applying the core-logicsheet xsp.xsl and writing the generated code into foo_xsp.java, a codeset translation is missed or done the wrong way around. Accents in text nodes inside

RE: reload problem

2003-09-08 Thread Nathaniel Alfred
You've got the startElement arguments completely wrong. 1. uri = Namespace 2. name = Tagname without prefix 3. raw = Prefix:Tagname 4. attr = Attributes The second transformer step is currently sterile because it gets uri = . NB why not use configuration parameters to control the transformer's

RE: using global variables in subsitemaps

2003-09-04 Thread Nathaniel Alfred
I had similar problems with the global input module. Somewhere in the guts of building non-trivial pipelines the Avalon magic used to the global configuration gets lost. I didn't manage to hunt down the exact reason or to construct an example for a decent bug report. In the end I am now using the

RE: Wildcard (**) and nested hierarchy - problems

2003-08-26 Thread Nathaniel Alfred
Does your sitemap really contain map:generate src=foo/{../1}.xml / or isn't it rather map:generate src=cocoon:/foo/{../1}.xml / The first case addresses a *file* relative to the directory where the sitemap.xmap file is located. The second case addresses a *pipeline* in the same

RE: How to force XSP recompilation?

2003-08-24 Thread Nathaniel Alfred
Try to put anywhere into your XSPs: xsp:dependency/absolute/path/to/touchfile/xsp:dependency Then you only need to touch that single file to force recompiling all XSPs containing this dependency. HTH, Alfred. -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED] Sent:

RE: Custom Logic Sheet, xsp:expr, etc.

2003-07-13 Thread Nathaniel Alfred
Try to use: gvs-tag:value esql:get-string xsp:attribute name=columnxsp:expralias/xsp:expr/xsp:attribute /esql:get-string /gvs-tag:value I'm not sure that will work, as it is all a subtle question of the order the different logicsheets are applied. As alternative thought, how