Re: Best practices for building cocoon applications

2004-08-24 Thread Giacomo Pati
On Tue, 24 Aug 2004, Rick Wayne wrote: What do you Cocoon mavens consider to be the canonical practice for automatically building a deployable Cocoon application? In the past, I usually download a distribution, build it excluding as many blocks as I can stand, and then hand-edit things from there -

Re: XSP/output

2004-08-24 Thread Jan Hoskens
You probably want logging instead of plain output, to do this in XSP: getLogger().debug("your message here"); Look for your logs under your "cocoon/WEB-INF/logs" directory. I guess it should pop-up in core.log or sitemap.log. (You can also use .info() , .warn() and .error() with that getLogger() f

Re: use tokens during flowscript call in a pipeline

2004-08-24 Thread Jan Hoskens
You are trying to access a parameter that's actually one level up, when going a level up you must use "../". Try {../1}/{../2}/{tempname} Sebastien Gabel wrote: Hi ! I'm surprised.and I'm going to explain my problem ; I would like to write a pipeline using action and flowscript :

XSP/output

2004-08-24 Thread Adriano Smith
If a System.out.println(\"\") is given in an XSP where will the output be seen? The java console does not print it. How can the output be seen in java console?

Re: Flow Control - XML Editing

2004-08-24 Thread Tony Edwards
Hi Eric, I had a brief mail exchange with Mark Lundquist on the 5th August outlining my approach to flow based XML editing. Have a look and see if its detailed enough to get you started, otherwise let me know. Regards, Tony JACOB, ERIC wrote: Hi, Is it possible to edit/modify a XML file with flo

Re: Best practices for building cocoon applications

2004-08-24 Thread Ralph Goers
There are several methods that I've seen. Here are 2 I know of: 1. Package your stuff as a block. Move it into Cocoon's directory and use the Cocoon build process to build it. 2. Build a cocoon war. Build your stuff outside of Cocoon. When you want to build the webapp unwar the cocoon war and then

Error while loggin to cocoon

2004-08-24 Thread Anna Bikkina
I get this error today when I was trying to login to cocoon portal server. Can someone please shed some light on this. An Error Occurred Failed to execute pipeline. org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException cause: java.lang.NullPointerExc

Re: matching html elements in transformation

2004-08-24 Thread Antony Quinn
Sorry, you're quite right about namespaces. I've had DTDs on the brain today :~) [EMAIL PROTECTED] wrote: Antony Quinn wrote: Gary, It sounds like a namespace problem. Take a look at your HTML - if there's a DTD declaration you'll need to declare this is a namespace in your XSL file and prefix a

Forms/document-editing application

2004-08-24 Thread Rick Wayne
Hello again all, I went looking for an answer to this one in the archives but didn't find it; closest was the thread "Create new form model for later binding" from earlier this month. I have what is essentially a document-management application. The user selects a document from a list of template

Best practices for building cocoon applications

2004-08-24 Thread Rick Wayne
I did some hunting around for the answer to this question, and AFAIK it's not covered explicitly. If y'all think it's worthy, I can synthesize responses and perhaps submit them for inclusion in the installation instructions. What do you Cocoon mavens consider to be the canonical practice for autom

Re: matching html elements in transformation

2004-08-24 Thread Joerg Heinicke
On 24.08.2004 16:54, Schultz, Gary - COMM wrote: Is my understanding correct, the xhtml elements need a namespace value to work in the xsl processor? Yes, elements in the default namespace in the input XML must be matched with a prefixed in the stylesheet. Or in other words: the default namespace

Re: matching html elements in transformation

2004-08-24 Thread Joerg Heinicke
On 24.08.2004 19:39, [EMAIL PROTECTED] wrote: Is my understanding correct, the xhtml elements need a namespace value to work in the xsl processor? Only if you have »xmlns="http://www.w3.org/1999/xhtml"« in your XSL stylesheet. If the stylesheet does not have a namespace for html, it will recogniz

Re: html characters in xml

2004-08-24 Thread J.Pietschmann
Gunter D'Hondt wrote: I've got an xml-file that goes thru Cocoon standard xml generator to serialize into html (so nothing special). But using html characters as " ", "€" doesn't work. Anybody that has a link to the list of codes that can be used in this context? The HTML 4 character entity refe

RE: matching html elements in transformation

2004-08-24 Thread Schultz, Gary - COMM
Thank you for the response, that helps my understanding. What we are doing is in the sitemap we pass parameters to the XSL process based on the match pattern of the requested file. The parameters are used to set CSS file links or to call different html templates to build the web pages. What this

Re: matching html elements in transformation

2004-08-24 Thread [EMAIL PROTECTED]
Schultz, Gary - COMM wrote: Is my understanding correct, the xhtml elements need a namespace value to work in the xsl processor? Only if you have »xmlns="http://www.w3.org/1999/xhtml"« in your XSL stylesheet. If the stylesheet does not have a namespace for html, it will recognize html elements wi

Antwort: Forms with "conditional" parts

2004-08-24 Thread Stephane Delort
Hi Bart, I guess you should have a look at classes, struct and unions to do this job. At least to have a clear definition file. To get started, you could have as definition file :

Re: Splitting elements round empty tags

2004-08-24 Thread Gerald Aichholzer
On Tue, 24 Aug 2004 17:07:32 +0200, <[EMAIL PROTECTED]> wrote: I have a problem with XSLT and/or Cocoon that I really don't know how to solve. Starting point is following: I have a file with elements , , , and so on. Each of these elements is broken, or can be broken, in paragraphs with the empty e

Flow Control - XML Editing

2004-08-24 Thread JACOB, ERIC
Hi, Is it possible to edit/modify a XML file with flow control? If yes, how it could be done? Thanks, Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Splitting elements round empty tags

2004-08-24 Thread philippe . faehndrich
Title: Splitting elements round empty tags Hello, I have a problem with XSLT and/or Cocoon that I really don't know how to solve. Starting point is following: I have a file with elements , , , and so on. Each of these elements is broken, or can be broken, in paragraphs with the empty element

Re: JSR 170

2004-08-24 Thread Ralph Goers
Sorry I'm just venting now. Most, if not all, the content management systems I am looking at seem to want to "own" the website. I want a content management system that just manages content, not the website. Ralph Ralph Goers said: > In the ideal case, I'd like our customers to be able to plug in

RE: matching html elements in transformation

2004-08-24 Thread Schultz, Gary - COMM
I found my solution: For reference, here was my starting point. In the XML file I have the namespace declarations: http://www.w3.org/1999/xhtml"; xmlns:comwpc="http://commerce.wi.gov/xmlns/comwpc"; xmlns:comwpm="http://commerce.wi.gov/xmlns/comwpm"; xmlns:xsi="http://www.w3.org/2001/XMLSch

Re: JSR 170

2004-08-24 Thread Ralph Goers
In the ideal case, I'd like our customers to be able to plug in any content management system of their choosing. However, it seems JSR 170 only addresses a subset of what most content management systems seem to do. I'd like to use Cocoon components that use the JSR 170 APIs so that at least that

use tokens during flowscript call in a pipeline

2004-08-24 Thread Sebastien Gabel
Hi ! I'm surprised.and I'm going to explain my problem ; I would like to write a pipeline using action and flowscript : Ok my problem is here : {1} and {2} are not found but all work correctly if I put them in static. e.g "{1}/{2}" becomes "

StreamGenerator problem

2004-08-24 Thread Norman Barker
Hi, I am trying to use the StreamGenerator to get at posted XML request data. I have constructed a form like this http://localhost:/test.xml"; method="POST" enctype="text/xml"> and a matcher in the sitemap as because I have specified encoding

Re: html characters in xml

2004-08-24 Thread Marc Portier
Jorg Heymans wrote: i was just trying to solve a similar problem and found this webpage that converts ASCII to HEX to UNICODE http://www.mikezilla.com/exp0012.html Just put your character in the ascii field and use the encoded unicode value. For example the euro sign becomes € The   is a bit t

Re: Cocoon request decoding

2004-08-24 Thread Jorg Heymans
is http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109231177110588&w=2 of any help to you? Timur Izhbulatov wrote: Hi all! I'm investigating the problem described in [1] and I have some questions. As I can see in the browser's address line, any non-ASCII character is escaped according to my c

Re: Cocoon request decoding

2004-08-24 Thread KOZLOV Roman
Hi Timur, You can use SetCharacterEncodingAction. Roman Timur Izhbulatov wrote: > Hi all! > > I'm investigating the problem described in [1] and I have some questions. As > I can see in the browser's address line, any non-ASCII character is escaped > according to my current platform encoding (

Re: html characters in xml

2004-08-24 Thread Jorg Heymans
i was just trying to solve a similar problem and found this webpage that converts ASCII to HEX to UNICODE http://www.mikezilla.com/exp0012.html Just put your character in the ascii field and use the encoded unicode value. For example the euro sign becomes € The   is a bit trickier, have you tri

Re: Cocoon request decoding

2004-08-24 Thread Timur Izhbulatov
BTW, W3C recommends[1] that browsers use UTF-8 when escaping URLs Timur [1]http://www.w3.org/TR/html401/appendix/notes.html#h-B.2.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

RE: calling methods in xsp

2004-08-24 Thread robby . pelssers
This time with attachment !! -Original Message- From: Jones A [mailto:[EMAIL PROTECTED] Sent: 24 August, 2004 07:17 To: [EMAIL PROTECTED] Subject: calling methods in xsp is it possible to call another method frm a method in XSP? Should the methoda be inside the same tag? like

RE: calling methods in xsp

2004-08-24 Thread robby . pelssers
I guess it is possible :-) http://apache.org/xsp " xmlns:xen=" http://www.osirion.nl/xenophon/xenophon/1.0 "> java.text.* java.util.* java.util.Locale org.apache.cocoon.environment.Session org.apach

Cocoon request decoding

2004-08-24 Thread Timur Izhbulatov
Hi all! I'm investigating the problem described in [1] and I have some questions. As I can see in the browser's address line, any non-ASCII character is escaped according to my current platform encoding (windows-1251). For instance the russian letter "de" is represented by "%E4". The proble

html characters in xml

2004-08-24 Thread Gunter D'Hondt
I've got an xml-file that goes thru Cocoon standard xml generator to serialize into html (so nothing special). But using html characters as " ", "€" doesn't work. Anybody that has a link to the list of codes that can be used in this context? Regards, Gunter D'Hondt SOFICO NV Belgium

Re: JSR 170

2004-08-24 Thread Andreas Hartmann
Ralph Goers wrote: I need to support basic retrieval (and I suppose possibly update) from content management systems into web pages. It looks like JSR 170 is the obvious way to implement this. As of yet, I don't see anything in Cocoon to support this. I'm just getting started in looking at variou

Forms with "conditional" parts

2004-08-24 Thread Bart Molenkamp
Hi, I need to create a form on which a user can select some option, and depending on that option, needs to fill in some other fields. For example: (*) option X field A [___} [X] some boolean ( ) option Y upload widget [___] [browse...] ( ) some sel

Re: matching html elements in transformation

2004-08-24 Thread [EMAIL PROTECTED]
Antony Quinn wrote: Gary, It sounds like a namespace problem. Take a look at your HTML - if there's a DTD declaration you'll need to declare this is a namespace in your XSL file and prefix any HTML elements accordingly, eg: No. DTD and namespace are separate things. Just only check if HTML given

Why isn't my xspaction retrieving a value?

2004-08-24 Thread David Merrilees
I'm trying to retrieve a value from a database and then set it to a sitemap parameter using an xsp action. The error report produced when I run it says that there is no value to set. If I remove the and run the action I can see the stored procedure being executed using a trace on the database an

Re: matching html elements in transformation

2004-08-24 Thread Antony Quinn
Gary, It sounds like a namespace problem. Take a look at your HTML - if there's a DTD declaration you'll need to declare this is a namespace in your XSL file and prefix any HTML elements accordingly, eg: HTML: http://www.w3.org/TR/html4/loose.dtd";> ... XSL: http://www.w3.org/1999/XSL/Transf