Orion converts the XML passed to Cocoon into ISO-8859-1 where thisis not wanted

2002-11-05 Thread Bram Bouwens
Versions: orion 1.5.2/1.6.0, cocoon 2.0.3, jdk 1.3.1_06, RedHat 7.3. We have a web application that used to produce HTML from the JSP pages in the UTF-8 encoding, so there are no problems with most languages. Now we split the functional part from the visual design by having the JSP pages produce

Re: Accessing serialized output

2002-11-05 Thread Ludovic de Beaurepaire
Thank you for your answer, I have finally done your solution (write the source earlier to disk), using a XSL stylesheet redirecting the generated XML in a local file. This file is transformed/serialized when the PDF file is required later. I 'd prefer your solution to save it after the XSLT

Where is the Jar with Jdbc-Odbc Class!?!?!?

2002-11-05 Thread marco scotoni
I'm lookin for Jar where Jdbc-Odbc classes are...help plz i cant find - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To

AW: Accessing serialized output

2002-11-05 Thread Andres, Judith
In 2.0.3 the SourceWritingTransformer can be found in the cocoon scratchpad. HTH Judith -Ursprüngliche Nachricht- Von: Ludovic de Beaurepaire [SMTP:[EMAIL PROTECTED]] Gesendet am: Dienstag, 5. November 2002 10:28 An: [EMAIL PROTECTED] Betreff: Re: Accessing serialized

Re: Where is the Jar with Jdbc-Odbc Class!?!?!?

2002-11-05 Thread Ludovic de Beaurepaire
It is in the JDK (rt.jar) Ludovic - Original Message - From: marco scotoni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 10:23 AM Subject: Where is the Jar with Jdbc-Odbc Class!?!?!? I'm lookin for Jar where Jdbc-Odbc classes are...help plz i cant

Re: Where is the Jar with Jdbc-Odbc Class!?!?!?

2002-11-05 Thread marco scotoni
It's very big 22 mb can i re-jar only class i need ? what do u think? I think that loading a so big jar my memory fill out immediatly! - Original Message - From: Ludovic de Beaurepaire [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 10:37 AM Subject: Re:

RE: Ldap authentication

2002-11-05 Thread Senhaji
Mark, I try to configure out the authenticate resource using XSP calling to the database (see the code bellow). The xsp-request:get-parameter name=userName/ within the select statement seems not work correctly. The following exception is thrown : C2.1 Exception :

Re: Where is the Jar with Jdbc-Odbc Class!?!?!?

2002-11-05 Thread Ludovic de Beaurepaire
If you use java you should be able to access it directly - Original Message - From: marco scotoni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 10:36 AM Subject: Re: Where is the Jar with Jdbc-Odbc Class!?!?!? It's very big 22 mb can i re-jar only

Re: ForwardRedirector ???

2002-11-05 Thread Nicola Ken Barozzi
Artur Bialecki wrote: Is there a way to redirect internally (without going back to the browser) from an action? Actions get a Redirector but it is a SitemapRedirector that calls HttpEnvironment.redirect(). Is there any way I can get a ForwardRedirector in my action. The best way is to exit

Howto use saxon with cocoon (contrib to the docs)

2002-11-05 Thread SAXESS - Hussayn Dabbous
Hy there; While enabling saxon within cocoon-2.0.3 i was faced with some tricky problems. Consulting several mailing lists i finally managed to get it up running stable. Now i consider writing a little Howto enable saxon by tying together all infos i found on several places in the world. Would

Re: Pipeline vs Pipeline(S)

2002-11-05 Thread Diana Shannon
On Monday, November 4, 2002, at 10:45 AM, [EMAIL PROTECTED] wrote: Is this a good candidate for the Wiki? Certainly! Thanks for contributing. Diana - Please check that your question has not already been answered in the

PHP functionality

2002-11-05 Thread HA, Hai
Hello experts, I was wondering if anyone out there could provide me with some pointers about how to integrate PHP code with Cocoon? Specifically I have some XML documents that are serialised to HTML pages but I would like to add PHP functionality to enable data to be passed to and from a MySQL

