Re: [CForms] on-action event

2004-09-28 Thread Guido Casper
Sylvain Wallez wrote: Guido Casper wrote: Hi all, is the on-action event supposed to work with either row-action or repeater-action? Neither of the following works (meaning it works in general, but nothing is printed to the console): fd:row-action id=addaftersection action-command=add-after

Removing white space, comments, etc

2004-09-28 Thread Daniel Willis
Title: Removing white space, comments, etc Hello, Ive had a good look through the wiki, and across the internet in general, and Ive been unable to find anything useful in relation to the stripping of white space and undesirable elements (comments, display:none, etc) Could anyone suggest a

RE: Removing white space, comments, etc

2004-09-28 Thread Conal Tuohy
Daniel, if I were you I'd add an XSLT stage to your pipeline to clean up stuff like this prior to serialization. Add empty templates for the things you want to biff. xsl:template match=comment()/ xsl:template match=*[contains(@style,'display:none')]/ xsl:template match=@align|@color/ etc.

Re: Removing white space, comments, etc

2004-09-28 Thread Bertrand Delacretaz
Le 28 sept. 04, à 09:12, Conal Tuohy a écrit : ...Add an identity template to copy everything else: xsl:template match=@*|* xsl:apply-templates select=@*/ xsl:apply-templates/ /xsl:template... While we're at it, it is often useful to strip extra namespace nodes: !-- Copy

Re: Removing white space, comments, etc

2004-09-28 Thread Roy G. Biv
In this case, the STX transformer would probably be faster (SAX based rather than in-memory document). The syntax isn't too much different from the XSLT. There's also a cleanup/indent transformer that I put into bugzilla a little while back.

Re: CopySourceAction , seems trivial but can't make it works

2004-09-28 Thread Frédéric Glorieux
I would like to make work this simple idea, when an URI (**.html) is requested for the first time, it's generated and a file is written somewhere ; otherwise, cocoon cache handle. I have implemented a bad patch of my own, directly on pipeline, but if an action can do the job... I should

Re: Removing white space, comments, etc

2004-09-28 Thread [EMAIL PROTECTED]
Daniel Willis wrote: Hello, I've had a good look through the wiki, and across the internet in general, and I've been unable to find anything useful in relation to the stripping of white space and undesirable elements (comments, 'display:none', etc)

Re: CopySourceAction , seems trivial but can't make it works

2004-09-28 Thread Sylvain Wallez
Frédéric Glorieux wrote: I would like to make work this simple idea, when an URI (**.html) is requested for the first time, it's generated and a file is written somewhere ; otherwise, cocoon cache handle. I have implemented a bad patch of my own, directly on pipeline, but if an action can do

RE: Help: XPath to Jexl

2004-09-28 Thread oceatoon
Hi every on e The solution to use an imbricated forEach, where the first one is used with XPath and the second with the end begin attributes and therefore in JEXL. Within the first forEach use a set JXTemplate variable that takes a loop context relative XPath value, and then the variarble can

java.lang.ClassNotFoundException: JPEGImageDecoderImpl

2004-09-28 Thread Ulrich Mayring
Hello all, I get this Exception when using an ImageReader: java.lang.NoClassDefFoundError at sun.awt.image.codec.JPEGImageDecoderImpl.getDecodedColorModel(JPEGImageDecoderImpl.java:293) at sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(Native Method) at

Re: [CForms] flow problems

2004-09-28 Thread Johannes Textor
Hi, let's see if I got you right, if you have a subset of elements that should appear in form1 AND form2 and some elements that are unique for both, you could - write a javascript function that manually copies values from form1 to form2 - use just ONE form object for both forms with two

Antwort: precompile-only

2004-09-28 Thread Jonas . Kilian
Hi, I have XSP-precompilation working reliable with Cocoon 2.1.3, this is how my ant target looks like: target name=precompile-xsp-files description=Compiles previously distributed XSP files property name=cocoon.context value=${basedir}/lib/cocoon/ path id=cp !-- Patch for

Re: Antwort: precompile-only

