Output beautifier

2003-01-07 Thread Miles Elam
Hi all, I'm looking for a way to neatly indent and otherwise clean up the output of a XSLT transformation, but the usual method of does not appear to work when used with Cocoon. I also want a easy way of stripping all namespace declarations from the output except for xmlns="http://www.w

Re: General sitemap questions

2003-01-07 Thread Miles Elam
*sigh* ... Feeling foolish for wasting bandwidth... 3) Do subsitemaps require a components section at all? Just defaults? If so, why do they need to be specified in each subsitemap? Why not inherit the defaults of the parent if they're not specified? I ask because I'd like subsitemaps to b

RE: Realms and Cocoon

2003-01-07 Thread Geoff Howard
Not sure if this works for you, but I've set up a standard database realm and use a generic role in web.xml (say, "authorized"). Then, I have a simple action that checks specific roles for sitemap level control of other resources. To give access I assign a user the generic "authorized" role and a

Re: General sitemap questions

2003-01-07 Thread Miles Elam
Okay...answering some of my own questions... Miles Elam wrote: 1) What is the accepted "correct" behavior for subsitemaps: errors in subsitemaps elicit errors up the chain to parent (sub)sitemaps or subsitemap validity has no bearing at all on parents? If foo/sitemap.xmap is missing, is not w

RE: Logkit configuration