RE: Ldap authentication

2002-11-05 Thread Ray Martin
Dear Friend, I read your post with enthusiasm - like a thirsty man receiving a bottle of water!!! What did it say? ... look at the authenticate resource.; ...anything else...; ...you can...; ...can be..; ...you could... - WOW!!! The water bottle was empty. What do i know from the post - well,

How to run XSP ?

2002-11-05 Thread Dhiman Paul
Title: Blank Hello experts, I was wondering if anyone out there could provide me with someinstructions about how torun "Hello World " kind ofXSP code with Cocoon? If anyone could please give me some tips or ideas on how this might be done I will be most grateful. Regards, Dhiman Paul.

Q:How to run XSP? /WARNING: VIRUS FOUND

2002-11-05 Thread Raúl Wild-Spain
WARNING, Win users! the mail of Paul Dhiman is infected with HTML.Redlof.A - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To

Virus Warning

2002-11-05 Thread Peter Sparkes
Sender: Dhiman Paul [EMAIL PROTECTED] Recipient: [EMAIL PROTECTED] Subject: How to run XSP ? Contains Virus HTML.Redlof.A - Please check that your question has not already been answered in the FAQ before posting.

AW: PHP functionality

2002-11-05 Thread Rimbert Rudisch
Dear Hai, there is a scripting language available for Cocoon, namely XSP, where you can execute Java-Statements. To access databases an alternative approach would be to use a component as the SQL Transformer. Greetings! Rimbert -Ursprüngliche Nachricht- Von: HA, Hai

Re: AW: PHP functionality

2002-11-05 Thread Derek Hohls
Also suggest you do some reading of your own... have a look at the database tutorials linked off of: http://xml.apache.org/cocoon/tutorial/index.html (the one by Leigh Dodds is especially helpful, and there is also one by Michal Durdina) and maybe think about a different approach from the PHP

Re: Virus Warning

2002-11-05 Thread Steven Noels
Peter Sparkes wrote: Sender: Dhiman Paul [EMAIL PROTECTED] Recipient: [EMAIL PROTECTED] Subject: How to run XSP ? Contains Virus HTML.Redlof.A reading mail through Mozilla brings much peace to my mind :-) /Steven -- Steven Noelshttp://outerthought.org/

simpel cocoon question

2002-11-05 Thread Kasper Nielsen
Just started using Cocoon and I have a rather simple question: Lets say i have a document with all my data (projects.xml) projects project id=A1 name RailwayTrack DF/name responsible kni /responsible economy_actual123/economy_actual

RE: simpel cocoon question

2002-11-05 Thread robert_hitchins
Kasper, I'm kinda new at this too, but I believe you can do that easily with xslt...just define two components and stylesheets in your pipeline...one to include the first xml file and one to include the second one. There may be a faster/easier way to do this ;-) Bob Hitchins -Original

Re: simpel cocoon question

2002-11-05 Thread Marcus Crafter
Hi Kasper, You wouldn't need to write a custom transformer for this. One solution would be to use aggregation to aggregate both files together. Then using xsl you can extract the necessary data for output. Hope that helps. Cheers,

Re: Orion converts the XML passed to Cocoon into ISO-8859-1 wherethis is not wanted

2002-11-05 Thread Bram Bouwens
Bram Bouwens wrote: The actual output is produced by calling void write(int b) from MyServletOutputStream for each character, with the ISO-8859-1 encoding of the character, sign extended, as a parameter: the ë mentioned above, which is 235 in ISO-8859-1, is sent as -21 . This appears quite

Re: simpel cocoon question

2002-11-05 Thread SAXESS - Hussayn Dabbous
Hy; I'm also new to cocoon, but i think, your problem can be solved directly using the sitemap capabilities by merging the two xml files with aggregation then applying a stylesheet on the merged data... But you also could do it directly within the xslt context: You can use the document()

