Re: Hand over XSL variable value - wrong list?

2010-07-28 Thread Steven D. Majewski
You can't generate a pipeline parameter *within* the pipeline. You'll have to split it into two (or more) separate pipelines. There are several ways of doing that. One method would be to use flowscript: processPipelineTo( ... ) # this step does the xslt transform and outputs the file

Re: Very large Generator file

2010-05-11 Thread Steven D. Majewski
[1] You might look at using Joost/STX which does streaming transforms. It's not XSLT -- it's an xslt-like transformation language designed for one pass processing, so STXPath is more restricted than XPath. http://joost.sourceforge.net/ We've used it within cocoon to extract data

adding jars to 2.2

2009-10-08 Thread Steven D. Majewski
I call some java classes from flowscript that aren't included in the default 2.2 blocks. If I manually add the jars to ./target/rcl/webapp/WEB-INF/lib/, the errors go away. What is the right way to add these jars with maven ? For example: commons-codec-1.3.jar. How do you add a

org.xml.sax.SAXException: Unrecognized file format (.0,6) [ was: adding jars to 2.2 ]

2009-10-08 Thread Steven D. Majewski
On Oct 8, 2009, at 8:25 AM, Andre Juffer wrote: Steven D. Majewski wrote: I call some java classes from flowscript that aren't included in the default 2.2 blocks. If I manually add the jars to ./target/rcl/webapp/WEB-INF/lib/, the errors go away. What is the right way to add

confused by jx generators and transformers in 2.1.11 2.2.0

2009-10-07 Thread Steven D. Majewski
I'm still having troubles trying to port from cocoon 2.1.11 to 2.2.0. ( I'm trying to keep as much common between the versions as possible. ) I couldn't get jx generator to work in 2.2.0 as it did in 2.1.11 with newjx. I changed it to use a file generator and then jx transformer. That

Where are {defaults:} set in cocoon 2.2

2009-09-26 Thread Steven D. Majewski
Where are defaults set for the {defaults:} input module, now that there is no cocoon.xconf ? -- Steve Majewski / UVA Alderman Library - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands,

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
myBlock1 myBlock2 seem to have all the right dependencies (and they work on their own), but myCocoonWebapp has only the jars from those two blocks: [INFO] [INFO] [dependency:tree {execution: default-cli}] [INFO]

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
On Sep 23, 2009, at 1:45 PM, Dominic Mitchell wrote: On Wed, Sep 23, 2009 at 5:03 PM, Steven D. Majewski sd...@virginia.edu wrote: myBlock1 myBlock2 seem to have all the right dependencies (and they work on their own), but myCocoonWebapp has only the jars from those two blocks: [INFO

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
I can create, 'mvn install' 'mvn jetty:run' both myBlock1 myBlock2. When I try to connect the two blocks as in http://cocoon.apache.org/2.2/1291_1_1.html , I get this error on either a jetty:run or an install: myBlock1$ mvn jetty:run [INFO] Scanning for projects... [INFO]

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
On Sep 23, 2009, at 2:22 PM, Steven D. Majewski wrote: If I comment out the myBlock2 dependency in myBlock1/pom.xml which I just added: !-- dependency groupIdedu.virginia.lib/groupId artifactIdmyBlock2/artifactId version1.0-SNAPSHOT/version /dependency

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
On Sep 23, 2009, at 2:36 PM, Robby Pelssers wrote: So if I understand you correctly you have one block depending on the other? Did you also add the dependency of myblock2 in the pom.xml of myblock1? Yes. ( And if I take that dependency out, it runs without complaint. ) I guess so...

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
On Sep 23, 2009, at 2:50 PM, Dominic Mitchell wrote: On Wed, Sep 23, 2009 at 7:44 PM, Steven D. Majewski sd...@virginia.edu wrote: On Sep 23, 2009, at 2:36 PM, Robby Pelssers wrote: So if I understand you correctly you have one block depending on the other? Did you also add the dependency

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
following the getting_started instructions, I'm doing all the maven commands from the command line, and using eclipse only for editing. ( Although I've done all of the 'mvn eclipse:eclipse' commands so that eclipse loads the project properly. ) -Original Message- From: Steven D. Majewski

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
On Sep 23, 2009, at 3:14 PM, Robby Pelssers wrote: Ok...here is what I want you to do in this order !!! In myblock2: -Mvn clean -Mvn eclipse:eclipse -Mvn install In myBlock1.. -mvn clean -add dependency on myBlock2 again -mvn eclipse:eclipse -mvn install If this does not work I'm puzzled.

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
typo is causing this. Robby -Original Message- From: Steven D. Majewski [mailto:sd...@virginia.edu] Sent: Wednesday, September 23, 2009 9:22 PM To: users@cocoon.apache.org Subject: Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2] On Sep 23, 2009, at 3:14 PM

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-23 Thread Steven D. Majewski
On Sep 23, 2009, at 4:39 PM, Robby Pelssers wrote: True… the same here… but if I had no prior maven knowledge this might be a bit trickier to spot. I guess it’s time to have that documentation published again… HINT HINT. Robby This may also need updating:

problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-22 Thread Steven D. Majewski
We've been using Cocoon 2.1.* for some time now, but we haven't really been doing a proper build. We've been building the sample app, and using that as a development base, adding new pipelines and sitemaps, and eventually, removing the samples directory before deploying. I've started to

Re: problems with Getting Started 2.2 [was: Starting out with Cocoon 2.2]

2009-09-22 Thread Steven D. Majewski
an error message from the browser, and no other messages are logged. On Sep 22, 2009, at 4:58 PM, Steven D. Majewski wrote: We've been using Cocoon 2.1.* for some time now, but we haven't really been doing a proper build. We've been building the sample app, and using that as a development

Re: redirect output to filesystem

2009-07-29 Thread Steven D. Majewski
On Jul 28, 2009, at 1:39 PM, Chris Gow wrote: Unfortunately, that transformer does not seem to appear in cocoon 2.0.x (which is the version of cocoon I am stuck on). -- chris On 07/29/2009 12:09 PM, Robby Pelssers wrote: Not sure ... but can't you just use the source-write transformer?

Re: Character entities

2009-05-19 Thread Steven D. Majewski
On May 19, 2009, at 4:21 PM, Alexis Georges wrote: Hello everyone, I have an XHTML page which contains my email address converted to numbers (a - #97, etc...). (Is there another recommended way to obfuscate an email address?) When I check the source from the browser, I see actual

Re: mkdir in flowscript fails

2009-01-09 Thread Steven D. Majewski
On Jan 9, 2009, at 5:36 PM, Martin Holmes wrote: Hi there, I'm trying to write flowscript which saves the output of a pipeline onto the file system. I've successfully done this for several pipelines, following the instructions on the WIKI. Up to now, I've been saving all the output

How to obtain a xml from a xml file and a Xpath expression

2008-04-14 Thread Steven D. Majewski
On Apr 14, 2008, at 7:43 AM, Carlos Tejo Alonso wrote: Hello, I was doing some research about how to obtain a xml from a xml file + an XPATH expression in Cocoon, but I haven't found any information really clear. Is there any parameter to add into a generator, or a transformer or

Re: Applications ouside the cocoon tree

2008-02-06 Thread Steven D. Majewski
On Feb 6, 2008, at 3:17 PM, Jean-Claude Moissinac wrote: Until I was using some cocoon applications directly in a standalone cocoon. To be able to easily manage several versions of cocoon, I was using a mount-table.xml in the main directory of each new version of a Cocoon installation;

SAXParseException not caught in handler

2008-02-06 Thread Steven D. Majewski
I'm not sure if this is a Xerces or a Cocoon question: I'm doing DTD validation via SAX in a flowscript function in Cocoon 2.1.10. Some fatalErrors are not being caught by my fatalError handler, but are instead showing up as a Cocoon Java stacktrace. The same thing happened when running

More continuation scope questions ... [was: map:flow scope?]

2008-02-01 Thread Steven D. Majewski
On Jan 29, 2008, at 2:33 PM, Steven D. Majewski wrote: Are the map:flowmap:script values inherited by sub sitemaps like the component configurations, or are they local to a sitemap ? Can I put all of the map:script declarations in my top level sitemap and use map:call in the sub sitemaps

map:flow scope?

2008-01-29 Thread Steven D. Majewski
Are the map:flowmap:script values inherited by sub sitemaps like the component configurations, or are they local to a sitemap ? Can I put all of the map:script declarations in my top level sitemap and use map:call in the sub sitemaps ? -- Steve Majewski / UVA Alderman Library

Re: grammar for validation block validation transformer

2008-01-29 Thread Steven D. Majewski
of the known possible values, not just those currently implemented by the lower levels. [ So I'm doing validation from flowscript instead. ] -- Steve Majewski On Jan 24, 2008, at 12:27 PM, Steven D. Majewski wrote: I'm trying to use the ValidatingTransformer ValidationReportTransformer from

grammar for validation block validation transformer

2008-01-24 Thread Steven D. Majewski
I'm trying to use the ValidatingTransformer ValidationReportTransformer from the validation block in cocoon 2.1.10 . Does a grammar have to be specified in the sitemap to use DTDs as the schema ? What is the proper grammar specifier ? I've tried using

Re: cocoon: protocol

2007-08-30 Thread Steven D. Majewski
On Aug 30, 2007, at 9:55 AM, Edward S wrote: thanks Jasha. I am trying to use it in a sitemap and am getting a 'unknown protocol: cocoon' error. Any idea why this is happening? thanks Ed. Are you getting this message in the cocoon log ? Or is that a browser error message ? -- Steve

Re: cocoon: protocol

2007-08-30 Thread Steven D. Majewski
with 'cocoon:' . I've had a similar glitch, where I was passing a base url param to generate links. Mistakenly passing a cocoon: url generates bad links. -- Steve. On 8/30/07, Steven D. Majewski [EMAIL PROTECTED] wrote: On Aug 30, 2007, at 9:55 AM, Edward S wrote: thanks Jasha. I am trying

Re: Simple Java from flowscript ?

2007-07-25 Thread Steven D. Majewski
I don't see anything obviously wrong with your Java from Javascript calls. Looking at some of my scripts, I see I follow cocoon.senPage() with a cocoon.exit() call. I sort-of recall getting an error without this in some cases, but I don't recall what sort of error. Some other general

Re: cocoon and ajax url path

2007-07-20 Thread Steven D. Majewski
On Jul 20, 2007, at 3:10 AM, Vaduvoiu Tiberiu wrote: this pretty much works on static sites in html but as I am using cocoon, I am having problem giving the url of the xml... in xslt i am using something like this to load an xml or to display a certain value from an xml:

Re: Help with Cocoon 2.2.x

2007-07-17 Thread Steven D. Majewski
I've also been unable to get the 2.2 snapshot to run in jetty, although everything builds successfully. I've tried with maven-2.0.6, most recently with maven-2.0.7. I've tried several times with the most recent snapshot -- most recently: cocoon_20070717102512.tar.gz And on the last

Re: Help with Cocoon 2.2.x

2007-07-17 Thread Steven D. Majewski
On Jul 17, 2007, at 2:46 PM, Steven D. Majewski wrote: Caused by: org.gjt.xpp.XmlPullParserException: ![DOCTYPE declarations not supported at line 33 and column 3 seen ...CDATA #REQUIRED\n class CDATA #REQUIRED\n\n]... (parser state UNKNONW_EVENT (-1)) I tried cutting

Re: Help with Cocoon 2.2.x

2007-07-17 Thread Steven D. Majewski
On Jul 17, 2007, at 5:27 PM, Grzegorz Kossakowski wrote: Steven D. Majewski pisze: On Jul 17, 2007, at 2:46 PM, Steven D. Majewski wrote: Caused by: org.gjt.xpp.XmlPullParserException: ![DOCTYPE declarations not supported at line 33 and column 3 seen ...CDATA #REQUIRED\n

Re: Using xsl:message and Cocoon

2007-07-12 Thread Steven D. Majewski
As the OP in that thread, I should note that despite Mark's help, I was still never able to find a trace of the xsl:message output. However, I gave up and tried some alternative ways of debugging instead, so I didn't spend a lot of time trying to figure out why it didn't work for me. Perhaps a

Re: My web application and local sitemap

2007-05-17 Thread Steven D. Majewski
On May 17, 2007, at 1:32 PM, Luca Sabbio wrote: Hi, I'm working with Cocoon 2.1.10 deployed in Tomcat 5.5.16 and integrated with Xindice 1.1b4 (soon could be 1.1 :-) ) I've one application (called MEL) that uses Cocoon to query the db and have some servlets to interact with db. I'd like

Re: Get any Path in CocoonContext

2007-05-02 Thread Steven D. Majewski
Not sure exactly which path the OP wants, but look also at the ContextPath module: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/ modules/input/ContextPathModule.html ContextPathModule provides a real filesystem path for a virtual context-relative path. If this

view after aggregate

2007-03-08 Thread Steven D. Majewski
I'm just barely getting a handle on cocoon views after struggling with them for the lucene search interface. Can anyone tell me how to set up a view to get the results after a map:aggregate but before any transforms are applied ? I'm trying to debug some disappearing content, and

Re: File Upload/Download

2007-03-07 Thread Steven D. Majewski
On Mar 6, 2007, at 7:41 PM, Mark Lundquist wrote: Hi, On Mar 6, 2007, at 3:44 PM, wc184 wrote: The problem I have is the URL has to match dlchs*-_-*.xml. This, subsequently, prompts the user to save the file under this format by default. I would IE to prompt the user to save under the

request-parameters selector usage

2007-03-03 Thread Steven D. Majewski
In the docs and examples for the request-parameter selector, the selection tests are done on the value of a particular request- parameter map:select type=request-parameter map:parameter name=parameter-name value=command/ map:when test=list /map:when map:when test=create ...

Re: request-parameters selector usage

2007-03-03 Thread Steven D. Majewski
the otherwise. Is there another way to select on the presence ( rather than the value ) of a request param ? -- Steve Majewski On Mar 3, 2007, at 10:37 AM, Steven D. Majewski wrote: In the docs and examples for the request-parameter selector, the selection tests are done on the value of a particular

Re: request-parameters selector usage [ unparsed-entity-uri() hack ]

2007-03-03 Thread Steven D. Majewski
Thanks to both Grzegorz Kossakowski and Andrew Stevens who both pointed me to RequestParameterExistsAction. This does exactly what I want: map:match pattern=*/*.* map:act type=req-params map:parameter name=parameters value=unparsed-entity-uri / map:redirect-to

Re: setting content-disposition header for a reader [was: link to a file]

2007-03-03 Thread Steven D. Majewski
On Mar 2, 2007, at 11:31 AM, Ard Schrijvers wrote: I do not think I totally understand your story, but, you just need to set some header (content-disposition) on a reader, right? Why don't you extend the reader (for example, you use the ResourceReader) and only add to your reader:

setting content-disposition header for a reader [was: link to a file]

2007-03-02 Thread Steven D. Majewski
I found an old thread describing the same problem I'm running into -- but it seems to end here. Has anyone else found a solution ? I have xml files served up by a cocoon reader. They sometimes generate annoying errors messages in the browser. Normally, these are styled into html in cocoon, but

Re: Serialize HTML to new window

2007-02-28 Thread Steven D. Majewski
On Feb 28, 2007, at 11:11 AM, Gary Larsen wrote: I assume that I'm missing something basic again. I would like to serialize the HTML as though it was called with a target=_blank request parameter. The reason for this is, due to a user option in a form, the page being generated will have no

Re: Serialize HTML to new window

2007-02-28 Thread Steven D. Majewski
On Feb 28, 2007, at 11:33 AM, Gary Larsen wrote: Hi Steve, I don't believe that this has anything to do with how cocoon serializes or serves the output -- this is a browser UI issue. I don't think you want a 'target=' request parameter. You want a 'target=' attribute on the link to the page,

Re: XSLTC and Coccon

2007-02-28 Thread Steven D. Majewski
On Feb 28, 2007, at 4:02 PM, Julius Lerm wrote: Is there a way of incorporating into a Cocoon map translets compiled outside of Cocoon via XSLTC command line? Thanks, Julius Lerm I don't understand this question, and, off the top of my head, I can think of at least 2 very different

cocoon site on CD-ROM [was: Stripping down Cocoon]

2007-02-12 Thread Steven D. Majewski
On Feb 11, 2007, at 10:16 AM, Vishwanath Goda wrote: Hello, What is the best way to lighten up cocoon to its bare essenstials. Are there any recommendations and step-by-step procedures that could help us strip away unwanted modules and libraries? A different, but related question:

Re: cocoon site on CD-ROM [was: Stripping down Cocoon]

2007-02-12 Thread Steven D. Majewski
On Feb 12, 2007, at 4:36 PM, Tobia wrote: Steven D. Majewski wrote: Does anyone have any tips on putting a cocoon site on CD-ROM. If you are going to make your own GNU/Linux live cd, as I suppose you do, you might find this link useful: http://www.gnewsense.org/Builder

jx generator in 2.1.10

2007-02-08 Thread Steven D. Majewski
I had previously mentioned in passing that when I tested my site with 2.1.10 a bunch of things broke which were working in 2.1.9, but I hadn't had time to figure out specifically what piece was broken. We upgraded our production server to 2.1.10 and someone else looked into this bug:

continuation problem -- are id's unique ?

2007-02-05 Thread Steven D. Majewski
In my flowscript function, the first sendPageAndWait() calls a jx template which generates a form with the action pointing to: form action=work/$user/$cocoon.continuation.id.kont method=post enctype=multipart/form-data ... This returns to the flowscript as expected. I then do a 2nd

Re: continuation problem -- are id's unique ?

2007-02-05 Thread Steven D. Majewski
On Feb 5, 2007, at 4:01 PM, Mark Lundquist wrote: Hi Steve, On Feb 5, 2007, at 10:13 AM, Steven D. Majewski wrote: When I click on that link, I seem to be going back to the earlier continuation. ( Specifically: I get an error message that seems to be from not returning the form parameters

Re: continuation problem -- are id's unique ?

2007-02-05 Thread Steven D. Majewski
was being passed! -- Steve Majewski On Feb 5, 2007, at 5:09 PM, Steven D. Majewski wrote: That same identical URL is attached to both the links generated from the kont and altkont params in the xslt transform. That should NOT be what I'm seeing ? Right ? BTW: This is cocoon.2.1.9 running

Re: continuation problem -- are id's unique ?

2007-02-05 Thread Steven D. Majewski
On Feb 5, 2007, at 6:02 PM, Jason Johnston wrote: On Mon, 5 Feb 2007 17:50:21 -0500, Steven D. Majewski [EMAIL PROTECTED] wrote: And when I fix the misspelling of {flow-attr:alt_kont} in the sitemap, the one I explicitly passed works -- but that's not the current continuation

Re: Using flowscript vars inside xsl files

2007-01-31 Thread Steven D. Majewski
On Jan 31, 2007, at 4:43 AM, Daniel Süpke wrote: Hi I have a xml file from which a form with checkboxes (only) is created through xslt. The parameter names (from the boxes) are accessed within a flowscript (cocoon.request.getParameterNames()). Now I want to redisplay the form site some

Re: xsl:message output

2007-01-26 Thread Steven D. Majewski
, 2007, at 2:21 AM, Thomas Markus wrote: Hi, System.err is default. check your webserver log or console thomas Steven D. Majewski schrieb: Where does the output of an xsl:message in a stylesheet in cocoon go ? I've looked in cocoon.log and all of the other log files I could find

flow param to xslt transform

2007-01-26 Thread Steven D. Majewski
I take it that since XSLT transformer is not listed as being 'flowscript-aware', that to pass a param from flowscript to XSLT, I need to either: [1] use use-request-parameters: map:transform src=... map:parameter name=use-request-parameters value=true / /map:transform

Re: xsl:message output

2007-01-26 Thread Steven D. Majewski
On Jan 26, 2007, at 12:52 PM, Mark Lundquist wrote: On Jan 26, 2007, at 9:26 AM, Steven D. Majewski wrote: I do testing/debugging on Mac OSX laptop: Me too :-) I put a distinctive string in my xsl:message and grepped all thru the cocoon logs, the system and console logs and anywhere

xsl:message output

2007-01-23 Thread Steven D. Majewski
Where does the output of an xsl:message in a stylesheet in cocoon go ? I've looked in cocoon.log and all of the other log files I could find, but no trace. I'ld like to use it for debugging, but I can't seem to find a trace of it. -- Steve Majewski / UVA Alderman Library

Re: Problem in custom Transformer (migrating to 2.1.10)

2007-01-19 Thread Steven D. Majewski
On Jan 19, 2007, at 5:15 PM, Joerg Heinicke wrote: When I put LogTransformer before the custom transformer I can see logging, but when it is after the custom transformer there is no logging. I think this shows there something wrong with my transformer. Perhaps it was too simple, but

Re: relative paths in flowscript [was: realpath: doesn't return realpath]

2007-01-18 Thread Steven D. Majewski
On Jan 18, 2007, at 3:44 AM, Nico Verwer wrote: Steven D. Majewski wrote: Looking for an alternative way of solving my problem: What is the working directory for a flowscript ? If it's based

Re: Aplly transformation to a xml post data

2007-01-18 Thread Steven D. Majewski
On Jan 18, 2007, at 5:54 AM, Sébastien Geindre wrote: hello all, I handle a upload request send by cocoon forms with flowscript : var uploadWidget = form.lookupWidget(upload); var stream = uploadWidget.getValue().getInputStream(); I'd like to transform the upload stream (which is XML)

Re: Aplly transformation to a xml post data

2007-01-18 Thread Steven D. Majewski
On Jan 18, 2007, at 6:46 AM, Sébastien Geindre wrote: Steven D. Majewski wrote: On Jan 18, 2007, at 5:54 AM, Sébastien Geindre wrote: hello all, I handle a upload request send by cocoon forms with flowscript : var uploadWidget = form.lookupWidget(upload); var stream

realpath: doesn't return realpath

2007-01-17 Thread Steven D. Majewski
The realpath input module doesn't seem to actually return the realpath when used in the sitemap. I have my application mounted outside of tomcat or the cocoon webapp. ( via ../../mount-table.xml ) What realpath:/mydir returns is cocoon's real path + /mydir, not the realpath of mydir. How can

relative paths in flowscript [was: realpath: doesn't return realpath]

2007-01-17 Thread Steven D. Majewski
Looking for an alternative way of solving my problem: What is the working directory for a flowscript ? If it's based on the directory of the script or the sitemap, then I can probably just construct a relative path. -- Steve. On Jan 17, 2007, at 5:24 PM, Steven D. Majewski wrote

cocoon 2.1.10 + bsf + rhino (javascript)

2007-01-15 Thread Steven D. Majewski
I noticed that cocoon 2.1.10 has an newer release of bsf (Bean Scripting Framework) along with the new javascript. Does anyone know if this fixes the broken javascript+bsf problem in 2.1.9 ? -- Steve Majewski - University of Virginia Alderman Library

java.lang.IllegalStateException: Pipeline has already been processed for this request

2007-01-15 Thread Steven D. Majewski
OK: I've managed to find (I think) what caused this error, but I'm hoping someone can explain what exactly it means to me: java.lang.IllegalStateException: Pipeline has already been processed for this request I was debugging some flowscript, and I stuck in a sendPageAndWait() call

Re: java.lang.IllegalStateException: Pipeline has already been processed for this request

2007-01-15 Thread Steven D. Majewski
On Jan 15, 2007, at 6:46 PM, Joerg Heinicke wrote: On 16.01.2007 00:27, Steven D. Majewski wrote: java.lang.IllegalStateException: Pipeline has already been processed for this request Can someone explain what happened and what that message above means ? The message itself means

Re: Convert string from html to xhtml

2007-01-14 Thread Steven D. Majewski
On Jan 14, 2007, at 2:45 PM, philguillard wrote: Hi, I'd like to convert html code to xhtml, but that code is coming from database, i know to use html generator -thus jtidy-, but this time it is not a html file that i download, and i can't call a generator for each database field.

Re: Create New File

2007-01-13 Thread Steven D. Majewski
On Jan 12, 2007, at 2:14 PM, BMur wrote: Thanks for the reply Steve. I apologize for not being clear. Since this is a Cocoon mailing list I was trying not to add too much Lenya stuff, but obviously I'm not sending enough details. Here is my goal - I'm using Cocoon 2.1.7 and Lenya 1.2.4,

Re: Create New File

2007-01-12 Thread Steven D. Majewski
On Jan 11, 2007, at 4:18 PM, BMur wrote: Hello, I'm using Cocoon version 2.1.7: I have an instance of Lenya, which uses Cocoon, and I beleive this question is related to Cocoon more than Lenya. I would like to create a new file within the filesystem on-the- fly. If possible I would

Re: unparsed-entity-uri()

2007-01-09 Thread Steven D. Majewski
On Jan 5, 2007, at 11:38 AM, Peter Flynn wrote: Does anyone know when or if the unparsed-entity-uri() function will be implemented in distributions of Cocoon? It's becoming very hard to do serious document publishing without proper entity resolution. I don't know but this is also a big

Re: Authentication puzzle

2007-01-09 Thread Steven D. Majewski
On Jan 9, 2007, at 11:57 AM, Peter Flynn wrote: I am trying to get simple authentication to work for a single document, using local files for the authentication step, but I can't get it to return an authentication success. The following works fine when run using Saxon from the

Re: Specify the stylesheet location dynamically

2006-12-05 Thread Steven D. Majewski
On Dec 5, 2006, at 1:22 PM, Habib Kaci wrote: Hi, I have a specic need to specify the stylesheet doing the xslt transformation at runtime. Can I specify this within the XSP (without writing action). Thank you, Yes -- you can specify the transform at runtime . The

Re: FileUploadManager

2006-10-06 Thread Steven D. Majewski
I also found the examples on the Wiki both helpful and confusing. I started with trying the upload: pseudo protocol, and I'm combining that with using flowscript, because I need to add a bunch of conditional processing to decide whether to accept the upload file ( and where to put it. )

upload:// pseudo protocol

2006-09-21 Thread Steven D. Majewski
Is the upload:// pseudo-protocol documented anywhere ? ( I saw it in one of the samples, but could not find anything in the docs. ) And if it isn't documented: where in the source code should I look for info on how it's implemented ? I'm still quite perplexed by all of the various ways of

Re: upload:// pseudo protocol

2006-09-21 Thread Steven D. Majewski
On Sep 21, 2006, at 4:20 PM, Steven D. Majewski wrote: Is the upload:// pseudo-protocol documented anywhere ? ( I saw it in one of the samples, but could not find anything in the docs. ) And if it isn't documented: where in the source code should I look for info on how it's implemented

Re: Resent: Explanation of the Cocoon directory structure

2006-09-13 Thread Steven D. Majewski
On Sep 13, 2006, at 5:52 PM, Dev at weitling wrote: Phhh... sorry, sent this eMail to the wrong mailing list first. Time to go to bed... Hi! The Cocoon directory structure isn't very concise: many directories with the same or at least similar names at different locations, some

Re: Forcing error in sitemap

2006-08-11 Thread Steven D. Majewski
You can generate the 404 error by specifying a status-code for serialize: map:serialize type=xml status-code=404/ But you'll also need some sort of dummy/error document to be serialized. Or (I think) you can do a cocoon.sendStatus( 404 ) from flowscript. But I thought that the error

Re: Forcing error in sitemap

2006-08-11 Thread Steven D. Majewski
Well: how about just throwing an error from flowscript ? ( or from java. The problem with flowscript is that the sitemap uses java exceptions, and I think all of the rhino exceptions are going to get mapped into JavaScriptException's in java. ) -- Steve Majewski On Aug 11, 2006, at

Re: How to extract image, audio and video metadata from media files in Cocoon?

2006-06-07 Thread Steven D. Majewski
On Jun 7, 2006, at 12:15 PM, Jonas Lundberg wrote:I see... I was hoping that this was a common operation, and that someone had already made a solution. Anyone? Regards Hans ImageDirectoryGenerator only extracts a very limited set of info from image files  ( and I *think*, from a brief look at