Re: XSL-PS

2002-01-25 Thread David Rosenstrauch
At 12:15 PM 1/24/02 -0800, you wrote: >Hello anybody know if can cocoon output Postscript >is possible this? Yes. http://xml.apache.org/cocoon/userdocs/serializers/ps-serializer.html DR - Please check that your question has

RE: Cocoon User guide/ Developer doc - Urgent

2002-01-25 Thread David Rosenstrauch
At 09:54 AM 1/25/02 -0800, you wrote: >Hello > I am trying to understand the functionality of Action, Selector >and resources. Could any one of you Cocooners, direct me to any kind of >helpful documentation regarding it. > >Regds, >Chiths Actions: http://xml.apache.org/cocoon/userdocs/co

Re: Servlets to XSL

2002-01-24 Thread David Rosenstrauch
At 04:30 PM 1/24/02 -0600, you wrote: >Thanks to Vadim Gritsenko and David Rosenstrauch. >This scheme now works. Glad you're up and running Bob. In fact, though, I feel kinda bad that I gave you some bad advice about refactoring, creating your own generator, etc. Glad Vadim was

Re: JDK 1.4 pre

2002-01-24 Thread David Rosenstrauch
At 11:22 AM 1/24/02 -0500, Berin Loritsch wrote: Until that time, and the time when XSP is no longer needed, tools.jar needs >to go in WEB-INF/lib. Not sure what you mean by that. When won't XSP be needed any longer? Is it being deprecated? DR -

RE: Servlet to XSL possible?

2002-01-23 Thread David Rosenstrauch
Vadim, I don't think that will work. The servlet will write (xml) directly to the http response's output stream, instead of sending the xml to a content handler (the pipeline) for transformation and eventual serialization. DR At 03:44 PM 1/23/02 -0500, you wrote: >Bob, > >Hey, stop right h

Re: Servlet to XSL possible?

2002-01-23 Thread David Rosenstrauch
Glad I could help Bob. Xalan approach certainly sounds do-able and (arguably) looks simpler. Drawbacks are: * that you're reinventing the wheel somewhat (after all, one of cocoon's core functions is to be a servlet that performs XSLT transforms) * you lose some of the architectural/conceptual

Re: XML parsing in XSP

