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: 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: 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 here to put us

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: ?xml version=1.0? page xmlns:sql=http://apache.org/cocoon/SQL/2.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; title/title content para/para execute-query

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 util:include-expr. 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

Re: how can a bean access the XML data

2001-12-26 Thread David Rosenstrauch
xsp:logic MyBean myBean = new MyBean(); myBean.setXXX(test); String s = myBean.getYYY(); !-- write your tag and the value of variable s to the output -- your_tag xsp:exprs/xsp:expr /your_tag /xsp:logic DR At 10:39 PM

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

2001-12-26 Thread David Rosenstrauch
Try using: esql:error-results esql:get-message/ /esql:error-results 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

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 odd

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

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: Question about XSLT parameters

2001-12-20 Thread David Rosenstrauch
Yes. Do it like this: map:transform src=page.xsl map:parameter name=parm value=parm_val/ /map:transform Then, in your XSL, do this: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=parm/ Now the parameter is

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 will send

Re: hdml

2001-12-20 Thread David Rosenstrauch
Maybe something like this, then: ![CDATA[ hdml ]] my name is santhoshhegde ![CDATA[ /hdml ]] 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

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: 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: 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 include all

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

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: map:action name=your_action src=com.yourpackage.yourclass / ... map:match pattern=your_pattern map:act

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

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 xsp:expr tags. That's correct. * An XSP page gets executed in the map:generate step. * An XSL stylesheet gets executed in

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

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: frame sitemap

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: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-14 Thread David Rosenstrauch
to 20-branch) which should solve your problem. See http://marc.theaimsgroup.com/?l=xml-cocoon-devm=100827658927876w=2 for details. Wolfram -Ursprüngliche Nachricht- Von: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Gesendet am: Mittwoch, 12. Dezember 2001 17:49 An: [EMAIL PROTECTED

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-12 Thread David Rosenstrauch
). 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 page getting called TWICE! (was: Pipeline dependencies) I did. From the trace, it seems like

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.: map:act type=set_download/ map:serialize

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: XSP page getting called TWICE! (was: Pipeline dependencies)