Re: simpel cocoon question (typo-correction)

2002-11-05 Thread SAXESS - Hussayn Dabbous
Hy again; Sorry, there was a typo in my example. Of course it must be: 1.) From within the cocoon sitemap you would create something like this within a pipeline: map:match pattern=projects.xml map:generate src=/projects.xml/ map:transform type=xslt src=mytransformer.xsl map:parameter

RE: Cocoon and EJB

2002-11-05 Thread jakob . dalsgaard
On the subject of Cocoon and EJB: I am developing an application based on JBoss 3.0.3 (with Jetty), Cocoon 2.0.3 and Sun JDK 1.4 - all nicely wrapped up in an InstallAnywhere executable and easy to install on any Linux/Windows box. We are using an almost stock JBoss where the Jetty container is

Poor performance of document() in XSL [Was: Re: simpel cocoon question]

2002-11-05 Thread Ilya A. Kriveshko
SAXESS - Hussayn Dabbous wrote: snip/ But you also could do it directly within the xslt context: You can use the document() function in your XSLT-file. This function allows you to refer to data contained within another XML-file. This is completely decoupled from cocoon though. It's more about

Authentication Resource

2002-11-05 Thread Senhaji
Hi all, I am trying to protect my pages by using the Authentication framework. The authentication resource uses XSP to access the datastore. I've tried almost everything but I didn't succeed to retrieve the auth-login action parameters ({request:...}) from within the XSP code to complete the

Re: Authentication Resource

2002-11-05 Thread Markdelanoy
You've got the XSP but what does the sitemap look like?? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail:

Re: Ldap authentication

2002-11-05 Thread Markdelanoy
Look @ the cocoon documentation, e.g. Developer Documentation/ Developing Webapps/Authentication e.g. cocoon's authentication framework. and then for doing customized authentication (using LDAP, SQL, etc.) look at the authentication resource for where you put your code. MD

Re: Pulling XML data out of database

2002-11-05 Thread Markdelanoy
Well you could probably write another transformer (to be placed after the SQLTransformer in the pipeline) that would change the escaped charactors into ... It could also look for the second ?xml version=1.0? and not pass it through. That's kind of brutal coding IMO. Another option may be

RE: Authentication Resource

2002-11-05 Thread Senhaji
the sitemap looks like this : *** * The auth-login action *** map:match pattern=loginProcess !-- try to login -- map:act type=auth-login map:parameter name=handler value=authHandler/ map:parameter name=parameter_name

Re: Ldap authentication

2002-11-05 Thread Markdelanoy
Too be honest I started using cocoon three months ago and am following a very iterative process to eventually start talking to the db, e.g. do the look and feel, validation, security, etc. were done first. I had initially tried to get it running but even the sample authentication seemed

Re: Authentication Resource

2002-11-05 Thread Markdelanoy
You'll need to confirm this but look in cocoon's sitemap.log. You should see the pipeline parameters being passed around. in the sitemap your passing cocoon parameters but in the XSP your looking in the HTTP request. Try looking in the parameters, e.g. parameters.getParameter( name );

Re: Pipeline vs Pipeline(S)

2002-11-05 Thread jcallahan
Actually, I found a Wiki entry for it already... http://outerthought.net/wiki/Wiki.jsp?page=DesignPipelines -- jack John R. Callahan, Ph.D. CTO Sphere Software Corporation - The Intelligence of XML [EMAIL PROTECTED] On Monday, November 4, 2002, at 10:45 AM, [EMAIL PROTECTED] wrote:

cocoon won't deploy

2002-11-05 Thread Kyle Koss
Greetings all: I have recently installed the sun one app server 7.0 and am in the process of deploying our applications. Most of them have gone smoothly except when it comes to cocoon. I created a war file from our current cocoon, and also tried to deploy the current CVS version, and

RE: Authentication Resource

