Re: Convert string from html to xhtml

2007-01-15 Thread Torsten Curdt
On 15.01.2007, at 07:38, Bertrand Delacretaz wrote: On 1/14/07, philguillard [EMAIL PROTECTED] wrote: ... Anybody any idea? Is there a way to call jtidy to convert a string in java?... You could also use the (Neko)HtmlTransformer, see the samples at

Re: custom document generation

2007-01-15 Thread Daniel Süpke
Mark Lundquist schrieb: Hi Daniel, On Jan 13, 2007, at 1:06 PM, Daniel Süpke wrote: I used to work with struts and have some problems now getting into Cocoon. Could you please give me a hint if I'm on the right track? Yes, you're on the right track :-). What problems are you having?

Re: Formtdefinition and -template from a org.w3c.dom.Document stream

2007-01-15 Thread ZongoZongo
Creating the form works fine. But the pipeline makes some trouble with parsing the template: org.xml.sax.SAXException: The object type: class java.lang.String could not be serialized to XML: Do I have to consider anything special? My template is valid and works fine if I use it conventionally

Re: Ajax - on Submit: Requerst failed - status=500

2007-01-15 Thread ZongoZongo
I found the problem, but dont know how to solve it. The problem is the location of the ajax-logic inside the aggregator. If its located inside a pipeline everything works fine. Sadly I have to put the formprocessing after the aggregation, because the tabs inside the form need, the tag head/, that

Re: Convert string from html to xhtml

2007-01-15 Thread philguillard
I use (jtidy)HtmlTransformer. I had XSP (XML file in utf-8, database tables and jdbc connection in utf-8) -- html or XML Serializer in UTF-8 this was ok, and i get character encoding troubles in my language after inserting the HTMLTransformer, confusion between ISO-8859-1 and UTF-8 ?... I

Re: Convert string from html to xhtml