2001-12-11 Thread David Rosenstrauch
and 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 [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED

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, 2001 7:37 AM To: [EMAIL

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 you

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: 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. map:action name=request

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.map:serialize type=xml/ * Is it possible to use cocoon to do an XSLT transformation with the output being HTML? Yes.

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

2001-12-10 Thread David Rosenstrauch
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) in advance, Matthias -Original Message- From: David Rosenstrauch [mailto:[EMAIL

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: How best to incorporate xml from a string into XSP

2001-12-10 Thread David Rosenstrauch
Someone else had this same problem recently. Use util:include-expr. 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

Re: Pipeline dependencies

2001-12-07 Thread David Rosenstrauch
It is possible. I'm using that in my site: map:pipeline map:match pattern=pd/mergedoc.html map:generate src=_thesource_/ map:transform src=cocoon:/rtf_merge_data/ map:serialize type=html/ /map:match /map:pipeline

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

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.

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: 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: xsp-response:add-cookie /xsp-response:add-cookie DR At 10:11 AM 12/6/01 +0100, you wrote: I'm trying to have Cocoon2 set

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(req); Up to

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

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 custom

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 meant

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.: xsp:logic String contenido = xsp-request:get-parameter name=contenido/; /xsp:logic DR At 07:57 PM 12/6/01 +0100, you wrote: How can I assing the value from xsp-request:get-parameter

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

RE: Request attributes?

2001-12-05 Thread David Rosenstrauch
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 PROTECTED] Subject: Request attributes? A bit confused

RE: Cocoon's capacity

2001-12-05 Thread David Rosenstrauch
That certainly is do-able: xsp:page xmlns:xsp=http://apache.org/xsp; language=java root /root xsp:structure xsp:includejava.util.Date/xsp:include /xsp:structure xsp:logic private void yourMethod(Date d) {

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 Cocoon

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 help.

Cocoon ignoring xsl:output ident?

2001-12-04 Thread David Rosenstrauch
Having a problem. My stylesheet starts with: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xalan=http://xml.apache.org/xslt; xsl:output indent=yes xalan:indent-amount=4 / But Cocoon

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 xsl:output indent=yes All of the output is coming out on the same

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: 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

Re: including xml dynamically from a string

2001-11-27 Thread David Rosenstrauch
Someone else had this same problem recently. Use util:include-expr. 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

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

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

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

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: LF: passing parameters to resource

2001-11-27 Thread David Rosenstrauch
I think this works: map:match pattern=home map:generate src=content/xml/welcome.xml / map:redirect-to resource=transf map:parameter name=file value=welcome/ /map:redirect-to /map:match Haven't

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. map:match pattern= map:redirect-to uri=index.xml/ /map:match map:match pattern=*.xml map:generate src={1}.xml/

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

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

RE: Accepting Data From The Web and storing it.

2001-11-20 Thread David Rosenstrauch
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 [mailto:[EMAIL PROTECTED]] Sent: Tuesday 20 November

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: Sitemap Substitution Vars

2001-11-19 Thread David Rosenstrauch
Yes. map:match pattern=faq/*/*.html map:generate src=faq/{1}/{2}.xsp/ ... /map:match 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

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: AW: AW: Tag xsp-response:send-redirect url=.../?

2001-11-16 Thread David Rosenstrauch
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 xsp-response:send-redirect url=.../? At 06:01 PM 11/15/01 +0100, you wrote: Thanks, I solved

XSP namespace question

2001-11-16 Thread David Rosenstrauch
Given an xsp page like this: xsp:page xmlns:xsp=http://apache.org/xsp; language=java page name=abc/ /xsp:page Cocoon seems to be giving me output like this: page xmlns:xsp=http://apache.org/xsp/ Is it necessary though that the namespace declaration get copied to the

Re: XSP namespace question

2001-11-16 Thread David Rosenstrauch
xsl:element name={name()} instead of xsl:copy. It gives the same result. With xsl:copy-of select=.. it's much more difficult. But the first hint should already work. Joerg - Original Message - From: David Rosenstrauch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 16, 2001

Re: XSP namespace question

2001-11-16 Thread David Rosenstrauch
. With xsl:copy-of select=.. it's much more difficult. But the first hint should already work. Joerg - Original Message - From: David Rosenstrauch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 16, 2001 9:02 AM Subject: XSP namespace question Given an xsp page

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 tell me

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

RE: XSP namespace question

2001-11-16 Thread David Rosenstrauch
difficult. But the first hint should already work. Joerg - Original Message - From: David Rosenstrauch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 16, 2001 9:02 AM Subject: XSP namespace question Given an xsp page like

Re: AW: Cocoon: Few steps in sitemap?

2001-11-15 Thread David Rosenstrauch
Not sure I understand the problem. Why can't you do this? 1) write an xsp that outputs in xml the info you need to build the tex doc 2) write an xsl that outputs tex 3) write a new serializer that generates pdf by calling pdflatex 4) put the above 3 items in a pipeline and run them But why

Re: Outputting Plain Text

2001-11-15 Thread David Rosenstrauch
That's cause you're using the wrong serializer. Add this to your map:serializers: map:serializer name=text mime-type=text/plain src=org.apache.cocoon.serialization.TextSerializer/ Then do this in your pipeline: map:serialize type=text/ DR At 10:12 PM 11/14/01 +, you wrote: Dear

RE: Fwd: Sitemap variables?

2001-11-15 Thread David Rosenstrauch
Yeah, I noticed that after I wrote my message, and got that to work. Thanks! DR At 08:37 AM 11/15/01 +0100, you wrote: Hi, but to work around you can have a selector within the action, which influence the flow bassed on a comparsion of a sitemap parameter with value. HTH Max

Re: Cocoon: Few steps in sitemap?

2001-11-15 Thread David Rosenstrauch
Yes. 2 options: 1) If the user won't need to access the intermediate doc: map:serializer name=fo2pdf src=org.apache.cocoon.serialization.FOPSerializer mime-type=application/pdf/ map:match pattern=yourpage map:generate type=serverpages src=your.xsp/ map:transform

Re: Tag xsp-response:send-redirect url=.../?

2001-11-15 Thread David Rosenstrauch
XSP is not recognizing your tag, but taking it as text, most likely because of some syntax problem in your XSP. Can't debug it without more details though. Can you post the portion of XSP code where this appears and maybe we can figure it out? DR At 10:47 AM 11/15/01 +0100, you wrote: Hi,

Re: Serverpages ??

2001-11-15 Thread David Rosenstrauch
If you're referencing type=serverpages, then you have to define serverpages somewhere. e.g.: map:generator name=serverpages src=org.apache.cocoon.generation.ServerPagesGenerator label=content/ DR At 08:14 AM 11/15/01 -0800, you wrote: HI! I'm new with the xsp, and I'm trying to do the

Re: Transformers vs. Generators

2001-11-15 Thread David Rosenstrauch
Tough call. I'd say it depends. If customer-data/ is going to be replaced with John Brown, 40 Main St. then I'd say a transform. If customer-data/ is going to be replace with a large amount of other XML data (i.e., recordsrecordfield .../field ...//recordrecordfield .../field

Re: XSP-newbie / XSP gives blank page

2001-11-15 Thread David Rosenstrauch
Depends on your browser, but in mine (Netscape 6) I sometimes get a blank page when there's an error in my code. Check your log files. DR At 02:18 PM 11/15/01 -0800, you wrote: I want to chose between two XSP's based on a parameter. I have attached 3 XSP's, general_update.xml should choose

Re: Strange Netscape Behavior

2001-11-15 Thread David Rosenstrauch
Maybe you're outputting as unicode instead of ascii and Netscape is mucking it up somehow. Try ?xml version=1.0? or ?xml version=1.0 encoding=UTF-8? DR At 04:14 PM 11/15/01 +0100, you wrote: Hi, I've got some trouble using Netscape. First I made a page and just used Iexplorer. Everyting

Re: Help with Generators

2001-11-15 Thread David Rosenstrauch
At 06:50 AM 11/15/01 -0800, you wrote: Hi, A couple of quick questions. When I include java files inside a xsp:structurexsp:include//xsp:structure, where should I put the jar files? I know that they are discovered if place them in ${TOMCAT_HOME}/lib, but I am having problems with name

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. The

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: AW: Tag xsp-response:send-redirect url=.../?

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 xsp:if/? Heiko map:select map:when test= ... ... /map:when

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

2001-11-15 Thread David Rosenstrauch
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 PROTECTED]] Gesendet: Donnerstag, 15. November 2001 13:17 An: [EMAIL PROTECTED] Betreff: Re: AW: Cocoon: Few steps in sitemap

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 interested have a look there and help

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 variables? X-Spam-Rating: daedalus.apache.org

Re: Blanc Screen 2

2001-11-14 Thread David Rosenstrauch
The code you pasted contains XML reserved chars (, , , /, etc.) and therefore the xsp page can no longer be parsed properly. DR At 01:08 AM 11/14/01 +0100, you wrote: I just found the following in my cocoon log: WARN(2001-11-14) 01:04.43:955 [cocoon ]

Re: SV: SV: SV: SAX tree?

2001-11-14 Thread David Rosenstrauch
At 08:35 AM 11/14/01 -0800, you wrote: If I return a stream/string of ACSII XML data to C2, it works just fine on the first URL I call (no matter how many times i call it), but if I call another URL which doest EXCATLY the same as the first (same logicsheet, same namespace) it dosn't work.

Re: It works :)

2001-11-14 Thread David Rosenstrauch
Glad to hear everything's working, Søren! DR At 10:29 AM 11/14/01 -0800, you wrote: Hi everybody Just as depressed I was yesterday, just as happy am I today :) Everything works just fine now. I pass C2 a DOM node, I have been doing this for some time now but I passed C2 subclass of the DOM

Re: QUESTION on how to dynamically pass XSLT from the generator to a transformet

2001-11-14 Thread David Rosenstrauch
There's an unrelated FAQ question that might help your problem too: How do I create some content which isn't directly visible to everyone? Put the content in an internal pipeline... map:pipelines map:pipeline internal-only=true map:match pattern=int map:generate src=docs/description.xml/

Re: SV: SV: SV: SV: SAX tree?

2001-11-14 Thread David Rosenstrauch
At 03:33 PM 11/14/01 -0800, you wrote: Fair enough, I find it quite odd too. Don't know if it's a bug, but if it isn't, C2 surly acts strange by my standards :) /Soren Well then I'm stumped too! :-) But as long as you got SOMEthing to work that's all that matters. DR

Re: Generators.. was: Re: What is Cocoon good for???

2001-11-14 Thread David Rosenstrauch
I would imagine that SAX would perform much better: * Doesn't need to build a DOM tree in memory, so less memory usage * Doesn't need to wait till the DOM tree is built; can start processing from the first root element DR At 03:43 PM 11/14/01 -0800, you wrote: Yes I think so too, but it

Sitemap variables?

2001-11-14 Thread David Rosenstrauch
Is it possible to set variables in the sitemap (i.e., similar to xsl:variable)? I find myself passing the same map:paramaters in different places in the map over and over again and would like to centralize this in one place. If not a map:variable, is it possible to set a map:parameter at the

Fwd: Sitemap variables?

2001-11-14 Thread David Rosenstrauch
? DR Date: Wed, 14 Nov 2001 14:24:28 -0500 To: [EMAIL PROTECTED] From: David Rosenstrauch [EMAIL PROTECTED] Subject: Sitemap variables? X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Is it possible to set variables in the sitemap (i.e., similar to xsl:variable)? I find myself passing

  1   2   >