2002-11-05 Thread Senhaji
Thanks Mark I'll try this. I didn't try the getParameter method yet -Message d'origine- De : [EMAIL PROTECTED] [mailto:Markdelanoy;aol.com] Envoyé : mardi 5 novembre 2002 16:20 À : [EMAIL PROTECTED] Objet : Re: Authentication Resource You'll need to confirm this but look in cocoon's

Re: cocoon won't deploy

2002-11-05 Thread Karl Øie
- Root Cause - java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager)  at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)  at java.security.AccessController.checkPermission(AccessController.java:401)

XMLForm and textbox: how to protect

2002-11-05 Thread Sylvain.Thevoz
Hello, In XMLForm, is it possible to protect the default value in a textbox against the user changes. I want to display the field in the form (with the default value) but it shouldn't be possible to change the value of it. Any idea? Thank you Sylvain

RE: XMLForm and pop-up menu

2002-11-05 Thread Sylvain.Thevoz
I used: xf:selectOne selectUIType='listbox' It works! Sylvain -Message d'origine- De: Ivelin Ivanov [mailto:ivelin;apache.org] Date: mardi, 5. novembre 2002 05:08 À: [EMAIL PROTECTED] Objet: Re: XMLForm and pop-up menu For drop down list use: xf:selectOne For radio buttons, use

xml version procesing instruction and text serializer?

2002-11-05 Thread Oskar Casquero
I want to obtain a text file (not xml) from an XSLT transformation. The problem is that after doing the transformation and serializing the result with a text serializer, the ?xml version="1.0"? processing instruction appears at the beginning of the text file,so I have to delete it

Re: XMLForm and textbox: how to protect

2002-11-05 Thread Mohamed El-Refaey
Hallo Sylvain I think the property of textbox to be uneditable by the user is not supported in the XMLForm ... But u can --- only make a getter method for this field without a setter method in the model bean ... so if the user tried to change the text box value actually it will not changed

Re: cocoon-users Digest 4 Nov 2002 20:21:42 -0000 Issue 1677

2002-11-05 Thread Alex Romayev
ATTACHMENT part 16 message/rfc822 Date: Mon, 04 Nov 2002 12:50:02 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Authentication: redirect I did a hack because as you say currently the examples only work for a particular url/file/resource. I actually pass the

Sybex Cocoon book

2002-11-05 Thread Alex McLintock
Happily I have received another Cocoon2 book for review on http://news.DiverseBooks.com Does anyone have any questions which they want me to discuss in my review? (We already have a review of the New Riders Cocoon book) Title: Cocoon 2 Programming Subtitle: Web Publishing with XML and Java

how to manage several XMLForms in a sitemap? (it was: dynamically choosing an action at runtime)

2002-11-05 Thread Josema Alonso
Well, after reading replies to my emails I have a better idea of wht to do and unfortunately not a chance to do it. I explain it. A quick summary. I would like to manage many XMLForms in my sitemap. I would like to declare a pipeline like this: !-- XMLForms pipeline -- map:pipeline

RE: Poor performance of document() in XSL [Was: Re: simpel cocoon question]

2002-11-05 Thread Leigh Dodds
A naive implementation of the document() function is likely to do this. However happily, by implementing the javax.xml.transform.URIResolver interface [1], and setting this on the Tranformer using setURIResolver [2] you can easily plug in a simple cache (e.g. hash of URL versus retrieved content)

Re: Sybex Cocoon book

2002-11-05 Thread Geoff Howard
--- Alex McLintock [EMAIL PROTECTED] wrote: Happily I have received another Cocoon2 book for review on http://news.DiverseBooks.com Does anyone have any questions which they want me to discuss in my review? 1) which version of cocoon is the book relevant to? 2.0.3 release? any 2.1 dev

Re: how to manage several XMLForms in a sitemap? (it was: dynamically choosing an action at runtime)

2002-11-05 Thread Markdelanoy
Well I can explain what I've done which matches your requirements but the implementation I suspect is quite different. First some issues I had. 1.) I like the XFORMS concept but... didn't like the fact that I couldn't represent non-forms widgets, e.g. page banners, table of contents, footers,