2003-01-07 Thread Maximilian A. Ott
Michael, Tried that, but no change. What would I see if the logkit.xconf file is missing (just to check I changed the right one)? Thanks, -max > -Original Message- > From: Michael Wechner [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 07, 2003 6:38 PM > To: [EMAIL PROTECTED] > Sub

Re: Logkit configuration

2003-01-07 Thread Michael Wechner
Just replace DEBUG by ERROR within the file WEB-INF/logkit.xconf and restart Tomcat. HTH Michael Maximilian A. Ott wrote: I have been trying to start cocoon within a few servlet and application servers. While I successfully can serve pages I always get heaps of debug messages on the console

Logkit configuration

2003-01-07 Thread Maximilian A. Ott
I have been trying to start cocoon within a few servlet and application servers. While I successfully can serve pages I always get heaps of debug messages on the console of the type: 18:09:11.050 EVENT DEBUG (2003-01-07) 18:09.11:040 [] (/forms/emplo yee) SocketListener-0/DefaultLogK

Re: calling "neighbour" sitemap

2003-01-07 Thread Michael Wechner
[EMAIL PROTECTED] wrote: Hi, you can call other resources also by scr="cocoon://other-resource" right, this way you are able to call the "root-sitemap", but not the neighbouring "sub-sitemap2" (or at least it doesn't work in my case) Thanks Michael I think you can use that to use other s

Realms and Cocoon

2003-01-07 Thread Jeff Sexton
I've been able to use ... ... In a $TOMCAT_HOME/webapps/cocoon/WEB-INF/web.xml for a certain Cocoon application running under Tomcat. However, it seems I can only have a single element in this file. How do others create separate and different passwords and role

General sitemap questions

2003-01-07 Thread Miles Elam
The following snippet is the guide example for the first two questions. 1) What is the accepted "correct" behavior for subsitemaps: errors in subsitemaps elicit errors up the chain to parent (sub)sitemaps or subsitemap validity has no bearing at all on p

Problem with serializers

2003-01-07 Thread aps olute
This looks very similar to my problem with 2.1-dev and jdk1.4 and Tomcat4.1.12 per my posting: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104041952007585&w=2 I have to create that endorsed directory in Tomcat and copied xalan*.jar, xerces*.jar and xml-apis.jar from cocoon/WEB-INF/lib (

Re: Problem with serializers

2003-01-07 Thread Joerg Heinicke
Hello Robert, it's the old JAR problem using Java 1.4. Copy xalan-xx.jar, xerces-xx.jar and xml-apis.jar (the versions used in current Cocoon) for example into %TOMCAT_HOME%/common/endorsed. Regards, Joerg Robert Ellis Parrott wrote: From the latest 2.1 dev out of CVS, I'm having trouble with

access http://localhost:PORT/

2003-01-07 Thread Charlene Mitchell
Hi, I have another WebLogic *only* problem with Cocoon2.0.4 - anyone else seen this? (it works fine in JBoss Jetty/TomCat). It is impossible to access the root resource e.g. http://localhost:8080 or http://localhost:8080/ even though I have a match in my sitemap for both "/" and for "" What ha

RE: Trouble Passing Parameters

2003-01-07 Thread Jacob Arnold
That worked. Thanks for the help. J -Original Message- From: Michael Wechner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 9:44 AM To: [EMAIL PROTECTED] Subject: Re: Trouble Passing Parameters Jacob Arnold wrote: > I'm having difficulty passing parameters to my XSP. I'm us

Problem with serializers

2003-01-07 Thread Robert Ellis Parrott
>From the latest 2.1 dev out of CVS, I'm having trouble with serializers in general, so something in general is haywire. I have a very minimal sitemap, which is below an even more minimal sitemap. I'm just trying (for now) to read an xml file with a generator, then serialize it as xml or text or

Re: Trouble Passing Parameters

2003-01-07 Thread Michael Wechner
Jacob Arnold wrote: I'm having difficulty passing parameters to my XSP. I'm using the following in my sitemap: And this in my XSP But the value is not showing up. When I try the code suggested in the matchers and selectors doc, parameters.getParameter("id") I get this error

RE: i18n in combination with xsp:attribute

2003-01-07 Thread Nico Bekema
Hi Harry, you are absolutely right. It's working fine now. thx very much. Nico >>> [EMAIL PROTECTED] 01/07/03 04:53PM >>> From: [EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 4:53 PM To: '[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject:RE: i18n in combination with xsp:attribu

Trouble Passing Parameters

2003-01-07 Thread Jacob Arnold
I'm having difficulty passing parameters to my XSP. I'm using the following in my sitemap: And this in my XSP But the value is not showing up. When I try the code suggested in the matchers and selectors doc, parameters.getParameter("id") I get this error: org.apache.cocoon.

RE: i18n in combination with xsp:attribute

2003-01-07 Thread Lai, Harry
Hi Nico, You need to use BOTH the prefix and uri attributes. So you should have: http://apache.org/cocoon/i18n/2.0";> myKey Just as a caveat, I haven't actually tried this, but based on the documentation, that should work. =) Harry -Original Message- From: Nico Bekema [mailt

Re: cocoon book [was: pdf problem]

2003-01-07 Thread Jeremy Aston
Wrox do another excellent XSLT book - "Beginning XSLT" which I thoroughly recommend for even quite experienced XSLT coders. It has loads of best practice and well worked examples. There is a link from my site (http://www.pigbite.com) Best regards Jeremy P.S. (said in complete side whisper)

Re: Problem with return-value from store procedure in a XSP page

2003-01-07 Thread Christian Haul
On 07.Jan.2003 -- 03:46 PM, [EMAIL PROTECTED] wrote: > Hello > > I have a cocoon version number 2.0.3, a tomcat version number 4.0.16 and an > Oracle 8i database Cocoon 2.0.4 is released and fixes a number of bugs and Tomcat 4.1.18 is out containing security related fixes. > I have a store proce

calling "neighbour" sitemap

2003-01-07 Thread Michael Wechner
Hi Is it (would it be) possible to call a pipeline within a neighbouring sitemap, e.g. root-sitemap | --- | | sub-sitemap1 sub-sitemap2 sub-sitemap1 ha

Problem with return-value from store procedure in a XSP page

2003-01-07 Thread Igor . Kozlov
Title: Problem with return-value from store procedure in a XSP page Hello I have a cocoon version number 2.0.3, a tomcat version number 4.0.16 and an Oracle 8i database I have a store procedure in my database called sp_add_user. I tested the store procedure manually and it doesn't have any

Re: cocoon book [was: pdf problem]

2003-01-07 Thread Kavitha Ramesh
Hi, I could recommend Professional XSLT Programming from the wrox publishers. Kavitha Ramesh --- Ines Robbers <[EMAIL PROTECTED]> wrote: > Hi, > > Many thanks for your reply! > > * (and get a more recent book). > > Can you recommend one that is suitable for a > beginner like me with some >

validation declaration

2003-01-07 Thread Hong Gia Dinh
Title: validation declaration Hi all, In validation, we often has constraint declarations such as :                 If i want to declare a param must have the value equaling another params such as     must equal the param     how can i declare

AW: xslt processor and utf-8

2003-01-07 Thread Kirchhoff, Lars
I'm sorry i mixed the xml and the xsl stylesheet a bit up in the example... this is the stylesheet that just puts the required letter in the xml file before the xmlform action will enroll the data from the dom. /users/user[@letter=''] so maybe this is not an xslt problem,

Re: xslt processor and utf-8

2003-01-07 Thread Joerg Heinicke
Hello Lars, Kirchhoff, Lars wrote: Hello, I have some problems with the xsl transformation in combination with utf-8 characters and am wondering if somebody could explain me this. I used this code to select specific items depending on there letter, which means the letter they start with.

FW: [BUG] : java.util.EmptyStackException on EnvironmentStack

2003-01-07 Thread Amir Rosen
Hi, I'm using cocoon 2.0.4, and after calling a request that causes an exception, sometimes I get an EmptyStackException from the environment stack. I traced this behavior, and found out that, the environment stack is sometimes not initialized, when the request is just starting to process, mean

Re: Looking for advice

2003-01-07 Thread Bertrand Delacretaz
Hi Anna, Since JTidy sometimes messes up the original file (like with scripts inside tables - I posted a message about it few weeks ago), I would want to preprocess the original html file before passing it to the HTMLGenerator. In order to use a Cocoon pipeline you need to generate SAX events

Looking for advice

2003-01-07 Thread Anna Afonchenko
Hi all. I need an advice. I am using HTMLGenerator to tidy the html files that are requested. Since JTidy sometimes messes up the original file (like with scripts inside tables - I posted a message about it few weeks ago), I would want to preprocess the original html file before passing it to

RE: i18n in combination with xsp:attribute

2003-01-07 Thread Nico Bekema
Hi, unfortunately that did not help and I am still wondering what is causing this. myKey defaultValue This always results in the defaultValue (myKey is defined) If I look at the an intermediate result using a cocoon view it all looks fine but the end result will always return defa