2002-01-02 Thread David Rosenstrauch
Another option you can use to generate xml output from a string in an XSP page: Use . It will parse the text that you pass in to it, and generate SAX calls from it (as opposed to writing the text straight to the output - after escaping all the control chars - like it's doing now). 1) Include

Re: sql query

2002-01-02 Thread David Rosenstrauch
At 12:48 PM 12/28/01 +0100, you wrote: >I'm using cocoon2, and I've used sql queries, with the next query: > > >http://apache.org/cocoon/SQL/2.0"; > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> > > > > http://apache.org/cocoon/SQL/2.0";> > > select id,numero,url

Re: Cocoon2 & mySQL database update query with success/failure differentiation

2001-12-26 Thread David Rosenstrauch
Try using: DR At 05:42 PM 12/26/01 +0100, you wrote: >Hello everybody, > >I have the following problem and for me it is hard to tell where the reasons are: > >I am trying to send an insert query to mySQL from an XSP-Page processed by >Cocoon 2. > >If successful the resultpage shall

Re: how include symbols like <,& into XSP code?

2001-12-26 Thread David Rosenstrauch
use either: if(a!=b && b!=a) {a=b;}; or: DR At 07:10 PM 12/26/01 +0300, you wrote: >I'm have some problem >When i include some lymbols (like &,<) into XSP page like: > > if(a!=b && b!=a) {a=b;}; > >his doesn't work >Does anybody have any ideas what I'm doing wrong? >Thanx. >yuryx --

Re: how can a bean access the XML data

2001-12-26 Thread David Rosenstrauch
MyBean myBean = new MyBean(); myBean.setXXX("test"); String s = myBean.getYYY(); s DR At 10:39 PM 12/25/01 +0530, you wrote: >Hi, > >Using Cocoon 1.8 I am calling an xml page. On the click of a button I wish to cal

Re: cocoon question

2001-12-24 Thread David Rosenstrauch
Maybe you need a sub-sitemap for the stuff in the sub-directory. Take a look at the example included with Cocoon that demonstrates mounting a sub-sitemap. DR At 09:21 AM 12/24/01 -0500, you wrote: >Hello >First, the background: Tomcat 3.3, Cocoon 1.8.2, Apache 1.3.22 > >I've encoundered an o

RE: How do I add objects to the objectModel Map

2001-12-21 Thread David Rosenstrauch
At 08:13 AM 12/21/01 -0500, you wrote: >Is there any way *short* of a custom action to set response headers just >prior to serialization? All I wish to do is to adjust response headers to >promote short-term cacheing by an HTTP proxy (i.e., I need to set the >Expires header to a date-time some arb

RE: How do I add objects to the objectModel Map

2001-12-20 Thread David Rosenstrauch
At 10:15 PM 12/20/01 +, you wrote: >I only want to instantiate my menu/arealogic class once so, no, not a >generator/transformer; more *like* a generator/transformer, ie at the same >time as the section. >kinda like: > > method="newfromfile" data="/areamap.xml" poolsize="10"/> > > > > > I s

Re: [Best Practices] 2nd Request

2001-12-20 Thread David Rosenstrauch
Hi Carlos. Saw your original message a while back, and it's been on my to-do list to write back to you with a contribution. Been a bit swamped installing a new system though (running Cocoon, btw) and haven't had a chance to write back yet. Will try to bump you up on the priority list and take

Re: Can a Transformer include multiple HTML documents?

2001-12-20 Thread David Rosenstrauch
I would guess you can do it in an XSP page. DR At 08:16 AM 12/20/01 +0100, you wrote: >On Thursday 20 December 2001 08:05, Bartomeu Adrover wrote: > > Hello, my idea is: create "n" pipelines that acces to the url's and get > > html documents into xhtml. After that create an pipeline that inclu

RE: How do I add objects to the objectModel Map

2001-12-20 Thread David Rosenstrauch
I've never used the velocity generator before so I may be off-base. But IIUC ... I don't think you generally add objects into the map. Rather, the map comes pre-populated with objects that your code needs: request, response, etc. e.g.: public class YourGenerator extends ComposerGenerator {

Re: Translating XML from memory instead of disk

2001-12-20 Thread David Rosenstrauch
Since your requirement is only "create an HTML report from data stored in a database" I guess I'd suggest not creating an XML document in memory as that can be a bit of a space hog and inefficient. I'd prefer sticking with the SAX model that C2 uses. So in that spirit, I'd recommend this: 1)

Re: hdml

2001-12-20 Thread David Rosenstrauch
t; > From: Adam Ambadas <[EMAIL PROTECTED]> > > > > > > > To: <[EMAIL PROTECTED]> > > > > > > > Sent: Thursday, December 20, 2001 7:20 PM > > > > > > > Subject: Re: hdml > > > > > > > > > > &g

Re: hdml

2001-12-20 Thread David Rosenstrauch
Maybe something like this, then: my name is santhosh<> DR At 07:00 PM 12/20/01 +0530, you wrote: >Hi Adams, > >Thanx for you reply, > >I am using TextFormatter. What it will do is whatever the text inside the >main element it will send as it is. > >for example > > >my name is santhosh<> >

Re: hdml

2001-12-20 Thread David Rosenstrauch
Don't put the content inside CDATA. DR At 04:14 PM 12/20/01 +0530, you wrote: >Hi > >Currently i am working in cocoon technologies. I am writing a stylesheet >for hdml with putting contents inside CDATA. But the problem here is if >characters like "<" or ">" comes in xml the textformatter w

Re: Question about XSLT parameters

2001-12-20 Thread David Rosenstrauch
Yes. Do it like this: Then, in your XSL, do this: http://www.w3.org/1999/XSL/Transform"; > Now the parameter is available everywhere in your stylesheet by referencing "$parm". DR At 11:02 AM 12/20/01 +0100, you wrote: >I'm working in web development and I'm trayin

RE: org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available.

2001-12-20 Thread David Rosenstrauch
http://xml.apache.org/cocoon/mail-archives.html DR At 03:27 PM 12/19/01 -0800, you wrote: >Hello all, > >I'm getting hundreds of emails everyday from cocoon user mailing list and therefore >my inbox was run out of space. I understand that these messages are valuable when I >have a problem

Re: accessing xml elements in xsp

2001-12-19 Thread David Rosenstrauch
Dunno if this will work for you but often what I do is generate my xsp page dynamically (at compile time, using Ant; not at run time with Cocoon) as the result of applying an XSL sheet to an XML document. So basically you'd start with an XML document like this: > > >

Re: xsp without stylesheet?

2001-12-19 Thread David Rosenstrauch
Actions have access to the HTTP request, and therefore the request parms. Put the following code in: import org.apache.cocoon.environment.Redirector; import org.apache.cocoon.environment.SourceResolver; import java.util.Map; import org.apache.avalon.framework.parameters.Parameters; import org.a

Re: REQ: XSP in a stylesheet help

2001-12-19 Thread David Rosenstrauch
At 10:17 AM 12/19/01 -0500, you wrote: >I figured I'd just use XSP inside of my stylesheet, but all >I've accomplished so far is a literal printout of what is in between the > tags. That's correct. * An XSP page gets executed in the map:generate step. * An XSL stylesheet gets executed in the m

Re: xsp without stylesheet?

2001-12-19 Thread David Rosenstrauch
As I wrote before: >If all you were trying to do is execute some arbitrary java code before you do a >redirect, then an XSP page is not the thing to use. It sounds like that is all you are trying to do. You are not trying to generate XML content for a pipeline to process and serialize. So u

Re: xsp without stylesheet?

2001-12-19 Thread David Rosenstrauch
Can you clarify what you're trying to do? Are you trying to execute some java code and then redirect to a new url? If so, then why not try this: ... If all you were trying to do is execute some arbitrary java code before you do a redirect, then an XSP page is not th

Re: [c1] java.lang.NoClassDefFoundError with custom class?

2001-12-14 Thread David Rosenstrauch
Loose classes go in WEB-INF/classes. Jar files go in WEB-INF/lib. If your code is in a jar file then you put it in the wrong place. DR At 12:29 PM 12/14/01 -0500, you wrote: >I'm running Cocoon 1.8.2 and I've just upgraded from Tomcat3.x to Tomcat4.0.1. >According to Tomcat's documentation

RE: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-14 Thread David Rosenstrauch
ow was applied to 20-branch) >which should solve your problem. > >See >http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=100827658927876&w=2 >for details. > >Wolfram > > > -Ursprüngliche Nachricht- > > Von: David Rosenstrauch [mailto:[EMAIL PROT

Re: Help needed with debugging XSP

2001-12-14 Thread David Rosenstrauch
Note: This response contains C2 terminology (e.g., "transformer", "serializer"). You'll have to convert to C1 terminology yourself. Some options: 1) Insert a log transformer after the XSP page. That will output the SAX events from the XSP page to a log file. 2) Instead of running the XSLT,

Re: forward to a other page

2001-12-13 Thread David Rosenstrauch
Or use the sitemap to redirect. DR At 09:56 AM 12/13/01 -0200, you wrote: >Try to use the XSP redirect instead of a meta redirect. > >Regards... > >rgi wrote: > > > > Hello cocoon-users, > > > > I have a page with input fields. I a other xsp page I write this > > fields in a database. th

Re: [Best Practices] Initial request

2001-12-12 Thread David Rosenstrauch
Great idea Carlos! I've definitely got some input for you. Will email you as soon as I get a spare minute. DR At 08:05 AM 12/12/01 -0800, you wrote: >Good morning: > >I am working on putting together a document about Cocoon's best practices >and am soliciting your help. I'd like to know: > >

Re: [Serializer] Get request and parameters?

2001-12-12 Thread David Rosenstrauch
It doesn't look like it to me. FYI - one workaround that I've used for this is to stick an Action right before the serializer. The action gets passed the objectModel (which contains the request object) and can therefore do the work you want. e.g.: DR At 11:00 AM 12/12/01 +0100, you

RE: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-12 Thread David Rosenstrauch
>exactly made your matcher to be invoked twice). > >Best wishes, >Nick > > > -Original Message- > > From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, December 12, 2001 12:01 AM > > To: [EMAIL PROTECTED] > > Subject: RE: XSP pa

Re: FAQ - How do I hide "cocoon" in the URL

2001-12-11 Thread David Rosenstrauch
What they're referring to in the FAQ is that, by default, all URL's contain "cocoon" in them, since usually cocoon resides in a "cocoon" sub-dir under, say, Tomcat. They provide directions how to take "cocoon" out of the URL. I'm not sure what you're asking though. What part of the URL are yo

RE: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-11 Thread David Rosenstrauch
12/11/01 -0800, you wrote: >Have you tried modifying the code to print a stack trace with each >invocation? This might help isolate the source of each call. > >-Mitch > >-Original Message- >From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, December 11,

RE: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-11 Thread David Rosenstrauch
the second time to get the data. > >I'm way too new to this whole arena to see how this could be applied to xsp >processing but it is as close as I've got to an idea, I'm afraid. > >HTH > >Jon >-Original Message- >From: David Rosenstrauch [<mai

Re: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-11 Thread David Rosenstrauch
I posted this a couple of times here, as well as once to the Dev list. No one's written back with any suggestions so far. I hope y'all don't mind, but I'd like to post this one more time. It's really stumping me! Please help! == Anyone have a

Re: How best to incorporate xml from a string into XSP

2001-12-10 Thread David Rosenstrauch
Someone else had this same problem recently. Use . It will parse the text that you pass in to it, and generate SAX calls from it (as opposed to writing the text straight to the output - after escaping all the control chars - like it's doing now). 1) Include the namespace xmlns:util="http://ap

RE: AW: XSLT transformations with Cocoon

2001-12-10 Thread David Rosenstrauch
At 05:51 PM 12/10/01 +0100, you wrote: >Are you sure IE doesn't put its hands on text files? We'll try it out >tomorrow, I'll tell you the outcome. Actually, no I'm not sure. It was just an "off-the-top-of-my-head" suggestion. The download suggestion, however does work. I'm using it in my own

Re: AW: XSLT transformations with Cocoon (added clearer formulation)

2001-12-10 Thread David Rosenstrauch
rong >documentation, non-working functions or functions working under some very >specific conditions. Is the state of realization of XML2XML with Cocoon [2] >satisfactory under this aspect? Or would anybody advise me to use rather a >different processor? > >Thanks for your answer(s) i

Re: XSLT transformations with Cocoon

2001-12-10 Thread David Rosenstrauch
I'm not sure I understand your question, so I'll try to answer as best I can: * Is it possible to use cocoon to do an XSLT transformation with the output being XML? Yes. * Is it possible to use cocoon to do an XSLT transformation with the output being HTML? Yes. * Is it possible to

Re: AW: SVG Resizing

2001-12-10 Thread David Rosenstrauch
At 12:44 AM 12/10/01 +0100, you wrote: >2. Write your own action which puts the parameter to the sitemap params. FYI - I just happened to discover the other day, that there's a pre-written action that will do this for you. DR --

Re: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-10 Thread David Rosenstrauch
Anyone have any thoughts on this? What could cause an XSP page to get called twice in the same request? Tnx! DR At 12:07 PM 12/7/01 -0500, you wrote: >Actually, regarding the setup below (which I mentioned in another message), I'm >having a problem with it and would appreciate some help. > >

Re: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-07 Thread David Rosenstrauch
Anyone have any thoughts on this? What could cause an XSP page to get called twice in the same request? Tnx! DR At 12:07 PM 12/7/01 -0500, you wrote: >Actually, regarding the setup below (which I mentioned in another message), I'm >having a problem with it and would appreciate some help. > >

XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-07 Thread David Rosenstrauch
Actually, regarding the setup below (which I mentioned in another message), I'm having a problem with it and would appreciate some help. Take a look at the sitemap segment below. And let me clarify it a bit too: The XSL stylesheet that I'm using in the transform on "pd/mergedoc.html" is genera

Re: Starting up a second time...

2001-12-07 Thread David Rosenstrauch
Some kinda problem with hsqldb. shutdown, delete "cocoondb.backup", restart, and everything should be fine. We should have an FAQ for this somewhere. DR At 01:23 PM 12/7/01 +, you wrote: >Hi, > >Cocoon (2.0) starts up first time ok after I have built it. But whenever I >shutdown Tomcat

Re: Pipeline dependencies

2001-12-07 Thread David Rosenstrauch
It is possible. I'm using that in my site: DR At 12:22 PM 12/7/01 +0100, you wrote: >- Original Message - >From: "Nick Entin" <[EMAIL PROTECTED]>

Re: Assign resut value from a tag to a variable

2001-12-06 Thread David Rosenstrauch
I'm not aware of any such tag as "xsp:variable". You can however, just use xsp:logic sections. e.g.: String contenido = ; DR At 07:57 PM 12/6/01 +0100, you wrote: >How can I assing the value from name="contenido"/> to my variable. > >It not works: > > > > >Can I assign the

Re: Request attributes?

2001-12-06 Thread David Rosenstrauch
At 02:17 PM 12/6/01 -0500, you wrote: >I agree with you. I wasn't specific enough in my prose as to what I meant by >"approach" (meaning storage in request attribute NOT session). Thanks for >your clarification and sorry for any confusion. > >Diana Whoops! Misunderstood. I had thought you mean

RE: Weird output-SUCCESS!

2001-12-06 Thread David Rosenstrauch
At 10:11 AM 12/6/01 -0800, you wrote: >I suppose that it is left as an excercise for the reader to explain why XSLT >chokes in this fashion on this input. > >-Mitch That makes some sense, actually: The FileGenerator is probably putting the element name into both local and qname, while your cus

RE: Weird output

2001-12-06 Thread David Rosenstrauch
> value="http://stargazer/tamino/microwarehouse/"/> > > > > > > > > > > I save the XML generated here to disk, and use this pipe... > > > > > > > > > > > > > > > > a

RE: Weird output

2001-12-06 Thread David Rosenstrauch
/"/> > > > > >I save the XML generated here to disk, and use this pipe... > > > > > > > >and get nicely formatted HTML. > >-Original Message- >From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] >Sent: Thursday, December 06, 2001 9

Re: Weird output

2001-12-06 Thread David Rosenstrauch
Could it be that it's calling the default serializer, and that in your case that is the text serializer? Either change the default serializer to be the HTML serializer, or explicitly call the HTML serializer (with ). HTH. DR At 09:01 AM 12/6/01 -0800, you wrote: >Hi, > >I have the followin

RE: Installing Coccon 2

2001-12-06 Thread David Rosenstrauch
Some kinda problem with hsqldb. shutdown, delete "cocoondb.backup", restart, and everything will be fine. DR At 02:15 PM 12/6/01 +, you wrote: >Thanks, > >I now unfortunately have this error: > >Server.run/init: java.sql.SQLException: File input/output error: >C:\tomcat\webap >ps\cocoon\W

Re: Request attributes?

2001-12-06 Thread David Rosenstrauch
At 08:52 AM 12/6/01 -0500, you wrote: > > Temporary storage (and passing of vars down the chain) is precisely what I > > use the attribs for. Here's a bit of code for sending an id to another > > object via the Request object: > > > > req.setAttribute("jbxsp-id",instanceId); > > instance.setReq(r

Re: Cocoon2 Cookie Recipe?

2001-12-06 Thread David Rosenstrauch
I don't know much about the cookie stuff, but if your namespace declaration is xmlns:xsp-response="http://apache.org/xsp/response/2.0";, then your xml should look like: DR At 10:11 AM 12/6/01 +0100, you wrote: >I'm trying to have Cocoon2 set cookies. >On the devel list I found this examp

Re: Request attributes?

2001-12-06 Thread David Rosenstrauch
Yup. Some other people wrote the same. Exactly what I needed (I need to pass something from an action along to a xsp page further down the pipeline) and it works perfectly. Thanks! DR At 09:43 AM 12/6/01 +, you wrote: >Hi David, > >Temporary storage (and passing of vars down the chain)

RE: Cocoon's capacity

2001-12-05 Thread David Rosenstrauch
That certainly is do-able: http://apache.org/xsp"; language="java"> java.util.Date private void yourMethod(Date d) { } Make sure you put the method outside of (before or a

RE: Request attributes?

2001-12-05 Thread David Rosenstrauch
gt;Request attributes are indeed used for storage of your own objects, >particularly when forwarding the request for further processing. > >WBB >-Original Message- >From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] >Sent: 05 December 2001 17:14 >To: [EMAIL PROTECT

Request attributes?

2001-12-05 Thread David Rosenstrauch
A bit confused. Looking at org.apache.cocoon.environment.Request (basically it's just a ServletRequest object). I see that a Request has both parameters and attributes. I know what request parameters are. These are the form values in your HTML form that get submitted to the servlet. But wha

Re: Cocoon ignoring xsl:output ident?

2001-12-05 Thread David Rosenstrauch
At 01:02 AM 12/5/01 +0100, you wrote: >In the default-sitemap there are a few examples: > > > src="org.apache.cocoon.serialization.HTMLSerializer"> > -//W3C//DTD HTML 4.01//EN > >http://www.w3.org/TR/html4/strict.dtd > iso-8859-1 > > > >Like encoding is specified here, eve

Re: Antwort: RE: Calling C2 from command line: problem with Oracle driver

2001-12-05 Thread David Rosenstrauch
At 08:49 PM 12/4/01 +0100, you wrote: >My question is: > >I want to call Cocoon2 from then command line WITHOUT Tomcat. A number of people have asked about how to do this, and I'm just curious: Why would you want to run Cocoon without Tomcat? What can Cocoon do without a servlet engine? DR

Re: XML include for masthead and navigation

2001-12-05 Thread David Rosenstrauch
The way I do is to just have each page use a root element. Then my XSL translates to add a standard header/footer on each page. e.g.: HTH. DR At 11:13 AM 12/4/01 -0700, you wrote: >I know that this list is for Cocoon specific questions but with so many opt

Re: Cocoon ignoring xsl:output ident?

2001-12-04 Thread David Rosenstrauch
Thanks for the RTFM! :-) But how does this work in C2? Thanks! DR At 08:22 PM 12/4/01 +0100, you wrote: >http://xml.apache.org/cocoon1/faqs.html#faq-xsloutput > >Regards, > >Joerg > > > > But Cocoon seems to be ignoring the . All of >the output is coming out on the same line. > > > > Ideas

Cocoon ignoring xsl:output ident?

2001-12-04 Thread David Rosenstrauch
Having a problem. My stylesheet starts with: http://www.w3.org/1999/XSL/Transform"; xmlns:xalan="http://xml.apache.org/xslt"; > But Cocoon seems to be ignoring the . All of the output is coming out on the same line. Ideas? Suggestions? Do I need to somehow tell cocoon to

Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-04 Thread David Rosenstrauch
At 10:41 AM 12/4/01 +0100, you wrote: >If my question is somehow incomplite or unclear, tell me what is >wrong with it. > >It is very important to me to know why it is not working. > >help, help, > > hubert. Hi Hubert. Your previous question was a little unclear, but I'll try my best to

Re: MS SQL Server JDBC and Cocoon Connection Pool

2001-12-04 Thread David Rosenstrauch
At 09:56 AM 12/4/01 +0100, you wrote: >Hi, > >i think about (..ok...i am forced to think about) to use the >MS-SQL-Server. >Surprisingly i didnt find any post in this mailinglist which deals with this >challenge. >So my questions: >How do i connect to this MS-Sql-Server by using JDBC and the

Re: get the file creation/modification date ???

2001-12-03 Thread David Rosenstrauch
I can't speak for everyone else, but as for me I didn't respond because I didn't understand your question. You're asking about info on how to find when the file was last modified. As we all know, the java.io.File class provides this functionality, via the "lastModified()" method. So you can

Re: [C2rc2] Attempted to process incomplete pipeline

2001-11-30 Thread David Rosenstrauch
I think this is the problem: You declare the match pattern as "tester-1.xsp*". But then you refer to it in the aggregation as "cocoon:/tester-1.xsp" (no asterisk). Perhaps cocoon isn't able to make the connection that these are the same. Maybe you can try it with "cocoon:/tester-1.xsp*". Du

Re: XSP

2001-11-30 Thread David Rosenstrauch
Try these too: http://www.plenix.com/xsp/doc/xsp-primer.html http://www.intranetjournal.com/articles/27/jxml5.html http://www.onjava.com/pub/a/onjava/2001/02/22/jsp_servlets.html And of course the apache working draft for xsp (they're trying to turn it into a standard, and not just for java

Re: MySQL, C2, Tomcat 4.0.1, win2k/xp

2001-11-27 Thread David Rosenstrauch
Don't know if you're still having problems with this or not. I'm using MySql, C2, and Tomcat 4.0 Not much to it: * Start the MySql daemon * Start Tomcat * Put this into my XSP page: org.gjt.mm.mysql.Driver jdbc:mysql://localhost:3306/_your_app_

Re: L&F: passing parameters to resource

2001-11-27 Thread David Rosenstrauch
I think this works: Haven't tried it though. Email back if I'm wrong. DR At 01:22 PM 11/27/01 -0500, you wrote: >Is there any way to pass parameters to resource from redirect-to point

Re: Cocoon or Tomcat with Servlets/Taglibs?

2001-11-27 Thread David Rosenstrauch
At 11:38 AM 11/27/01 -0600, you wrote: >...not to mention Cocoon loads a lot of libraries I'll never use but that >Cocoon depends on, like Batik, which Java 1.4 can do without. You might want to do what I've done: I've set up a separate dir for my app - separate from my /cocoon directory - and

Re: Cocoon or Tomcat with Servlets/Taglibs?

2001-11-27 Thread David Rosenstrauch
Some comments ... At 11:35 AM 11/27/01 -0600, you wrote: >I'm just trying to figure out if I should take the time and create a >huge sitemap with all the functionality I want I can understand that. You want to make sure there's enough of a benefit before you put in the work. >I've also loo

Re: Cocoon or Tomcat with Servlets/Taglibs?

2001-11-27 Thread David Rosenstrauch
I guess another way to look at it is: what is cocoon well suited for, and what is it less well suited for? From that perspective, you might want to use cocoon if: * you need to serve the same content, but on different devices. Cocoon is good at dynamically generating the presentation you ne

Re: [c2] How to stop on generation errors ?

2001-11-27 Thread David Rosenstrauch
I'd suggest using Xalan directly for this instead of Cocoon then. Ant has a "style" action, which is used to call an XSLT transformer (usually Xalan). The style action works properly with Ant and does what you want (i.e., terminating the build if an error occurs). I use this in my project to g

Re: including xml dynamically from a string

2001-11-27 Thread David Rosenstrauch
Someone else had this same problem recently. Use . It will parse the text that you pass in to it, and generate SAX calls from it (as opposed to writing the text straight to the output - after escaping all the control chars - like it's doing now). 1) Include the namespace xmlns:util="http://ap

RE: Accepting Data From The Web and storing it.

2001-11-20 Thread David Rosenstrauch
fig.xml per user and just completely re-write it when needed. DR At 10:25 PM 11/20/01 +, you wrote: >Apologies my point was that I want users to be able to enter a code >themselves which would then become permanent. > >-----Original Message- >From: David Rosenstrauch [mail

Re: Accepting Data From The Web and storing it.

2001-11-20 Thread David Rosenstrauch
I imagine you'd have to write some custom code - most likely an Action object I would guess - that gets executed when they submit the form. The Action would have to manually re-write that file with the new color info. One thing that might be helpful is to have a separate XML file with just the

Re: problems with a logicsheet

2001-11-20 Thread David Rosenstrauch
Generally the way I do logicsheets and XSP is as follows: * start with a regular XML document * run a logicsheet against it, to add logic for certain tags in the XML. Result is an XSP page. This is done at compile time, outside of Cocoon (i.e., using Ant and Xalan). * The XSP page is execute

RE: [c2] Lost in sub-folders

2001-11-20 Thread David Rosenstrauch
Well I'm assuming that this will work, since it explicitly covers all the bases. Start with this and then scale back, removing what you don't need. DR At 09:40 PM 11/20/01 +0900, you wrote: >

Re: Corrocean.com - new Cocoon 2 site ready for the live site list

2001-11-19 Thread David Rosenstrauch
At 07:33 AM 11/19/01 -0500, you wrote: >Nice clean european design without decorative excesses. OK >In contrast, american designers don't know where to stop. Well, alright ... >Something like that can not be achieved without strong educational system in >country/continent in question.

Re: Sitemap Substitution Vars

2001-11-19 Thread David Rosenstrauch
Yes. ... Check here for more info: http://xml.apache.org/cocoon2/userdocs/concepts/matchers_selectors.html At 08:15 PM 11/18/01 -0600, you wrote: >I know it is possible to have one substitution variable for a matched pattern >as in the following: > > ... > > >But, is it possible to

Re: how to get Cocoon to work in Tomcat

2001-11-19 Thread David Rosenstrauch
RTFM. Go to http://xml.apache.org/cocoon2/installing/index.html Read the section entitled "Installing on Tomcat 3.X" DR At 12:16 PM 11/17/01 +0800, you wrote: >Hi > >I have got Tomcat running with IIS 5. Now I want to make Cocoon work under >Tomcat, either as a servlet or at the core servlet

RE: XSP namespace question

2001-11-16 Thread David Rosenstrauch
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > > > > > > > >type="text/xml" > > > > > > > > -Original Message- > > From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] > > Sent: Friday, November

Re: Xalan and xsl:sort speed by type

2001-11-16 Thread David Rosenstrauch
Not answering your question, but just FYI ... If this is data that's being retreived from a database, then my thinking would be to avoid xsl:sort completely if possible. I'd rather do sorting in the database using a SQL statement (SELECT ... ORDER BY ...) since it's probably better optimized f

Re: Helper class import in logicsheet?

2001-11-16 Thread David Rosenstrauch
At 10:59 AM 11/16/01 +, you wrote: >I've written a logicsheet and want to move some of the processing into a > >helper class. > >My problem is that the generated java for the xsp using the logicsheet >does not include an import for the helper class and so it fails to >compile. > >Can anyone te

Re: XSP namespace question

2001-11-16 Thread David Rosenstrauch
t;If this doesn't work (because you only copy the node), try >name="{name()}"> instead of . It gives the same result. With > > it's much more difficult. > > > >But the first hint should already work. > > > >Joerg > > > >- Origi

Re: XSP namespace question

2001-11-16 Thread David Rosenstrauch
, try name="{name()}"> instead of . It gives the same result. With > it's much more difficult. > >But the first hint should already work. > >Joerg > >- Original Message - >From: "David Rosenstrauch" <[EMAIL PROTECTE

XSP namespace question

2001-11-16 Thread David Rosenstrauch
Given an xsp page like this: http://apache.org/xsp"; language="java" > Cocoon seems to be giving me output like this: http://apache.org/xsp"/> Is it necessary though that the namespace declaration get copied to the output? It's certainly not necessary any longer once the X

Re: AW: AW: Tag ?

2001-11-16 Thread David Rosenstrauch
an't find a >working example for map:select. What means test=""? > >Heiko > > >-Ursprüngliche Nachricht- >Von: David Rosenstrauch [mailto:[EMAIL PROTECTED]] >Gesendet: Freitag, 16. November 2001 03:00 >An: [EMAIL PROTECTED] >Betreff: Re: AW: Tag ? >

Fwd: Sitemap variables?

2001-11-15 Thread David Rosenstrauch
Just curious - was there ever an answer to my original question: Is it possible to set variables in the sitemap? Thanks, DR >Date: Wed, 14 Nov 2001 14:24:28 -0500 >To: [EMAIL PROTECTED] >From: David Rosenstrauch <[EMAIL PROTECTED]> >Subject: Sitemap variabl

Re: Fwd: Sitemap variables?

2001-11-15 Thread David Rosenstrauch
At 12:17 AM 11/15/01 +0100, you wrote: >On Wed, 14 Nov 2001, David Rosenstrauch wrote: > > > Also, is it just me or is the flow control in sitemaps really weak? > >Yes, this has been recognized and discussion about it are still going on >on the dev list. If you're intere

Re: Sitemap variables?

2001-11-15 Thread David Rosenstrauch
Very interesting. Thanks for the info, Konstantin. DR At 11:45 AM 11/15/01 +0300, you wrote: >For a more flexible flow control you can use selectors: >http://xml.apache.org/cocoon2/userdocs/selectors/selectors.html > >Personally, I don't like selectors' syntax and prefer the Struts's version

Re: AW: AW: Cocoon: Few steps in sitemap?

2001-11-15 Thread David Rosenstrauch
ere? > >We use tex as we generate tables, not text, and tex seems to be easier >as fo in formatting, as tables concerns. > >What do you think about it? >Thanks! >Regards, >Viktor > > > >-Ursprüngliche Nachricht- >Von: David Rosenstrauch [mailto:[EMAIL

Re: AW: Tag ?

2001-11-15 Thread David Rosenstrauch
At 06:01 PM 11/15/01 +0100, you wrote: >Thanks, > >I solved the problem inside the sitemap with a action class. >But maybe you know a more easier way to control workflow within a xsp- file. >Is there somthing like ""? > >Heiko ... ... ---

Re: Transformers vs. Generators

2001-11-15 Thread David Rosenstrauch
Also make sure that you declare this new transformer in your sitemap. DR At 09:13 PM 11/15/01 +0100, you wrote: >Peter, exactly where had you put your own Transformers? I've tried to put it >in my own package (not in org.apache.cocoon.transformation), jar-ed it >correctly, dropped the jar into

RE: Stylesheets using Logicsheets

2001-11-15 Thread David Rosenstrauch
At 06:49 PM 11/15/01 +0100, you wrote: >Hi everybody, > > >We see a lot of you are working with logicsheet. We alse are itching for a go, but >are not succeeding at all. It's true we're newbies in the Cocoon world, but are >resolving a lot of things and hope to be able using logicsheet soon.

  1   2   >