RE: xml version procesing instruction and text serializer?

2002-11-05 Thread Ryan Agler
In your XSLT file, right under xsl:stylesheet, include: xsl:output omit-xml-declaration=yes method=text / -Original Message- From: Oskar Casquero [mailto:jtacaoio;bi.ehu.es] Sent: Tuesday, November 05, 2002 11:31 AM To: [EMAIL PROTECTED] Subject: xml version procesing instruction and

RE: cocoon won't deploy

2002-11-05 Thread Kyle Koss
Thanks for the help. I found that I had to this permission as well as some others to the server.policy file. This is what I added: permission java.lang.RuntimePermission createSecurityManager; permission java.lang.RuntimePermission createClassLoader; permission

RE: Sybex Cocoon book

2002-11-05 Thread William Brogden
-Original Message- From: Geoff Howard [mailto:cocoongeoff;yahoo.com] Sent: Tuesday, November 05, 2002 11:37 AM To: [EMAIL PROTECTED] Subject: Re: Sybex Cocoon book --- Alex McLintock [EMAIL PROTECTED] wrote: Happily I have received another Cocoon2 book for review on

Re: Pulling XML data out of database

2002-11-05 Thread Robert Ellis Parrott
Yep. I gave up a SQLTransformer for this, and just went with XSP ESQL. thanx, rob On Tue, 5 Nov 2002 [EMAIL PROTECTED] wrote: Well you could probably write another transformer (to be placed after the SQLTransformer in the pipeline) that would change the escaped charactors into ... It

Persistant user authentication data in portal (Take Two)

2002-11-05 Thread Rob Johnston
Hey all, I'm attempting to get at authentication session data using the session transformer in a installed portlet. That is, I want to check something stored in the user's authentication session data from a pipeline called from the portal itself (and not me directly). For instance, I have a

Re: how to manage several XMLForms in a sitemap? (it was: dynamicallychoosing an action at runtime)

2002-11-05 Thread Christian Haul
Josema Alonso wrote: So, an Action Dispatcher (or call it Proxy Action or whatever) is needed so the action could be choosed at runtime. Unfortunately this involves working with Avalon components and I have no idea about them. I tried their white paper at their website but it is too hard for me

Re: Pulling XML data out of database

2002-11-05 Thread J.Pietschmann
Robert Ellis Parrott wrote: I want to pull a valid XML text out of a database using SQLTransformer if possible. Problem (1) everything is escaped away to gt;, lt;, and #13; Problem (2) the resulting text won't really be valid, since it would include a second ?xml version=1.0?. How do people do

cocoon user-roles=failure

2002-11-05 Thread Phil Shafer
I'm trying to use the user-roles attribute on the cocoon element of cocoon.xconf, but not having any luck. I've followed the FAQ (faq-configure-c2.html) and have: cocoon version=2.0 user-roles=WEB-INF/jtk-component.roles but I get: Exception reloading

Re: cocoon user-roles=failure

2002-11-05 Thread Peter Royal
On Tuesday, November 5, 2002, at 03:11 PM, Phil Shafer wrote: I'm trying to use the user-roles attribute on the cocoon element of cocoon.xconf, but not having any luck. I've followed the FAQ (faq-configure-c2.html) and have: cocoon version=2.0 user-roles=WEB-INF/jtk-component.roles Did

Re: Poor performance of document() in XSL [Was: Re: simpel cocoonquestion]

2002-11-05 Thread J.Pietschmann
Ilya A. Kriveshko wrote: SAXESS - Hussayn Dabbous wrote: But you also could do it directly within the xslt context: You can use the document() function in your XSLT-file. There are drawbacks. One of them is that Cocoon currently (2.0.3) does not check XML sources referenced via document() for

Re: Mixed XSL performance under Windows/UNIX?

2002-11-05 Thread Joerg Heinicke
Have a look at your sitemap and try to comprehend the processings. For example start with only the generator and an XML serializer in the pipeline. See on which stage the namespace declaration is added. Joerg Derek Hohls wrote: Yes, that's what I would like to know too - how to remove all the