2004-09-28 Thread Upayavira
[EMAIL PROTECTED] wrote: Hi, I have XSP-precompilation working reliable with Cocoon 2.1.3, this is how my ant target looks like: Yes, it works on 2.1.3. I believe it is broken on 2.1.5 (or should I say 'I broke it' on 2.1.5 :-( Regards, Upayavira target name=precompile-xsp-files

About DTDs, Mathematic expressions, PDF and HMTL

2004-09-28 Thread Joao Miguel Ferreira
Hello all, I've just started with Cocoon and with XML. I'am really surprised with the power of XML. In the past I have written text documents in LaTeX that include some simple math expressions and some images. Then I usually converted them to PDF with pdflatex and to html with latex2html. Now I

Re: About DTDs, Mathematic expressions, PDF and HMTL

2004-09-28 Thread Derek Hohls
João Welcome to the Cocoon Universe... all your wishes will soon be granted (after you add in some hard work, of course ;-) I am not sure about the Math part - perhaps the combination of SVG and the appropriate Unicode selection will help towards the creation of math expressions... there is

Re: About DTDs, Mathematic expressions, PDF and HMTL

2004-09-28 Thread Gerald Aichholzer
On Tue, 28 Sep 2004 14:28:46 -0400, Joao Miguel Ferreira [EMAIL PROTECTED] wrote: I've just started with Cocoon and with XML. I'am really surprised with the power of XML. In the past I have written text documents in LaTeX that include some simple math expressions and some images. Then I usually

error msg. from jdo

2004-09-28 Thread Paul Joseph
Hi, I keep periodically getting this error msg., but don't know why. I am using cocoon.releaseComponent(factory); at the end of my script..but don't know if that is needed. TIA. Paul [JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false

avoiding the long continuation URL

2004-09-28 Thread Jorg Heymans
Hi, I have a form with a repeater accessed at say /forms/testForm. Now when the user adds a row to the repeater, the url in the browser addressbar becomes /forms/49q83pafvkyxvcma.continue Any way to avoid this? Regards Jorg -

Lucene: deleting from index

2004-09-28 Thread Oscar Picasso
Hi, I have Cocoon web site backed by a database. On inserts or updates of some rows in the database, I update the Lucene index with the LuceneIndexTransformer. I don't see however how to delete a specific row/column (which is identified by a particular url) from the Lucene index. As a

Problems accessing session variables

2004-09-28 Thread Christina Cunningham
Hi, I am using cocoon forms to edit xml documents. The forms are set up using jsp's to retrieve the relevant template information from a document stored in an Xindice database. The jsp's then forward on to the cocoon forms, with variables being set in the session so that they can be retrieved

Re: avoiding the long continuation URL

2004-09-28 Thread Upayavira
Jorg Heymans wrote: Hi, I have a form with a repeater accessed at say /forms/testForm. Now when the user adds a row to the repeater, the url in the browser addressbar becomes /forms/49q83pafvkyxvcma.continue Any way to avoid this? You can stick it into a hidden field if you wish. There's a

Re[2]: Efficient serving of Docbook

2004-09-28 Thread g[R]eK
. Hi Frans! . Monday, September 27, 2004, 8:31:58 PM, you wrote: FE On Monday 27 September 2004 17:46, Bertrand Delacretaz wrote: [...] FE I don't think it addresses my problem since it's probably cool once the FE content have been generated. In either case, I think serving fast is no FE

Re[3]: Efficient serving of Docbook

2004-09-28 Thread g[R]eK
. Hi g[R]eK! . Tuesday, September 28, 2004, 6:10:04 PM, you wrote: gRe . Hi Frans! . gRe Monday, September 27, 2004, 8:31:58 PM, you wrote: FE On Monday 27 September 2004 17:46, Bertrand Delacretaz wrote: gRe [...] FE I don't think it addresses my problem since it's probably cool once the FE

Re: Problem accessing authentication session in portal sitemap

2004-09-28 Thread Andrew MacDonald
When the login/welcome page is loaded, the portal does a auto-login of an anonymous user. For the anonymous user it loads up a default skin for displaying the page. Then, when a user logs in, the skin is changed to whatever their preference is. I was able to fix the problem, it turns out I'd

Clearing or invalidating the cache

2004-09-28 Thread Andrew MacDonald
Hello, In my portal there's a MyPreferences tab which lets the user select things like what skin they'd like to use for the portal. When this is changed, the settings are stored in two files on an exist database. One file is a custom profiles/layout/portal.xml file for the user, which has

Re: Efficient serving of Docbook

2004-09-28 Thread Frans Englich
On Tuesday 28 September 2004 16:10, g[R]eK wrote: . Hi Frans! . Monday, September 27, 2004, 8:31:58 PM, you wrote: FE On Monday 27 September 2004 17:46, Bertrand Delacretaz wrote: [...] FE I don't think it addresses my problem since it's probably cool once the FE content have been

CForms: obtaining the request object

2004-09-28 Thread Scott Yeadon
Hi, I have an authenticator which sets user id in the session request object, defined as follows: map:match pattern=login map:act type=auth-login map:parameter name=handler value=testauth/ map:parameter name=parameter_userid value={request-param:userid}/ map:parameter

log4j or Chainsaw in Cocoon

2004-09-28 Thread Tony Edwards
Hello all, Has anyone incorporated Chainsaw as the default logger for Cocoon as an alternative to the now seemingly defunct LF5? And/Or how does one use Log4J as the primary logger in Cocoon? Thanks, Tony - To unsubscribe,

Re: precompile-only

2004-09-28 Thread Nandakumar Mounasamy
Thanks Upayavira ! Wondering if anyone at least got the "offline page generation" working on cocoon 2.1.5. If yes, can you post sample logkit.xconf and cli.xconf? Also, are the xsp pages expected to be compiled every time pages are generated (as per the setting in cocoon.xconf)? In that case,this