2007-01-15 Thread Abbas Mousavi
I had this problem also , this change in org.apache.cocoon.transformation.HTMLTransformer solved the problem, the change is near line 173 new ByteArrayInputStream(text.getBytes(UTF-8)); --- .cPA8 {

Re: problem with headers

2007-01-15 Thread Joose Vettenranta
Mark Lundquist kirjoitti 13.1.2007 kello 23.31: I have like this in sitemap: map:match pattern=internal/action/upload map:read type=resource src={flow-attribute:path}/{flow- attribute:file} mime-type={flow-attribute:mimetype} / /map:match It works for some but not for every

Re: problem with headers

2007-01-15 Thread Mark Lundquist
On Jan 15, 2007, at 4:39 AM, Joose Vettenranta wrote: [...] So it might indicate problem with caching and mime-types. hmmm https://issues.apache.org/jira/browse/COCOON-1624 ??? —ml— - To unsubscribe, e-mail:

Access items from a selection list from within flowscript

2007-01-15 Thread Ralph Rauscher
Hi, I tried to access (read-only) items of a selection list within flowscript. This selection list is fed from a cocoon pipeline. In the cforms model, it is set up like this: fd:selection-list src=cocoon:/en/selectionlist_instructioninterface dynamic=true/ Now if I try the following code

Re: Access items from a selection list from within flowscript

2007-01-15 Thread Jeroen Reijn
Hi Ralph, as far as I can see it should still be possible. What version of Cocoon are you using? Kind regards, Jeroen Reijn Ralph Rauscher wrote: Hi, I tried to access (read-only) items of a selection list within flowscript. This selection list is fed from a cocoon pipeline. In the cforms

cocoon 2.1.10 + bsf + rhino (javascript)

2007-01-15 Thread Steven D. Majewski
I noticed that cocoon 2.1.10 has an newer release of bsf (Bean Scripting Framework) along with the new javascript. Does anyone know if this fixes the broken javascript+bsf problem in 2.1.9 ? -- Steve Majewski - University of Virginia Alderman Library

Re: Problem with new JX Template Generator

2007-01-15 Thread Gabriel Gruber
I found out my weird error: It was a Jar-problem. (welcome to JAR HELL...) For some reason I had the alt-rmi jars inside my web-inf/lib-directory and that caused the problem. I do not have any reasonable explanation why that led to the described error. but after removing those jars from the

Regular Expressions, flowscript and java.lang.Character

2007-01-15 Thread Walter Lewis
I'm new to flowscript work in Cocoon, but I've gotten to this point from a number of variable manipulations which are just a whole lot easier (theoretically) with regular expressions than in XSLT. The following is a simple variation that illustrates the problem. There are 40 or so other pieces

Re: Regular Expressions, flowscript and java.lang.Character

2007-01-15 Thread Jason Johnston
I'm new to flowscript work in Cocoon, but I've gotten to this point from a number of variable manipulations which are just a whole lot easier (theoretically) with regular expressions than in XSLT. The following is a simple variation that illustrates the problem. There are 40 or so other

Re: Regular Expressions, flowscript and java.lang.Character

2007-01-15 Thread Jason Johnston
I'm new to flowscript work in Cocoon, but I've gotten to this point from a number of variable manipulations which are just a whole lot easier (theoretically) with regular expressions than in XSLT. The following is a simple variation that illustrates the problem. There are 40 or so other

Re: Access items from a selection list from within flowscript

2007-01-15 Thread Mark Lundquist
On Jan 15, 2007, at 10:29 AM, Ralph Rauscher wrote: Now if I try the following code var selList = widget.getFieldDefinition().getSelectionList(); var selListItems = selList.getItems() selListItmems will be null. I've used the exact same code for another selection list - however that

Cocoon Training

2007-01-15 Thread Hipkiss JR (Mr)
Hi, I hope you can help us, here in the UK we're beginning to ramp up a major project that we've decided will be using Cocoon for its XML - XHTML transformations. However, we need to get a number of internal developers up to speed on Cocoon and we will also need access to come contractors to aid

java.lang.IllegalStateException: Pipeline has already been processed for this request

2007-01-15 Thread Steven D. Majewski
OK: I've managed to find (I think) what caused this error, but I'm hoping someone can explain what exactly it means to me: java.lang.IllegalStateException: Pipeline has already been processed for this request I was debugging some flowscript, and I stuck in a sendPageAndWait() call

Re: java.lang.IllegalStateException: Pipeline has already been processed for this request

2007-01-15 Thread Joerg Heinicke
On 16.01.2007 00:27, Steven D. Majewski wrote: java.lang.IllegalStateException: Pipeline has already been processed for this request Can someone explain what happened and what that message above means ? The message itself means that you try to send a second response on one request.

Re: Cocoon Training

2007-01-15 Thread Joerg Heinicke
On 15.01.2007 15:17, Hipkiss JR (Mr) wrote: However, we need to get a number of internal developers up to speed on Cocoon and we will also need access to come contractors to aid us with the particularly tricky bits. Does anyone know of any good Cocoon training courses running preferably in

Re: java.lang.IllegalStateException: Pipeline has already been processed for this request

2007-01-15 Thread Steven D. Majewski
On Jan 15, 2007, at 6:46 PM, Joerg Heinicke wrote: On 16.01.2007 00:27, Steven D. Majewski wrote: java.lang.IllegalStateException: Pipeline has already been processed for this request Can someone explain what happened and what that message above means ? The message itself means that

Re: Formtdefinition and -template from a org.w3c.dom.Document stream

2007-01-15 Thread Jason Johnston
ZongoZongo wrote: Creating the form works fine. But the pipeline makes some trouble with parsing the template: org.xml.sax.SAXException: The object type: class java.lang.String could not be serialized to XML: Do I have to consider anything special? My template is valid and works fine if I use

i18n and database

2007-01-15 Thread 許議中
Hi! I'm try to put the i18n xml file to DB. Here is the i18n setting in sitemap.xmap map:components !--**i18n*-- map:transformers default=xalan

linking excalibur sources to request

2007-01-15 Thread Robert, Danny
A simplified version of the problem I'm working on: I need to be able to associate all (Excalibur) Sources used during a pipeline with the initial request. That is: 1) Request comes in through the Servlet 2) The pipeline executes 3) The servlet, upon completion, can output the URI for each

Re: i18n and database -- solve

2007-01-15 Thread 許議中
Solve it! just change it locationi18n/location to locationcocoon:/i18n/location 許議中 提到: Hi! I'm try to put the i18n xml file to DB. Here is the i18n setting in sitemap.xmap map:components