Re: cocoon user-roles=failure

2002-11-05 Thread Phil Shafer
Peter Royal writes: Did you try /WEB-INF/ ? Nope, that did it. Cool. I was thinking the /localhost/jtk/ was part of the problem, but appearantly this is handled internally by something (jndi?). Thanks, Phil - Please check

RE: Sybex Cocoon book

2002-11-05 Thread Geoff Howard
--- William Brogden [EMAIL PROTECTED] wrote: 1) which version of cocoon is the book relevant to? 2.0.3 release? any 2.1 dev and if so how outdated is it? Of the major topics of the book, how many are now in the process of being deprecated? 2) where is the book focused? static xml

Re: cocoon user-roles=failure

2002-11-05 Thread Kjetil Kjernsmo
On Tuesday 05 November 2002 21:44, Phil Shafer wrote: Peter Royal writes: Did you try /WEB-INF/ ? Nope, that did it. Cool. I was thinking the /localhost/jtk/ was part of the problem, but appearantly this is handled internally by something (jndi?). Hm, I posted a patch for this at

Re: Poor performance of document() in XSL [Was: Re: simpel cocoonquestion]

2002-11-05 Thread Ilya A. Kriveshko
J.Pietschmann wrote: document() is good for rapid prototyping, but is a poor choice for final deployment for performance reasons. Use aggregation instead. The Cocoon developers recommend to use aggregation or xinclude because of SoC (XSLT is for transforming, not for aggregating content). I'd

Re: Accessing the output of a modular db action in xsl

2002-11-05 Thread Christian Haul
On 04.Nov.2002 -- 07:43 PM, Phil Craven wrote: here is the sitemap segment that shows what I am trying to do. map:match pattern=group2.xsp map:act type=mod-db-sel action=sel-ci map:parameter name=table-set value=content_item/ map:generate type=serverpages

RE: Authentication Resource

2002-11-05 Thread Senhaji
I get it. You should use request.getParameter(user) rather than parameters.getParameter(user) in your XSP server page to access the user information. Below the XSP code that works xsp:page language=java xmlns:xsp=http://apache.org/xsp;

Re: how to manage several XMLForms in a sitemap? (it was: dynamically choosing an action at runtime)

2002-11-05 Thread Josema Alonso
Hi, Mark. Thanks for writing. After reading your message I can only say...wow! I think it is very interesting the way you made things work and I really would love to see it. More than that, I'm with you when you say you're doing things from a very different approach when comparing to the average

RE: XMLForms vs Struts

2002-11-05 Thread Reinhard Poetz
Ivelin, I created a new main point in the left menu and called it Cocoon compared. Reinhard -Original Message- From: Ivelin Ivanov [mailto:ivelin;apache.org] Sent: Saturday, November 02, 2002 5:23 PM To: [EMAIL PROTECTED] Subject: Re: XMLForms vs Struts Please do. Wiki is

Re: Accessing the output of a modular db action in xsl

2002-11-05 Thread Phil Craven
I tried that as well, and only row-count would come through, I was unable to get the selected parameters even though I used map:parameter name= value= so what would the correct map:parameter look like to get at the output of a mod-db select. Just to reiterate I appologize for being dense and

Antwort: XMLForm and textbox: how to protect

2002-11-05 Thread michael_hampel
Hello, you do this in your xslt stylesheet: e.g.: input name=whatever type=textbox value=whatever disabled=disabled the disabled should to the trick, Hope that helps, mh

Re: cocoon user-roles=failure

2002-11-05 Thread Kim Jelmoni
Hi, try cocoon version=2.0 user-roles=/WEB-INF/jtk-component.roles at my site work with / Kim Phil Shafer wrote: I'm trying to use the user-roles attribute on the element of cocoon.xconf, but not having any luck. I've followed the FAQ (faq-configure-c2.html) and have: but I get: