Re: AxKit auf Apache2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matt, Replying to you and also to the public on axkit-dev. I've discussed the contribution of the stuff I have written and published on the user list ~ in my company. My company has decided that it would contribute the code I developed until now and will develop in future to the AxKit-Project. This has the advantage that I get payed for my work on AxKit2 (done in my free-time). On the other hand they want to get some promotion from AxKit. Things that have been discussed are that: * e.g. logo on the AxKit-Page => Link axkit2-dev-page * axkit2-dev-page hosted by the company and reachable as ~ axkit2.bestsolution.at until a release is made. Another thing I want to be certain is that the stuff I contribute is really desired by all developers because what is here until now is the right way to go. If most of them say I don't like the actual design and we want to make things in completely another way I don't have any problem to accept this. But what I don't want is to contribute the code I have written and afterwards everybody says that's a deadend street and no code gets released. I my opinion this is the right way to go but because none of the dev people (beside you) responded to me. I know that none of us can say that what I've written until now will get released but what I want is that people took a look at my code and say it makes sense what I'm doing. A last thing is would I become a commit rights into the source tree for my AxKit2-port or would I only contribute code a others apply it to the repository? I hope many of you respond to this mail. The latest source is attached to this mail. It should run on apache2-prefork/mp2-rc5. Just for information: - - The benchmarks are from a AMD Mobile Athlon 3000+ (=800MHZ) and 512 MB RAM perl compiled with thread support running Mandrake 10.1 and kernel-2.6.10. Tom Matt Sergeant schrieb: | First fax in the CLA. Then let me know you've done it. Then we can get | an account setup. Then we can get a new repository setup. | | On 26 Apr 2005, at 12:08, Tom Schindl wrote: | | Hi Matt, | | didn't you received my mail I sent you yesterday or didn't you have time | to start the process of including me into the AxKit-Dev-Team? At least | as I read the FAQ on apache.org I must get an invocation from the | AxKit-PMC to kick off the process. | | Tom | | Matt Sergeant schrieb: | | I'd be happy to get a CVS (or maybe even SVN) repository setup for you | | on apache infrastructure. You'll have to sign a Contributor License | | Agreement which you can print off on the Apache web site and fax into | | the ASF secretary. | | | | Email me privately to get this organised. | | | | | | - | | To unsubscribe, e-mail: [EMAIL PROTECTED] | | For additional commands, e-mail: [EMAIL PROTECTED] | | | | | |> -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCck2qkVPeOFLgZFIRAqQ5AJ9LrU7JgRw4YFCpPzN1YPoJzrq33QCggnKl xdz4VCR/x8RuObF5uW33/bM= =UP9v -END PGP SIGNATURE- TomKit.tar.bz2 Description: application/bzip
Re: Migrating to SVN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, well I'm using Trac in at the moment at its really nice but it has in my idea one really big disadvantage which is its privileges system. What do I mean? You cannot give users the e.g. anonymous ones the possibility to report and edit a bug/feature request, but avoid anonymous in the same time to change the status of a bug. Misuse like we have seen on the wiki ~ will follow. Besides this issue I like trac. JIRA has one more advantage as I can see from now in the idea that it links cvs/subversion commit to a issue, trac does it the other way round. One more disadvantage of trac is that if you have multiple different projects in one svn-repository you cannot configure trac only to show project1 or project2. I like trac and before using any other bugtracking I'd go with it but one day I'll write my own ;-) Tom Matt Sergeant schrieb: | On 27 Apr 2005, at 10:30, Tom Schindl wrote: | |> Now there would be a perfect point to move AxKit into such a Bug/Feature |> tracking system. Bugs could be scheduled, ... . | | | I've talked to Dirk about the possibility of us using Trac, which seems | to integrate lots of project management features very nicely. We'd | probably have to get that setup ourselves, but it looks pretty easy to do. | | Matt. | | | __ | This email has been scanned by the MessageLabs Email Security System. | For more information please visit http://www.messagelabs.com/email | __ | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCcH9IkVPeOFLgZFIRApQ2AJ9R53AXy3miclKxouOYzcVo9A4UmgCeI1cQ 37OEInuZvoZ9khdujC/OR9g= =i3VF -END PGP SIGNATURE-
Re: Migrating to SVN
On 27 Apr 2005, at 10:30, Tom Schindl wrote: Now there would be a perfect point to move AxKit into such a Bug/Feature tracking system. Bugs could be scheduled, ... . I've talked to Dirk about the possibility of us using Trac, which seems to integrate lots of project management features very nicely. We'd probably have to get that setup ourselves, but it looks pretty easy to do. Matt. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Migrating to SVN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt Sergeant schrieb: | On 27 Apr 2005, at 02:06, Tom Schindl wrote: | |> Although I can not vote I would second this. I would also suggest to |> register for the issue/bug tracking one of the apache possibilities JIRA |> looks really cool although written in java. I haven't looked at scarab |> until now but could take a look. Bugzilla would be the least one. I |> think at the moment bugs are tracked rt.cpan.org. | | | Yes, the ASF has asked us to make this move at some point also. | | Now there would be a perfect point to move AxKit into such a Bug/Feature tracking system. Bugs could be scheduled, ... . Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCb6HskVPeOFLgZFIRArB6AKCcZ9ZoL5QuoMdiEKNKEQuDJqopBACbBcW+ y0/2FUoYKyT5XUOQ5Njnupw= =lx5n -END PGP SIGNATURE-
Re: New axkit?
On Wed, 27 Apr 2005, Matt Sergeant wrote: > Also note we need to apply the new Apache 2.x license to everything > before release. As this is your first 2.x release - feel free to ping me if oyu need help, explanations or other assistance. http://www.apache.org/dev/apply-license.html Dw
Re: Migrating to SVN
On Wed, 27 Apr 2005, Matt Sergeant wrote: > Yes, the ASF has asked us to make this move at some point also. For the record - note that we -asked-; nothing more; nothing less. If this community feels it is more productive on CVS that is fine too. However we ultimately will more and more tie in SVN with things like Certificates, CLA's, release tracking and other automated papertrail elements. Which allows us, as the foundation, to better protect the IP and iwth that the Community in this increasingly 'lega triggerhappyl' world. And ultimately every exception becomes a liability in that prcedural view. However this is a proces of years - and at this point there is no great urgency. Esp. as there are enough voluteers within the CVS using pmc's to keep it alive. Dw.
Re: New axkit?
On 26 Apr 2005, at 21:33, Michael Nachbaur wrote: On Apr 26, 2005, at 11:57 AM, Matt Sergeant wrote: OK guys, I think we should put out a new axkit release. There are lots of reports that CVS is stable, and even if there are things we should fix we can do them in 1.6.4 (or whatever the next number we choose is) afterwards. Any objections or comments? I'll wait until the weekend for votes. +1 Also note we need to apply the new Apache 2.x license to everything before release. I was hoping to get the XML catalog patch working (or at least verify whether it works already) prior to the next AxKit release, but I certainly don't want this to hold up a release, especially since I don't foresee having any time before the weekend is over to work on it. There are always going to be things we hope to get into the release when someone says "lets release!". My suggestion is don't sweat it. There will always be another release. Matt.
Re: Migrating to SVN
On 27 Apr 2005, at 02:06, Tom Schindl wrote: Although I can not vote I would second this. I would also suggest to register for the issue/bug tracking one of the apache possibilities JIRA looks really cool although written in java. I haven't looked at scarab until now but could take a look. Bugzilla would be the least one. I think at the moment bugs are tracked rt.cpan.org. Yes, the ASF has asked us to make this move at some point also.
Re: New axkit?
On Apr 26, 2005, at 8:57 PM, Matt Sergeant wrote: OK guys, I think we should put out a new axkit release. There are lots of reports that CVS is stable, and even if there are things we should fix we can do them in 1.6.4 (or whatever the next number we choose is) afterwards. Any objections or comments? I'll wait until the weekend for votes. +1 to new release there are a few very useful bug fixes in current CVS version - a new 1.6.4 it would be more than welcome Yours Alberto - Alberto Reggiori, @Semantics S.R.L. www.asemantics.com
Re: Migrating to SVN
Matt Sergeant wrote: Proposal: After we release 1.6.3, we migrate to subversion. Apparently it's a very simple process, and I've used svn on a couple of projects now and I'm happy with its stability and performance. Votes please! +1 /me also needs to recall how to ssh there. -- Robin Berjon Research Scientist Expway, http://expway.com/
Re: New axkit?
Michael Nachbaur wrote: On Apr 26, 2005, at 11:57 AM, Matt Sergeant wrote: OK guys, I think we should put out a new axkit release. There are lots of reports that CVS is stable, and even if there are things we should fix we can do them in 1.6.4 (or whatever the next number we choose is) afterwards. Any objections or comments? I'll wait until the weekend for votes. +1 +1 too. Will we get an XML::LibXML release some time soon too? -- Robin Berjon Research Scientist Expway, http://expway.com/
Re: Migrating to SVN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Although I can not vote I would second this. I would also suggest to register for the issue/bug tracking one of the apache possibilities JIRA looks really cool although written in java. I haven't looked at scarab until now but could take a look. Bugzilla would be the least one. I think at the moment bugs are tracked rt.cpan.org. Any comments would be great. Tom Michael Nachbaur schrieb: | On Apr 26, 2005, at 11:59 AM, Matt Sergeant wrote: | |> Proposal: After we release 1.6.3, we migrate to subversion. |> |> Apparently it's a very simple process, and I've used svn on a couple |> of projects now and I'm happy with its stability and performance. |> |> Votes please! | | | +1 | | -- | Michael Nachbaur <[EMAIL PROTECTED]> | http://nachbaur.com/pgpkey.asc | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCbyv+kVPeOFLgZFIRAnatAJ9jXuSWUH/CpP2TW3Dy2JZtT9lIYACggrn0 32GCkgKnocFXmnBNK401Cnk= =3ZmO -END PGP SIGNATURE-
Re: Migrating to SVN
On Apr 26, 2005, at 11:59 AM, Matt Sergeant wrote: Proposal: After we release 1.6.3, we migrate to subversion. Apparently it's a very simple process, and I've used svn on a couple of projects now and I'm happy with its stability and performance. Votes please! +1 -- Michael Nachbaur <[EMAIL PROTECTED]> http://nachbaur.com/pgpkey.asc
Re: New axkit?
On Apr 26, 2005, at 11:57 AM, Matt Sergeant wrote: OK guys, I think we should put out a new axkit release. There are lots of reports that CVS is stable, and even if there are things we should fix we can do them in 1.6.4 (or whatever the next number we choose is) afterwards. Any objections or comments? I'll wait until the weekend for votes. +1 I was hoping to get the XML catalog patch working (or at least verify whether it works already) prior to the next AxKit release, but I certainly don't want this to hold up a release, especially since I don't foresee having any time before the weekend is over to work on it. -- Michael Nachbaur <[EMAIL PROTECTED]> http://nachbaur.com/pgpkey.asc
Re: Updating Now
Dear Homeowner, You have been pre-approved for $400,000 with a low fixed rate. This offer is being extended to you unconditionally and your credit is in no way a factor. To take Advantage of this Limited Time opportunity all we ask is that you visit our Website and complete the 1 minute post Approval Form. http://www.quotelab.com/?partid=aaks9 Sincerely, Case 1 Associates r-m-v http://www.quotelab.com/byebye.php
Re: problem with WebServiceProxyGenerator
Tony Collen wrote: &snip; Does anybody know if commons-httpclient has changed recently? It looks like a bit of stuff that the WSPG uses is currently marked as deprecated in commons-httpclient, which could be the cause of our problems here. I'll put working on this on my plate ASAP. Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SourceResolver in Selector?
Hi, I have developped a matcher that use a SourceResolver as follows 1) My class implements the import org.apache.avalon.framework.component.Composable interface 2) I get the ComponentManager as follows /** The component manager instance */ protected org.apache.avalon.framework.component.ComponentManager manager_; /** * Set the current ComponentManager instance used by this * Composable. */ public void compose(org.apache.avalon.framework.component.ComponentManager aManager) throws ComponentException { manager_=aManager; } 3) Then in the configure method (from the Configurable interface), I access to the (URLFactory)SourceResolver via the component manager as follows String config_url="foo.xml"; URLFactory url_factory = null; Source config_source = null; try { url_factory = (URLFactory)this.manager_.lookup(URLFactory.ROLE); URLFactorySourceResolver urlResolver = new URLFactorySourceResolver(url_factory, this.manager_); config_source = urlResolver.resolve(config_url); ... } catch (Exception e) { throw new ConfigurationException("Cannot load configuration from " + config_url, e); } finally { this.manager_.release(url_factory); if (config_source != null) { config_source.recycle(); } Does it address your problem ? Gabriel -Message d'origine- De : Paul Bowler [mailto:[EMAIL PROTECTED] Envoyé : mardi 1 juillet 2003 16:25 À : [EMAIL PROTECTED] Objet : SourceResolver in Selector? Anyone know how to resolve a URI within a selector? No SourceResolver is passed to it, unlike a Transformer, and I'm trying to gain access to a local XML file with no luck. Thanks, Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LDAP Transformer with XSP page?
On Tue, 1 Jul 2003 16:20:59 +0200 <[EMAIL PROTECTED]> wrote: > Is it possible to create the ldap.xml, with the ldap queries in a xsp > page? > Yes, for example: http://apache.org/xsp"; xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";> String cn = request.getParameter("cn"); if(cn == null) cn = "*"; com.sun.jndi.ldap.LdapCtxFactory ldap://ldaphost 389 OBJECTS_SCOPE cn=Directory Manager password ou=people,o=company cn sn givenName initials mobile mail ou uid title true (&(uid=cn)(mobile=*)) -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antw: RE: LDAP Transformer with XSP page?
Hello Maxime, it is possible. the xsp page has to generate the correct xml syntax for the LDAP transformer. (example at wiki) Martin >>> [EMAIL PROTECTED] Dienstag, 1. Juli 2003 16:20:59 >>> Is it possible to create the ldap.xml, with the ldap queries in a xsp page? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] Sent: Tuesday, July 01, 2003 4:10 PM To: [EMAIL PROTECTED] Subject: RE: LDAP Transformer I think there must be a way other than set the parameter in the sitemap like : from the ldap.xml write something like that : (&(cn=)) Is that possible? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] Sent: Tuesday, July 01, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: RE: LDAP Transformer it doesn't work. As I said the filter cannot be definied as parameter in the sitemap. It returns the error [LDAPTransformer] Error in LDAP-Query: javax.naming.directory.InvalidSearchFilterException: Empty filter; It must be a bug or so... But refering to the original may, with the other way to search why is it so slow ? > >hello, >I have integrated ldap into my portal as identhification system. >My problem is that I have to put a filter to search all users from these >seven groups : >DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 >I have to ways, the first would be to set into my filter a parameter in >the sitemap, like > >But it seems that the ldap transformer has a lot of bugs. The parameter >rootdn works, password works, but both filter and serverurl doesn't >work!!! > >So the only way to filter it is to search by the attribute "memberOf" in >every user data. But this attribute is a DN (means not substring or >wildcards search). With a shareware I've found (LDAP Browser) I can >search all these data, but with the ldap transformer I get the error : >[LDAPTransformer] Error in LDAP-Query: >javax.naming.TimeLimitExceededException: [LDAP: error code 3 - Timelimit >Exceeded]; remaining name 'DC=corproot,DC=net' >Is it a bug of the ldap transformer? Is the filter to long/complex? > >Here is the filter () > >(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res , >OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR, O >U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI- D >AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net) ( >memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU = >IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU= I >T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR _ >A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)) > >Thanks > -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 3:44 PM To: [EMAIL PROTECTED] Subject: Re: LDAP Transformer On Tue, 1 Jul 2003 14:55:52 +0200 <[EMAIL PROTECTED]> wrote: > hello, > I have integrated ldap into my portal as identhification system. > My problem is that I have to put a filter to search all users from these > seven groups : > DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 > I have to ways, the first would be to set into my filter a parameter in > the sitemap, like > > But it seems that the ldap transformer has a lot of bugs. The parameter > rootdn works, password works, but both filter and serverurl doesn't > work!!! > try the following filter syntax: (&(uid={request-param:name})) -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XUpdate questions
Michael Wechner wrote: > Erik Bruchez wrote: > >> I am not sure if this is 100% relevant to your need, as it looks >> like you may need XIndice, but we will release soon an XUpdate >> processor that we developed independently from the XUpdate >> implementation that comes with XIndice. > > Under what software license will your XUpdate processor be released? Right now it's still part of OXF, which is not open source, but free (like in free beer) for evaluation and non-commercial use. -Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sendMail using Logicsheet
Yan, Charlene wrote: It may be a silly question. I'm using Cocoon2.1M2's sendMail example. http://localhost:8080/cocoon/samples/mail/sendmail/new.html. When I tried to use sendMail by logicsheet, after the email is sent, there is "setup done" message on the next page. I cannot find out where the message is defined and how I can get rid of it. I have checked simplepage2html.xsl and sendmail_xsp.xml and still cannot find it. Anybody can help me out here? It appears that I have forgotten to remove it from the logicsheet please update from CVS. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XUpdate questions
Erik Bruchez wrote: I am not sure if this is 100% relevant to your need, as it looks like you may need XIndice, but we will release soon an XUpdate processor that we developed independently from the XUpdate implementation that comes with XIndice. Under what software license will your XUpdate processor be released? Thanks Michael It will work with our framework OXF (www.orbeon.com/oxf), but will also be available as a standalone TrAX tranformer that you should be able to integrate with Cocoon. This will come with OXF beta 2 (RC 1?) early next week. -Erik Jonathan Spaeth wrote: > The Xupdate functionality comes with the xindice database. (See the wiki > for more information on how to integrate xindice). > > Jon > > -Original Message- > From: jm [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 9:43 AM > To: [EMAIL PROTECTED] > Subject: XUpdate questions > > > hi all, > > i have one complex xml-document which i want > to edit via my webbrowser with some kinds of forms so i don't really need > a heavy CMS. > > i read about xmlforms, xforms and then i came across XUpdate which > sounds like that i'm looking for. (but i would be glad about any system > which is easy to use instead of XUpdate either) > > so the first problem is, that i don't realy know how to install and use the > XUpdate > functionality into my cocoon 2.0.4. > > i would be glad if anybody could help me or give me a hint where > to find further information. > > regards, > jm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: background task management
Hi David, there are still missing the sources for com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment and com.dotech.messaging.Message to compile all classes. The latter one is less interesting, but the BackgroundThreadEnvironment seems to be pretty cocoon specific ;-) I would suggest you to create a complete source package with sitemap.xmap and cocoon.xconf snippets (already in user documentation) which can easily be compiled and testet. I think this will raise the changes that a commiter will review and commit the code. Do I unterstand correct that the BackgroundThreadEnvironment is some kind of FakeEnvironment (no output/no input)? I digged a bit around in your code and in the cocoon core and environment code and now I am a bit confused about using different Environments with the same Cocoon instance. What I was wondering about is that you use the HTTPEnvironment to resolve (and construct) a Source object (in UploadTaskAction) and later use your own BackgroundThreadEnvironment (in FileUploadTask) to process the source. Does this work without problems? What I want to do is generating PDF files in a background thread triggered by a HTTP request. I guess I have to use the FileSavingEnvironment to do this. I am somehow curious how to correctly use Cocoon and the CocoonComponentManager to do this. Can you give me some hints or point to some docs about this? Is this the following code the right approach? env = new FileSavingEnvironment(...); Processor processor = (Processor)this.componentManager.lookup(Processor.ROLE); processor.process(environment); or is there some way to directly get the Cocoon object from the manager or somewhere else? Thank You, Peter David Kavanagh <[EMAIL PROTECTED]> wrote: >Peter, >Thanks for finding the omission. I've uploaded a zip including the two >actions. >Yes, that environment object was needed to keep the underlying code >happy. I don't do anything with the pipeline results. I just scan for > elements because I was doing some SQL commands via the >SQLTransformer. >If I can be of any further help, please let me know. >Thanks, >David > >Peter Nuetzel . inglobo wrote: > >>Hi David, >> >>I am interested in your background task manager. >> >>I downloaded your document and your code from Bugzilla and found that several >>source files are missing. >>e.g. the Actions described in the document and >>com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the >>FileUploadTask. >> >>I'm specially interested in calling a cocoon pipeline from a background thread. >>Am I right that the BackgroundThreadEnvironment is responsible for that? >> >>Maybe you can upload the missing source files to bugzilla. >> >>Regards, Peter >> >>BTW: I would not recommend to use Microsoft Word files for documentation in an >>open source project. Especially if it's not bound to the Microsoft Windows >>platform. Better you use plain text, html or xml for contributing >>documentation. >> >> >>David Kavanagh <[EMAIL PROTECTED]> wrote: >> >> >>>For those who were interested in something to manage background tasks in >>>cocoon, have a look at bug 20271 in the bugzilla database. Please vote >>>for it so it gets some attention. >>> >>>Thanks, >>>David >>> >>> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: background task management
Hi David, there are still missing the sources for com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment and com.dotech.messaging.Message to compile all classes. The latter one is less interesting, but the BackgroundThreadEnvironment seems to be pretty cocoon specific ;-) I would suggest you to create a complete source package with sitemap.xmap and cocoon.xconf snippets (already in user documentation) which can be easily compiled and testet. I think this will raise the changes that a commiter will review and commit the code. Do I unterstand correct that the BackgroundThreadEnvironment is some kind of FakeEnvironment (no output/no input)? I digged a bit around in your code and in the cocoon core and environment code and now I am a bit confused about using different Environments with the same Cocoon instance. What I was wondering about is that you use the HTTPEnvironment to resolve (and construct) a Source object (in UploadTaskAction) and later use your own BackgroundThreadEnvironment (in FileUploadTask) to process the source. Does this work without problems? What I want to do is generating PDF files in a background thread triggered by a HTTP request. I guess I have to use the FileSavingEnvironment to do this. I am somehow curious how to correctly use Cocoon and the CocoonComponentManager to do this. Can you give me some hints or point to some docs about this? Is this the following code the right approach? env = new FileSavingEnvironment(...); Processor processor = (Processor)this.componentManager.lookup(Processor.ROLE); processor.process(environment); Thank You, Peter David Kavanagh <[EMAIL PROTECTED]> wrote: >Peter, >Thanks for finding the omission. I've uploaded a zip including the two >actions. >Yes, that environment object was needed to keep the underlying code >happy. I don't do anything with the pipeline results. I just scan for > elements because I was doing some SQL commands via the >SQLTransformer. >If I can be of any further help, please let me know. >Thanks, >David > >Peter Nuetzel . inglobo wrote: > >>Hi David, >> >>I am interested in your background task manager. >> >>I downloaded your document and your code from Bugzilla and found that several >>source files are missing. >>e.g. the Actions described in the document and >>com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the >>FileUploadTask. >> >>I'm specially interested in calling a cocoon pipeline from a background thread. >>Am I right that the BackgroundThreadEnvironment is responsible for that? >> >>Maybe you can upload the missing source files to bugzilla. >> >>Regards, Peter >> >>BTW: I would not recommend to use Microsoft Word files for documentation in an >>open source project. Especially if it's not bound to the Microsoft Windows >>platform. Better you use plain text, html or xml for contributing >>documentation. >> >> >>David Kavanagh <[EMAIL PROTECTED]> wrote: >> >> >>>For those who were interested in something to manage background tasks in >>>cocoon, have a look at bug 20271 in the bugzilla database. Please vote >>>for it so it gets some attention. >>> >>>Thanks, >>>David >>> >>> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with WebServiceProxyGenerator
> A year?! Yoink. I had some mods to the WSPG a while ago and I know it > was working correctly. I > don't think they were that long ago, though. Sorry, I didn't mean to imply that it had been completely broken for a year, but just that for whatever reason it has never been up to snuff for what we wanted to use it for. > > Other features needed to make WebServiceProxyGenerator feature-complete, > at > > least for us, include: > > > > * Remote HTTP authentication support > > * Reverse redirects, a la Apache's ProxyPassReverse directive [1] > > I do know the HttpProxyGenerator was intended as a replacement for the > WSPG, but as previous posts > have mentioned, the newer proxygenerator doesn't contain all of the > functionality of the WSPG yet. > It would be nice to get all of the functionality merged into one nice > component (which has the added > bonus of working correctly ;) ) Yes, that sounds good to me! Evan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with if
... Please use a more appropriate forum like Mulberry's xslt list for pure XSLT questions: http://www.mulberrytech.com/xsl/xsl-list/. Joerg Tim Bachta wrote: Can you give me an example of what you are referring to? Tim Bachta -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Group your data by , anything else won't work. http://www.jenitennison.com/xslt/grouping/muenchian.xml http://www.dpawson.co.uk/xsl/sect2/N4486.html Joerg Tim Bachta wrote: I am having trouble with an xsl:if condition. I am testing to see if the date value is the same as the previous date value. If it is I want to skip over the code otherwise I want it to execute the code, simple, here is my code: (the xsl:variable is declared under the stylesheet element as Xml coming in is - XML and XSLT stripped ... and my output is showing up with each productivity-line showing. Thanks for the help Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql:getXXX - wrong diagnostics?
Ah, I misread this. But this can't be fixed until a complete refactoring of XSP. At the moment it's an XSLT transformation to a java file. The binding to the original XSP is completely lost. Joerg Erik Bruchez wrote: Probably that Dmitry would have found a line number pointing to his element in the XSP file useful. -Erik Joerg Heinicke wrote: Why? You use a not existing column name and you get the message "Invalid column name". What's wrong with it? Joerg Dmitry Diskin wrote: Hello I have been struggling with the following problem for a while: if I specify non-existing column name in tag, I get the following error message: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing statement: select something from somewhere : java.sql.SQLException: Invalid column name I think that is misleading, since the error is not in SQL, but in my XSp text. It was very hard to find it out. Regards, Dmitry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with WebServiceProxyGenerator
Lenz, Evan wrote: I have been periodically scanning the list for almost a year, hoping that someone would take this bull by the horns, i.e. wsproxy in general. At SU Law, we are currently supporting legacy ASP pages through use of the HTMLGenerator and hard-coded GET params in sitemap.xmap. I have really been looking forward to a better approach, especially since it would be nice to just allow our Web developer to use her ASP skills to develop forms, surveys, etc. (provided that they generate well-formed output) and know we can integrate them into our Cocoon-based Web site in a solid and maintenance-friendly way. A year?! Yoink. I had some mods to the WSPG a while ago and I know it was working correctly. I don't think they were that long ago, though. Other features needed to make WebServiceProxyGenerator feature-complete, at least for us, include: * Remote HTTP authentication support * Reverse redirects, a la Apache's ProxyPassReverse directive [1] I do know the HttpProxyGenerator was intended as a replacement for the WSPG, but as previous posts have mentioned, the newer proxygenerator doesn't contain all of the functionality of the WSPG yet. It would be nice to get all of the functionality merged into one nice component (which has the added bonus of working correctly ;) ) Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble with if
Can you give me an example of what you are referring to? Tim Bachta -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: Re: Trouble with if Group your data by , anything else won't work. http://www.jenitennison.com/xslt/grouping/muenchian.xml http://www.dpawson.co.uk/xsl/sect2/N4486.html Joerg Tim Bachta wrote: > I am having trouble with an xsl:if condition. I am testing to see if > the date value is the same as the previous date value. If it is I want > to skip over the code otherwise I want it to execute the code, simple, > here is my code: (the xsl:variable is declared under the stylesheet > element as > > Xml coming in is - XML and XSLT stripped ... > and my output is showing up with each productivity-line showing. Thanks > for the help > > Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with WebServiceProxyGenerator
I have been periodically scanning the list for almost a year, hoping that someone would take this bull by the horns, i.e. wsproxy in general. At SU Law, we are currently supporting legacy ASP pages through use of the HTMLGenerator and hard-coded GET params in sitemap.xmap. I have really been looking forward to a better approach, especially since it would be nice to just allow our Web developer to use her ASP skills to develop forms, surveys, etc. (provided that they generate well-formed output) and know we can integrate them into our Cocoon-based Web site in a solid and maintenance-friendly way. Other features needed to make WebServiceProxyGenerator feature-complete, at least for us, include: * Remote HTTP authentication support * Reverse redirects, a la Apache's ProxyPassReverse directive [1] Good luck to whomever tries to fix the issues with WebServiceProxyGenerator! You can count me as another user eagerly awaiting to see progress in this area. Thanks, Evan Lenz Content Management Architect Seattle University School of Law [1] http://httpd.apache.org/docs/mod/mod_proxy.html#proxypassreverse > -Original Message- > From: Tony Collen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 12:08 PM > To: [EMAIL PROTECTED] > Subject: Re: problem with WebServiceProxyGenerator > > Joerg Heinicke wrote: > > There seems to be a real problem with WebServiceProxyGenerator: > > > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg27925.html > > Yeah, It's looking that way :( > > I've noticed posts from other people asking about this, too -- no replies. > > I'm a little short on time this afternoon, I'll try to dig into it tonight > after class... > > > Tony > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql:getXXX - wrong diagnostics?
Probably that Dmitry would have found a line number pointing to his element in the XSP file useful. -Erik Joerg Heinicke wrote: Why? You use a not existing column name and you get the message "Invalid column name". What's wrong with it? Joerg Dmitry Diskin wrote: Hello I have been struggling with the following problem for a while: if I specify non-existing column name in tag, I get the following error message: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing statement: select something from somewhere : java.sql.SQLException: Invalid column name I think that is misleading, since the error is not in SQL, but in my XSp text. It was very hard to find it out. Regards, Dmitry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: including a static XML file in the return from my sql call?
Have a look on the output of the render-logic5.xsl transformation. You have maybe kicked the sql:* elements out of your XML. Joerg Paul Tomsic wrote: I'm trying to import a static XML file into the results of my SQL call. Here's my sitemap.xmap block: and inside render-logic5.xsl, I've got : reports//headlines.xml#xpointer(/headlines) but my final XML only includes the "included" xml, and not the results from the sql query. Help? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with if
If you just want to ignore the subsequent productivity-line records with the same date, i.e. you are only concerned about the first record for a given date, AND records with the same date are ordered, you could use something like: > Group your data by , anything else won't work. > > http://www.jenitennison.com/xslt/grouping/muenchian.xml > http://www.dpawson.co.uk/xsl/sect2/N4486.html > > Joerg > > Tim Bachta wrote: > >> I am having trouble with an xsl:if condition. I am testing to see if >> the date value is the same as the previous date value. If it is I want >> to skip over the code otherwise I want it to execute the code, simple, >> here is my code: (the xsl:variable is declared under the stylesheet >> element as >> >> Xml coming in is - > > > XML and XSLT stripped ... > >> and my output is showing up with each productivity-line showing. Thanks >> for the help >> >> Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql:getXXX - wrong diagnostics?
Why? You use a not existing column name and you get the message "Invalid column name". What's wrong with it? Joerg Dmitry Diskin wrote: Hello I have been struggling with the following problem for a while: if I specify non-existing column name in tag, I get the following error message: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing statement: select something from somewhere : java.sql.SQLException: Invalid column name I think that is misleading, since the error is not in SQL, but in my XSp text. It was very hard to find it out. Regards, Dmitry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XUpdate questions
I am not sure if this is 100% relevant to your need, as it looks like you may need XIndice, but we will release soon an XUpdate processor that we developed independently from the XUpdate implementation that comes with XIndice. It will work with our framework OXF (www.orbeon.com/oxf), but will also be available as a standalone TrAX tranformer that you should be able to integrate with Cocoon. This will come with OXF beta 2 (RC 1?) early next week. -Erik Jonathan Spaeth wrote: > The Xupdate functionality comes with the xindice database. (See the wiki > for more information on how to integrate xindice). > > Jon > > -Original Message- > From: jm [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 9:43 AM > To: [EMAIL PROTECTED] > Subject: XUpdate questions > > > hi all, > > i have one complex xml-document which i want > to edit via my webbrowser with some kinds of forms so i don't really need > a heavy CMS. > > i read about xmlforms, xforms and then i came across XUpdate which > sounds like that i'm looking for. (but i would be glad about any system > which is easy to use instead of XUpdate either) > > so the first problem is, that i don't realy know how to install and use the > XUpdate > functionality into my cocoon 2.0.4. > > i would be glad if anybody could help me or give me a hint where > to find further information. > > regards, > jm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to get transformer handler...
Hello James, James Cummings wrote: Hiya, I'm really new to cocoon so am probably doing something completely wrong. But using cocoon 2.1m3-dev, I want to grab a particular elment by id() from an xml file in the first step of a pipeline, and convert the result to html in the second step. In each instance I want the parameters in the URI available to the xslt. The transformation works perfectly fine on the command line (with saxon), but I keep getting "Unable to get transformer handler for style/xsl/repos2rdg.xsl" as an error (with "Eception in creating Tranform Handler"). it's the XSLTC error message. Looking through possible bugs, I should say that the xsl is fairly straight forward and does not use or or anything referencing another document except the xml file's dtd (which provides necessary entities and such). I've tried specifying type="xslt" in the since (I believe?) this makes it use Xalan? But to no avail. type="xslt" is the default, so XSLTC. Try type="xalan". (xslt => xalan, xsltc => xsltc is true for Cocon 2.0.x) Joerg My sitemap.xmap in the context contains: I'm sure I'm probably going about it completely wrong or something, but this is basically the first time I'm trying to get cocoon to do something in two steps instead of one. ;-) It is probably something really simple. Any suggestions (on and/or off-list -- I get it via digest)? -James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with if
Group your data by , anything else won't work. http://www.jenitennison.com/xslt/grouping/muenchian.xml http://www.dpawson.co.uk/xsl/sect2/N4486.html Joerg Tim Bachta wrote: I am having trouble with an xsl:if condition. I am testing to see if the date value is the same as the previous date value. If it is I want to skip over the code otherwise I want it to execute the code, simple, here is my code: (the xsl:variable is declared under the stylesheet element as Xml coming in is - XML and XSLT stripped ... and my output is showing up with each productivity-line showing. Thanks for the help Tim Bachta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with WebServiceProxyGenerator
Joerg Heinicke wrote: There seems to be a real problem with WebServiceProxyGenerator: http://www.mail-archive.com/[EMAIL PROTECTED]/msg27925.html Yeah, It's looking that way :( I've noticed posts from other people asking about this, too -- no replies. I'm a little short on time this afternoon, I'll try to dig into it tonight after class... Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with WebServiceProxyGenerator
There seems to be a real problem with WebServiceProxyGenerator: http://www.mail-archive.com/[EMAIL PROTECTED]/msg27925.html Joerg Tony Collen wrote: Hübner, Stefan wrote: Hello out there, I'm developing a webapp with cocoon-2.1m2 and want to use the wsproxy. but wsproxy doesn't work, instead it throws an IllegalArgumentException "host parameter is null". the configuration is quite simple and should be correct - as far as the documentation is up to date. [snip/] so, what's going wrong here? i would be glad, if anybody could give an answer. Well, Looking at the source to commons-httpclient at http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HttpConnection.html, it looks like the 'host' which is being passed to the constructor is null. Obviously, it's very strange this is happening. I'll try to dig into the WSPG code today and see if I find anything... Does anybody know if commons-httpclient has changed recently? Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1 CVS and Java 1.4.2
The same over here. My config: * SuSE Linux 8.2 * Sun J2SDK 1.4.2 * Tomcat 4.1.24 * Cocoon CVS from yesterday Antonio Gallardo wrote: Hi: Just reporting that Cocoon 2.1 CVS run using Sun Java 1.4.2. My config: Red Hat Linux 9 Java 1.4.2 Tomcat 4.1.24 Cocoon 2.1 CVS Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with WebServiceProxyGenerator
Hübner, Stefan wrote: Hello out there, I'm developing a webapp with cocoon-2.1m2 and want to use the wsproxy. but wsproxy doesn't work, instead it throws an IllegalArgumentException "host parameter is null". the configuration is quite simple and should be correct - as far as the documentation is up to date. [snip/] so, what's going wrong here? i would be glad, if anybody could give an answer. Well, Looking at the source to commons-httpclient at http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HttpConnection.html, it looks like the 'host' which is being passed to the constructor is null. Obviously, it's very strange this is happening. I'll try to dig into the WSPG code today and see if I find anything... Does anybody know if commons-httpclient has changed recently? Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RuntimeException : The sitemap is null
GUILLAUME Gabriel FTRD/DIH/HDM REN wrote: Hi folks, I'm currently performing some load tests on the following configuration : cocoon 2.0.4 resin 2.1.9 SUN JDK 1.4.003 Linux (RH 9) After 5-10 minutes, I got the following "well known" RuntimeException : The sitemap is null. I've seen on the cocoon-dev archive that a bug report has been recently posted about this, but I just would like to know : - if this bug is planned to be fixed in the 2.0.4 or in the 2.1 ? - if there are some workaround to avoid this problem ? Any hint (change JVM, system, servlet engine) ? IIRC, this was a problem related to the compiled sitemap engine. Have you tried with the intrepreted engine (search for in cocoon.xconf) ? Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use a generated stylesheet
Hi Orson ! The problem is solved, finally ! As I wrote in my previous mail, the problem came from an error in the transformation... The cocoon protocol works in the transformer... Thanks anyway for your answer ! -- Olivier Orson Davis wrote: Looking at how everything uses the avalon framework it appears that the initialize, configure and setup methods are called on every component of a pipeline before any processing occurs. Whether that includes components of subpipelines I don't know, but in the case of Olivier Billard and his sitemap snippets the problem he was running into was the xsl sheet wasn't available when the components tried to initialize, configure and setup. ... ... Now, I think for him your solution would work. The reason Olivier's stuff doesn't work is that the xml from the pipeline for picto-filter.xsl isn't available when the initializes. -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 9:26 AM To: [EMAIL PROTECTED] Subject: RE: Howto use a generated stylesheet On 1 Jul 2003 at 9:19, Orson Davis wrote: The stylesheet must be available before the pipeline is setup. The setup, configure and compose methods for each component in a pipeline is called before the startdocument method is called. In the case of the org.apache.cocoon.transformation.TraxTransformer the call to the stylesheet is made in before any XML gets generated from the generate portion of the pipeline. The only way I can think to work around this is to write your own version of the org.apache.cocoon.transformation.TraxTransformer such that the getTransformerHandler(inputSource) is called from the startDocument. I modified the TraxTransformer in such a way for my application. It could probably be easily modified to meet your needs. If anyone knows a more graceful way to do this, please let me know. Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you: http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets What you say may be correct, but the xsl for the TraxTransformer can be initialized from another pipeline before the main pipeline is fully set up. Surely? (Sorry about last message - accidentally sent message before I'd finished writing it!) Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Howto use a generated stylesheet
Looking at how everything uses the avalon framework it appears that the initialize, configure and setup methods are called on every component of a pipeline before any processing occurs. Whether that includes components of subpipelines I don't know, but in the case of Olivier Billard and his sitemap snippets the problem he was running into was the xsl sheet wasn't available when the components tried to initialize, configure and setup. ... ... Now, I think for him your solution would work. The reason Olivier's stuff doesn't work is that the xml from the pipeline for picto-filter.xsl isn't available when the initializes. -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 9:26 AM To: [EMAIL PROTECTED] Subject: RE: Howto use a generated stylesheet On 1 Jul 2003 at 9:19, Orson Davis wrote: > The stylesheet must be available before the pipeline is setup. The > setup, configure and compose methods for each component in a pipeline > is called before the startdocument method is called. In the case of > the org.apache.cocoon.transformation.TraxTransformer the call to the > stylesheet is made in before any XML gets generated from the generate > portion of the pipeline. > > The only way I can think to work around this is to write your own > version of the org.apache.cocoon.transformation.TraxTransformer such > that the getTransformerHandler(inputSource) is called from the > startDocument. I modified the TraxTransformer in such a way for my > application. It could probably be easily modified to meet your needs. > > If anyone knows a more graceful way to do this, please let me know. Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you: http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets What you say may be correct, but the xsl for the TraxTransformer can be initialized from another pipeline before the main pipeline is fully set up. Surely? (Sorry about last message - accidentally sent message before I'd finished writing it!) Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: background task management
Peter, Thanks for finding the omission. I've uploaded a zip including the two actions. Yes, that environment object was needed to keep the underlying code happy. I don't do anything with the pipeline results. I just scan for elements because I was doing some SQL commands via the SQLTransformer. If I can be of any further help, please let me know. Thanks, David Peter Nuetzel . inglobo wrote: Hi David, I am interested in your background task manager. I downloaded your document and your code from Bugzilla and found that several source files are missing. e.g. the Actions described in the document and com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the FileUploadTask. I'm specially interested in calling a cocoon pipeline from a background thread. Am I right that the BackgroundThreadEnvironment is responsible for that? Maybe you can upload the missing source files to bugzilla. Regards, Peter BTW: I would not recommend to use Microsoft Word files for documentation in an open source project. Especially if it's not bound to the Microsoft Windows platform. Better you use plain text, html or xml for contributing documentation. David Kavanagh <[EMAIL PROTECTED]> wrote: For those who were interested in something to manage background tasks in cocoon, have a look at bug 20271 in the bugzilla database. Please vote for it so it gets some attention. Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: RE: Link Livesites: http://www.ctg.albany.edu]
FYI Joerg Original Message Subject: RE: Link Livesites: http://www.ctg.albany.edu Date: Tue, 1 Jul 2003 09:03:26 -0400 From: Jim Costello <[EMAIL PROTECTED]> To: 'Joerg Heinicke' <[EMAIL PROTECTED]> Joerg and Derek, The white paper (which is nearly a year old) on our Web site does refer to XML applications we had developed using Cocoon 1, so that's why there is no mention of the sitemap of Cocoon2. In fact, that paper is directed to a general web site audience who may be wondering about the advantages/drawbacks of moving from an HTML-based website to an XML-based website. So while we do mention Cocoon since we use it, we primarily focused on general use of XML/XSL. The Web site itself uses Cocoon 2 - with the sitemap performing the functions as noted below of associating stylesheets with XML files - but we didn't start using Cocoon 2 until after we had written the paper. However, in Cocoon 1 the separation of content/style/logic was still achieved when properly implemented within the Cocoon 1 framework. So I don't think the point is incorrect, although I see where it may be a bit misleading or confusing to someone who is familiar with Cocoon. We can look to clarify this in the paper by stating that our references are to Cocoon 1 and that Cocoon 2 handles these things differently and more effectively through its use of the sitemap. But again, the paper is primarily directed to a general audience (not Cocoon specific) and not surprisingly, one of the main questions we'd hear when developing the paper was from Web developers who were familiar with HTML and JavaScript etc., but not too familiar with XML, and asked how you "connected" your XML files with your XSL stylesheets. That basic separation of content from style is still a big mystery to many HTML users. So that's why we explicitly mention the connection using processing instructions in the paper. Thanks for the comments. We'll try to clear up some of its misleading elements. Jim Costello Web Application Developer Center for Technology in Govenment www.ctg.albany.edu [EMAIL PROTECTED] (518) 442-3812 -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 2:37 AM To: [EMAIL PROTECTED] Cc: Jim Costello Subject: Re: Link Livesites: http://www.ctg.albany.edu Hello Derek, yes, that's obviously misleading. But I'm not related to this page. After the mention on this list last week I only asked them to be listed on Cocoon's Livesites page and Jim Costello sent me this mail below. I added the link in the CVS and forwarded this mail, especially because of the impressive figures. Now the report: It's the typical Cocoon 1.x handling using processing instructions. But I don't know if they wrote their own component handling processing instructions or if the report is outdated or simlpy wrong. The X-Cocoon header clearly states that they use Cocoon 2.0.4, but he also wrote (in the mail below) that they still have Cocoon 1.x in use for a part of their homepage. I'm cc-ing Jim Costello, so he can read and clarify your objections. Regards, Joerg Derek Hohls wrote: Joerg I was browsing the white paper referred to; in http://www.ctg.albany.edu/publications/reports/xml?chapter=9 it mentions that XML files are "connected" to XSL files by placing links to the stylesheets at the top of the XML files. It then goes on to say: "This significantly simplifies content management because it enables you to make changes to only one content file and make no changes to the stylesheets because the content is totally separated from the presentation. Figure 8 illustrates how these XML/XSL transformations occur within the Cocoon publishing framework. " This is a little misleading and underplays the true value added by Cocoon in completely separating content from presentation - the "connections" happen in the sitemap; there is no need to specify stylesheets in your XML files; as soon as you do this you are implicitly mixing content and presentation. If you are able, I think some changes would help clarify the situation. Regards Derek -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use a generated stylesheet
Thanks Joerg for your answer, It is in fact an error in my xsl, as I wrote on "Cocoon-dev"... I'm very happy to see that the cocoon protocol works fine with transformers... I'm now looking for the solution of the next problem (there is always a next problem... ;)) Thanks again !! -- Olivier Joerg Heinicke wrote: Hello Olivier, your sitemap looks absolutely ok and I can't spot any error. We did such things too and everything works without any problems. No http:// needed, nothing with wrong order of initialization of components. Olivier Billard wrote: Hi all ! I'm trying to use a generated stylesheet for an xsl transformer and I get this error : org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon:/picto-filter.xsl: This error message lets me guess you are using XSLTC - there is no tool reporting errors better than this one ;-) Try to use Xalan in the pipeline that uses the generated XSLT. Or try to request picto-filter.xsl directly in the browser and have a look on it, maybe there is an error in it. You can also save this generated XSLT to disk and try the transformation statically. org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler Here is a snippet of my sitemap : ... ... here: Isn't the cocoon protocol used in transformers ?? Am I misunderstanding some things ? Thanks in advance !! Regards, Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: background task management
Hi David, I am interested in your background task manager. I downloaded your document and your code from Bugzilla and found that several source files are missing. e.g. the Actions described in the document and com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the FileUploadTask. I'm specially interested in calling a cocoon pipeline from a background thread. Am I right that the BackgroundThreadEnvironment is responsible for that? Maybe you can upload the missing source files to bugzilla. Regards, Peter BTW: I would not recommend to use Microsoft Word files for documentation in an open source project. Especially if it's not bound to the Microsoft Windows platform. Better you use plain text, html or xml for contributing documentation. David Kavanagh <[EMAIL PROTECTED]> wrote: >For those who were interested in something to manage background tasks in >cocoon, have a look at bug 20271 in the bugzilla database. Please vote >for it so it gets some attention. > >Thanks, >David > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use a generated stylesheet
Hello Olivier, your sitemap looks absolutely ok and I can't spot any error. We did such things too and everything works without any problems. No http:// needed, nothing with wrong order of initialization of components. Olivier Billard wrote: Hi all ! I'm trying to use a generated stylesheet for an xsl transformer and I get this error : org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon:/picto-filter.xsl: This error message lets me guess you are using XSLTC - there is no tool reporting errors better than this one ;-) Try to use Xalan in the pipeline that uses the generated XSLT. Or try to request picto-filter.xsl directly in the browser and have a look on it, maybe there is an error in it. You can also save this generated XSLT to disk and try the transformation statically. org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler Here is a snippet of my sitemap : ... ... here: Isn't the cocoon protocol used in transformers ?? Am I misunderstanding some things ? Thanks in advance !! Regards, Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XUpdate questions
Title: RE: XUpdate questions The Xupdate functionality comes with the xindice database. (See the wiki for more information on how to integrate xindice). Jon -Original Message- From: jm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 01, 2003 9:43 AM To: [EMAIL PROTECTED] Subject: XUpdate questions hi all, i have one complex xml-document which i want to edit via my webbrowser with some kinds of forms so i don't really need a heavy CMS. i read about xmlforms, xforms and then i came across XUpdate which sounds like that i'm looking for. (but i would be glad about any system which is easy to use instead of XUpdate either) so the first problem is, that i don't realy know how to install and use the XUpdate functionality into my cocoon 2.0.4. i would be glad if anybody could help me or give me a hint where to find further information. regards, jm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use a generated stylesheet
Thanks Upayavira ! Unfortunately, using the http:// protocol isn't very portable... "Con" and "StephenNg" were able to use the cocoon protocol... I'll ask them. I'm using the CVS version of cocoon. Thanks again... -- Olivier Upayavira wrote: Check out: http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets Regards, Upayavira On 1 Jul 2003 at 16:06, Olivier GUCKERT wrote: Olivier Billard a écrit : Hi all ! I'm trying to use a generated stylesheet for an xsl transformer and I get this error : org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon:/picto-filter.xsl: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler Here is a snippet of my sitemap : ... ... Isn't the cocoon protocol used in transformers ?? Am I misunderstanding some things ? Thanks in advance !! Did youb try : (without the "/" before picto) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier BILLARD Service Propriété Industrielle __ JOUVE 12, rue des Landelles Immeuble Hercules II 35510 CESSON-SEVIGNE FRANCE __ Phone : 33 2 99 86 93 55 Fax: 33 2 99 86 98 01 E-Mail : [EMAIL PROTECTED] __ Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun cas être considérés comme un engagement juridique de quelque nature que ce soit de JOUVE. Tout accord devra être formulé par écrit papier ultérieur signé par un représentant légal de JOUVE. Par ailleurs, si vous recevez ce mail par erreur, merci de nous le signaler et de le détruire ainsi que l'intégralité du document qui pourrait y être joint. The present email and all information included therein do not constitute a legal agreement accorded by Jouve. All legal agreements must be formulated in writing on paper by a legal representative of JOUVE. If you have received this email by mistake, please inform us of that fact and destroy the email and any documents it might contain. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Howto use a generated stylesheet
On 1 Jul 2003 at 9:19, Orson Davis wrote: > The stylesheet must be available before the pipeline is setup. The > setup, configure and compose methods for each component in a pipeline > is called before the startdocument method is called. In the case of > the org.apache.cocoon.transformation.TraxTransformer the call to the > stylesheet is made in before any XML gets generated from the generate > portion of the pipeline. > > The only way I can think to work around this is to write your own > version of the org.apache.cocoon.transformation.TraxTransformer such > that the getTransformerHandler(inputSource) is called from the > startDocument. I modified the TraxTransformer in such a way for my > application. It could probably be easily modified to meet your needs. > > If anyone knows a more graceful way to do this, please let me know. Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you: http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets What you say may be correct, but the xsl for the TraxTransformer can be initialized from another pipeline before the main pipeline is fully set up. Surely? (Sorry about last message - accidentally sent message before I'd finished writing it!) Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Howto use a generated stylesheet
Sadly, for my application no. I am breaking all the rules and having the xml determine which stylesheet I want to use. :-( It is a legacy app and that was the easiest way to update it from cocoon 1.8.1 to cocoon 2.0.4 -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 9:23 AM To: [EMAIL PROTECTED] Subject: RE: Howto use a generated stylesheet On 1 Jul 2003 at 9:19, Orson Davis wrote: > The stylesheet must be available before the pipeline is setup. The > setup, configure and compose methods for each component in a pipeline > is called before the startdocument method is called. In the case of > the org.apache.cocoon.transformation.TraxTransformer the call to the > stylesheet is made in before any XML gets generated from the generate > portion of the pipeline. > > The only way I can think to work around this is to write your own > version of the org.apache.cocoon.transformation.TraxTransformer such > that the getTransformerHandler(inputSource) is called from the > startDocument. I modified the TraxTransformer in such a way for my > application. It could probably be easily modified to meet your needs. > > If anyone knows a more graceful way to do this, please let me know. Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Howto use a generated stylesheet
On 1 Jul 2003 at 9:19, Orson Davis wrote: > The stylesheet must be available before the pipeline is setup. The > setup, configure and compose methods for each component in a pipeline > is called before the startdocument method is called. In the case of > the org.apache.cocoon.transformation.TraxTransformer the call to the > stylesheet is made in before any XML gets generated from the generate > portion of the pipeline. > > The only way I can think to work around this is to write your own > version of the org.apache.cocoon.transformation.TraxTransformer such > that the getTransformerHandler(inputSource) is called from the > startDocument. I modified the TraxTransformer in such a way for my > application. It could probably be easily modified to meet your needs. > > If anyone knows a more graceful way to do this, please let me know. Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LDAP Transformer with XSP page?
Is it possible to create the ldap.xml, with the ldap queries in a xsp page? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] Sent: Tuesday, July 01, 2003 4:10 PM To: [EMAIL PROTECTED] Subject: RE: LDAP Transformer I think there must be a way other than set the parameter in the sitemap like : from the ldap.xml write something like that : (&(cn=)) Is that possible? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] Sent: Tuesday, July 01, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: RE: LDAP Transformer it doesn't work. As I said the filter cannot be definied as parameter in the sitemap. It returns the error [LDAPTransformer] Error in LDAP-Query: javax.naming.directory.InvalidSearchFilterException: Empty filter; It must be a bug or so... But refering to the original may, with the other way to search why is it so slow ? > >hello, >I have integrated ldap into my portal as identhification system. >My problem is that I have to put a filter to search all users from these >seven groups : >DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 >I have to ways, the first would be to set into my filter a parameter in >the sitemap, like > >But it seems that the ldap transformer has a lot of bugs. The parameter >rootdn works, password works, but both filter and serverurl doesn't >work!!! > >So the only way to filter it is to search by the attribute "memberOf" in >every user data. But this attribute is a DN (means not substring or >wildcards search). With a shareware I've found (LDAP Browser) I can >search all these data, but with the ldap transformer I get the error : >[LDAPTransformer] Error in LDAP-Query: >javax.naming.TimeLimitExceededException: [LDAP: error code 3 - Timelimit >Exceeded]; remaining name 'DC=corproot,DC=net' >Is it a bug of the ldap transformer? Is the filter to long/complex? > >Here is the filter () > >(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res , >OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR, O >U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI- D >AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net) ( >memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU = >IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU= I >T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR _ >A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)) > >Thanks > -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 3:44 PM To: [EMAIL PROTECTED] Subject: Re: LDAP Transformer On Tue, 1 Jul 2003 14:55:52 +0200 <[EMAIL PROTECTED]> wrote: > hello, > I have integrated ldap into my portal as identhification system. > My problem is that I have to put a filter to search all users from these > seven groups : > DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 > I have to ways, the first would be to set into my filter a parameter in > the sitemap, like > > But it seems that the ldap transformer has a lot of bugs. The parameter > rootdn works, password works, but both filter and serverurl doesn't > work!!! > try the following filter syntax: (&(uid={request-param:name})) -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Howto use a generated stylesheet
The stylesheet must be available before the pipeline is setup. The setup, configure and compose methods for each component in a pipeline is called before the startdocument method is called. In the case of the org.apache.cocoon.transformation.TraxTransformer the call to the stylesheet is made in before any XML gets generated from the generate portion of the pipeline. The only way I can think to work around this is to write your own version of the org.apache.cocoon.transformation.TraxTransformer such that the getTransformerHandler(inputSource) is called from the startDocument. I modified the TraxTransformer in such a way for my application. It could probably be easily modified to meet your needs. If anyone knows a more graceful way to do this, please let me know. -Original Message- From: Olivier GUCKERT [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 9:06 AM To: [EMAIL PROTECTED] Subject: Re: Howto use a generated stylesheet Olivier Billard a écrit : > > Hi all ! > > I'm trying to use a generated stylesheet for an xsl transformer and I get this error : > > org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon:/picto-filter.xsl: > org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler > > Here is a snippet of my sitemap : > > > > > > > > ... > > > ... > > > > > Isn't the cocoon protocol used in transformers ?? > Am I misunderstanding some things ? > Thanks in advance !! Did youb try : (without the "/" before picto) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use a generated stylesheet
Check out: http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets Regards, Upayavira On 1 Jul 2003 at 16:06, Olivier GUCKERT wrote: > > > Olivier Billard a écrit : > > > > Hi all ! > > > > I'm trying to use a generated stylesheet for an xsl transformer and > > I get this error : > > > > org.apache.cocoon.ProcessingException: Unable to get transformer > > handler for cocoon:/picto-filter.xsl: > > org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in > > creating Transform Handler > > > > Here is a snippet of my sitemap : > > > > > > > > > src="stylesheets/picto-filter-generator.xsl"/> > > > > > > > > ... > > > > > > ... > > > > > > > > > > Isn't the cocoon protocol used in transformers ?? > > Am I misunderstanding some things ? > > Thanks in advance !! > > Did youb try : > > > (without the "/" before picto) ? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use a generated stylesheet
Thanks Olivier but this syntax is not correct. You must put a "/" to refer to the current sitemap, and "//" to refer to the root sitemap (or maybe the inverse). -- Olivier BILLARD Olivier GUCKERT wrote: Olivier Billard a écrit : Hi all ! I'm trying to use a generated stylesheet for an xsl transformer and I get this error : org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon:/picto-filter.xsl: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler Here is a snippet of my sitemap : ... ... Isn't the cocoon protocol used in transformers ?? Am I misunderstanding some things ? Thanks in advance !! Did youb try : (without the "/" before picto) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier BILLARD Service Propriété Industrielle __ JOUVE 12, rue des Landelles Immeuble Hercules II 35510 CESSON-SEVIGNE FRANCE __ Phone : 33 2 99 86 93 55 Fax: 33 2 99 86 98 01 E-Mail : [EMAIL PROTECTED] __ Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun cas être considérés comme un engagement juridique de quelque nature que ce soit de JOUVE. Tout accord devra être formulé par écrit papier ultérieur signé par un représentant légal de JOUVE. Par ailleurs, si vous recevez ce mail par erreur, merci de nous le signaler et de le détruire ainsi que l'intégralité du document qui pourrait y être joint. The present email and all information included therein do not constitute a legal agreement accorded by Jouve. All legal agreements must be formulated in writing on paper by a legal representative of JOUVE. If you have received this email by mistake, please inform us of that fact and destroy the email and any documents it might contain. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LDAP Transformer
I think there must be a way other than set the parameter in the sitemap like : from the ldap.xml write something like that : (&(cn=)) Is that possible? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] Sent: Tuesday, July 01, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: RE: LDAP Transformer it doesn't work. As I said the filter cannot be definied as parameter in the sitemap. It returns the error [LDAPTransformer] Error in LDAP-Query: javax.naming.directory.InvalidSearchFilterException: Empty filter; It must be a bug or so... But refering to the original may, with the other way to search why is it so slow ? > >hello, >I have integrated ldap into my portal as identhification system. >My problem is that I have to put a filter to search all users from these >seven groups : >DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 >I have to ways, the first would be to set into my filter a parameter in >the sitemap, like > >But it seems that the ldap transformer has a lot of bugs. The parameter >rootdn works, password works, but both filter and serverurl doesn't >work!!! > >So the only way to filter it is to search by the attribute "memberOf" in >every user data. But this attribute is a DN (means not substring or >wildcards search). With a shareware I've found (LDAP Browser) I can >search all these data, but with the ldap transformer I get the error : >[LDAPTransformer] Error in LDAP-Query: >javax.naming.TimeLimitExceededException: [LDAP: error code 3 - Timelimit >Exceeded]; remaining name 'DC=corproot,DC=net' >Is it a bug of the ldap transformer? Is the filter to long/complex? > >Here is the filter () > >(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res , >OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR, O >U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI- D >AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net) ( >memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU = >IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU= I >T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR _ >A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)) > >Thanks > -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 3:44 PM To: [EMAIL PROTECTED] Subject: Re: LDAP Transformer On Tue, 1 Jul 2003 14:55:52 +0200 <[EMAIL PROTECTED]> wrote: > hello, > I have integrated ldap into my portal as identhification system. > My problem is that I have to put a filter to search all users from these > seven groups : > DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 > I have to ways, the first would be to set into my filter a parameter in > the sitemap, like > > But it seems that the ldap transformer has a lot of bugs. The parameter > rootdn works, password works, but both filter and serverurl doesn't > work!!! > try the following filter syntax: (&(uid={request-param:name})) -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use a generated stylesheet
Olivier Billard a écrit : > > Hi all ! > > I'm trying to use a generated stylesheet for an xsl transformer and I get this error > : > > org.apache.cocoon.ProcessingException: Unable to get transformer handler for > cocoon:/picto-filter.xsl: > org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating > Transform Handler > > Here is a snippet of my sitemap : > > > > > > > > ... > > > ... > > > > > Isn't the cocoon protocol used in transformers ?? > Am I misunderstanding some things ? > Thanks in advance !! Did youb try : (without the "/" before picto) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LDAP Transformer
it doesn't work. As I said the filter cannot be definied as parameter in the sitemap. It returns the error [LDAPTransformer] Error in LDAP-Query: javax.naming.directory.InvalidSearchFilterException: Empty filter; It must be a bug or so... But refering to the original may, with the other way to search why is it so slow ? > >hello, >I have integrated ldap into my portal as identhification system. >My problem is that I have to put a filter to search all users from these >seven groups : >DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 >I have to ways, the first would be to set into my filter a parameter in >the sitemap, like > >But it seems that the ldap transformer has a lot of bugs. The parameter >rootdn works, password works, but both filter and serverurl doesn't >work!!! > >So the only way to filter it is to search by the attribute "memberOf" in >every user data. But this attribute is a DN (means not substring or >wildcards search). With a shareware I've found (LDAP Browser) I can >search all these data, but with the ldap transformer I get the error : >[LDAPTransformer] Error in LDAP-Query: >javax.naming.TimeLimitExceededException: [LDAP: error code 3 - Timelimit >Exceeded]; remaining name 'DC=corproot,DC=net' >Is it a bug of the ldap transformer? Is the filter to long/complex? > >Here is the filter () > >(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res , >OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR, O >U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI- D >AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net) ( >memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU = >IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU= I >T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR _ >A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)) > >Thanks > -----Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 3:44 PM To: [EMAIL PROTECTED] Subject: Re: LDAP Transformer On Tue, 1 Jul 2003 14:55:52 +0200 <[EMAIL PROTECTED]> wrote: > hello, > I have integrated ldap into my portal as identhification system. > My problem is that I have to put a filter to search all users from these > seven groups : > DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 > I have to ways, the first would be to set into my filter a parameter in > the sitemap, like > > But it seems that the ldap transformer has a lot of bugs. The parameter > rootdn works, password works, but both filter and serverurl doesn't > work!!! > try the following filter syntax: (&(uid={request-param:name})) -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LDAP Transformer
On Tue, 1 Jul 2003 14:55:52 +0200 <[EMAIL PROTECTED]> wrote: > hello, > I have integrated ldap into my portal as identhification system. > My problem is that I have to put a filter to search all users from these > seven groups : > DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06 > I have to ways, the first would be to set into my filter a parameter in > the sitemap, like > > But it seems that the ldap transformer has a lot of bugs. The parameter > rootdn works, password works, but both filter and serverurl doesn't > work!!! > try the following filter syntax: (&(uid={request-param:name})) -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mount vs File for logicsheets inside cocoon.xconf
Derek Hohls wrote: I'd appreciate a brief explanation (or pointer to such) as to why: works (placed inside the section of cocoon.xconf) and why: gives an error (the file could not be located). I have seen both forms of referencing used in examples, but cannot get the latter to work... can someone suggest why?? You know that resources are loaded by class loader, right? Which means that translates to I guess that was the missing piece. PS Due to the above (class loader) resources can be reloaded only together with all the classes. Redeploy of the whole webapp will pick up changes in the logicsheet but then you will have to manually delete all compiled XSPs because Cocoon will not know that it was changed. Vadim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question with wildcard in sitemap
You have a surrounding not only this . This makes it necessary to use {../1}: Regards, Joerg Sliman Bouchareb wrote: hi cocooners, i have the following directory structrue: cocoon:| |protected- |-docs - |-home |-fr |. |-stylsheets |-descriptors |-css and the followinf sitemap: * after a successfull login i call the uri home/home.section and then i have the following match: * well this works fine, nut i want to substitute with because i have many ressources, but this dont work :-(, why that ? thanx -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link Livesites: http://www.ctg.albany.edu
Hello Derek, yes, that's obviously misleading. But I'm not related to this page. After the mention on this list last week I only asked them to be listed on Cocoon's Livesites page and Jim Costello sent me this mail below. I added the link in the CVS and forwarded this mail, especially because of the impressive figures. Now the report: It's the typical Cocoon 1.x handling using processing instructions. But I don't know if they wrote their own component handling processing instructions or if the report is outdated or simlpy wrong. The X-Cocoon header clearly states that they use Cocoon 2.0.4, but he also wrote (in the mail below) that they still have Cocoon 1.x in use for a part of their homepage. I'm cc-ing Jim Costello, so he can read and clarify your objections. Regards, Joerg Derek Hohls wrote: Joerg I was browsing the white paper referred to; in http://www.ctg.albany.edu/publications/reports/xml?chapter=9 it mentions that XML files are "connected" to XSL files by placing links to the stylesheets at the top of the XML files. It then goes on to say: "This significantly simplifies content management because it enables you to make changes to only one content file and make no changes to the stylesheets because the content is totally separated from the presentation. Figure 8 illustrates how these XML/XSL transformations occur within the Cocoon publishing framework. " This is a little misleading and underplays the true value added by Cocoon in completely separating content from presentation - the "connections" happen in the sitemap; there is no need to specify stylesheets in your XML files; as soon as you do this you are implicitly mixing content and presentation. If you are able, I think some changes would help clarify the situation. Regards Derek [EMAIL PROTECTED] 30/06/2003 10:03:04 >>> We had it already on the list last week, here is the official announcement. I have added the link in the CVS. Joerg Original Message Subject: RE: Contact Us Form Date: Mon, 30 Jun 2003 09:41:18 -0400 From: Jim Costello <[EMAIL PROTECTED]> To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]> Yes, We would be glad to be listed on your powered by Cocoon page. Our base url is http://www.ctg.albany.edu. The entire site is done in Cocoon 2, using standard XML/XSL with a docbook schema for our XML documents. The site currently has close to 4000 pages produced by approximately 300 xml/xsl files. We expect to be producing about 10,000 pages by the end of the year with no increase in the number of xml/xsl files. The main content of our site are the reports, guides and studies that our Center produces. We needed a sensible way to manage these documents, control the source file and produce a variety of formats HTML, PDFs, multiple locations on the site. XML and Cocoon has been the answer. The site has only been live for about 1 month, but we've already seen a doubling of our traffic and it's much easier to maintain and find our information on the site now. It's all Cocoon and XML/XSL; no database involvement. We also have a white paper on the site at http://www.ctg.albany.edu/publications/reports/xml that explains our rationale and approach to using xml and cocoon. One other component of the site at http://www2.ctg.albany.edu/egovfirststop/ uses Cocoon 1 and mySQL database to power an information repository application. We will be upgrading this application to Cocoon 2. Jim Costello Web Application Developer Center for Technology in Govenment www.ctg.albany.edu [EMAIL PROTECTED] (518) 442-3812 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Woody textareas?
Nathaniel Alfred wrote: -Original Message- From: Simon Price [mailto:[EMAIL PROTECTED] Sent: Montag, 30. Juni 2003 20:04 ... Cocoon's form handling is (imho) it's weakest area at present although it is rapidly improving with the interplay between flow and xmlform. ... Simon Luke Penca wrote: Are textareas implemented in Woody yet? I cannot find anything in the (oh so sparse) documentation. Furthermore, has anyone used Woody extensively yet? (I know, I know, it's alpha at this point but I need some serious forms handling.) Should I be considering Xforms instead? Who got some experience getting their hands bloodied with forms in Cocoon? I'm ever anxious to find out. ... Luke. I've just started prototyping with Woody and I think it is a diamond in the raw. Finally a form handling package that does not require you to write a bean class or Cocoon action for every little form! I think it can even get better: just made a posting on cocoon-dev on how we could have it working for binding to a bean class as well :-) Coming to the original question: There is no special textarea widget but you can emulate it easily by a field widget with styling: yep. which is then transformed into HTML as: HTH, ALfred. nice angle of attack, (you might want to add a call-template to add the 'wi:validation' section to the show) care to share this as a patch? (it's the surest way to start cutting the diamond out of the raw stone :-)) regards, -marc= -- Marc Portierhttp://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://radio.weblogs.com/0116284/ [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link Livesites: http://www.ctg.albany.edu
Joerg I was browsing the white paper referred to; in http://www.ctg.albany.edu/publications/reports/xml?chapter=9 it mentions that XML files are "connected" to XSL files by placing links to the stylesheets at the top of the XML files. It then goes on to say: "This significantly simplifies content management because it enables you to make changes to only one content file and make no changes to the stylesheets because the content is totally separated from the presentation. Figure 8 illustrates how these XML/XSL transformations occur within the Cocoon publishing framework. " This is a little misleading and underplays the true value added by Cocoon in completely separating content from presentation - the "connections" happen in the sitemap; there is no need to specify stylesheets in your XML files; as soon as you do this you are implicitly mixing content and presentation. If you are able, I think some changes would help clarify the situation. Regards Derek >>> [EMAIL PROTECTED] 30/06/2003 10:03:04 >>> We had it already on the list last week, here is the official announcement. I have added the link in the CVS. Joerg Original Message Subject: RE: Contact Us Form Date: Mon, 30 Jun 2003 09:41:18 -0400 From: Jim Costello <[EMAIL PROTECTED]> To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]> Yes, We would be glad to be listed on your powered by Cocoon page. Our base url is http://www.ctg.albany.edu. The entire site is done in Cocoon 2, using standard XML/XSL with a docbook schema for our XML documents. The site currently has close to 4000 pages produced by approximately 300 xml/xsl files. We expect to be producing about 10,000 pages by the end of the year with no increase in the number of xml/xsl files. The main content of our site are the reports, guides and studies that our Center produces. We needed a sensible way to manage these documents, control the source file and produce a variety of formats HTML, PDFs, multiple locations on the site. XML and Cocoon has been the answer. The site has only been live for about 1 month, but we've already seen a doubling of our traffic and it's much easier to maintain and find our information on the site now. It's all Cocoon and XML/XSL; no database involvement. We also have a white paper on the site at http://www.ctg.albany.edu/publications/reports/xml that explains our rationale and approach to using xml and cocoon. One other component of the site at http://www2.ctg.albany.edu/egovfirststop/ uses Cocoon 1 and mySQL database to power an information repository application. We will be upgrading this application to Cocoon 2. Jim Costello Web Application Developer Center for Technology in Govenment www.ctg.albany.edu [EMAIL PROTECTED] (518) 442-3812 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Contribution: MultiPartPostAction & FilePartGenerator
Thank you for this work and your interest in contributing. I hope this is the first of many. Here are my thoughts after a quick look: The MultiPartPostAction seems unnecessary. What do you gain by placing a copy of the uploaded file which is already in the ObjectModel under the Request object directly in the ObjectModel? The FilePartGenerator OTOH seems useful (I don't think the existing StreamGenerator will do this). As noted above, the action is not needed in the equation - you can just get the FilePart right out of the Request in the Generator. Then, I don't see the reason behind the overloaded getInputSource() - the FilePart is designed to allow polymorphism there - just cast the Request.get() to FilePart and call FilePart.getInputStream() on it. If you find I'm correct, could you look at refactoring this and submitting a patch to Bugzilla? I'd be more than willing to help with anything that doesn't make sense to you. As far as I can see, none of the HSSF stuff is useful without the GnumericWriter which is GPL. The last I heard someone was working directly in the poi project on a Gnumeric "generator" from Excel that could then go straight in cvs. Unless that is now not a project that will ever happen for some reason, I'd be against introducing even the hooks for a GPL version that would just get replaced later. If you want to keep this available for others to contribute and benefit, I'd recommend approaching cocoondev which can by its nature accomodate GPL. By the way, I don't think you can legally use the cocoon package name on the GPL source file - better pick another package name. Still, I am just one voice - does anyone else have opinions one way or the other? Thanks again, Geoff Howard > -Original Message- > From: Simmerman, Eric [mailto:[EMAIL PROTECTED] > Sent: Monday, June 30, 2003 1:50 PM > To: [EMAIL PROTECTED] > Subject: Contribution: MultiPartPostAction & FilePartGenerator > > > Hello all, > As per the Cocoon contribution guidelines, I've made some > Cocoon extensions > source code available for download at: > http://www.tempeststrings.com/cocoon/index.html. > There are two files that meet the guidelines for contribution to > the Cocoon > code base: > org.apache.cocoon.acting.MultiPartPostAction.java & > org.apache.cocoon.generation.FilePartGenerator.java > > Together, these will allow Cocoon to accept a multi part post > containing an > uploaded file and kickoff a pipeline by parsing the file's contents for > generation. > > I've used this source to configure a Cocoon installation as a > real-time data > conversion service. Using the service, a user can upload a file in XML > format, and immediately receive a response containing the same data in any > format supported by Cocoon Serializers. > A sample sitemap.xconf is included in the header comments of > MultiPartPostAction. My hope is that these contributions will > make their way > into the Coccon code base. Please let me know if I can assist in any way. > Please note that the other files (not the two described above) > found in this > distribution rely on GPL code and can not be released under the Apache > license. > > Thanks, > -Eric Simmerman > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: problems with a real mobile phone
Thanks for your help...I was setting up the serializer wrongly for the wml..was using the wrong encoding..your snippet worked perfectly.. Regards Pierre > ho, > > if you haven't setup a serializer for wml (specifying the doctype, etc.), > then you should do so. > > that would look something like: > > ... > mime-type="text/vnd.wap.wml" name="wml" > src="org.apache.cocoon.serialization.XMLSerializer"> > -//WAPFORUM//DTD WML > 1.1//EN > > http://www.wapforum.org/DTD/wml_1.1.xml > ISO-8859-1 > > ... > > >> -Ursprüngliche Nachricht- >> Von: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] >> Auftrag von [EMAIL PROTECTED] >> Gesendet: Montag, 30. Juni 2003 13:09 >> An: [EMAIL PROTECTED] >> Betreff: problems with a real mobile phone >> >> >> Hi.. >> >> I'm trying to access my cocoon application on my computer with a real >> mobile device (a panasonic GD67 GPRS) but I'm always getting >> 'unsupported >> content type'. >> With emulators it all worked properly but now I'm getting this problem >> on >> a real mobile. I'm using custom generators to create XML and then I'm >> using xsl to convert the xml into WML. >> I'm managing to connect to the application with my mobile but it seems >> that the problem is that no proper WML is given out. >> >> Maybe I have to arrange something in the serializer of the >> sitemap for wml? >> >> I would appreciate any hints and help.. >> >> I'm using Jdk 1.4.1 , Tomcat 4.1.18, Cocoon 2.0.4 >> >> (The mobile's user agent string is: Panasonic-GAD67/1.0 >> UP.Browser/5.0.3.5 >> (GUI)) >> >> >> -- >> - >> Donate to YMCA's Help The Homeless Campaign at http://shop.di-ve.com >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- Donate to YMCA's Help The Homeless Campaign at http://shop.di-ve.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refactoring Flow/XMLForms example
Further experiment and was able to answer my question: On Monday, June 30, 2003, at 09:54 AM, [EMAIL PROTECTED] wrote: I'm continuing to play with Flow and in particular, XMLForms: Today I decided to refactor the flow-driven feedback wizard in the samples: http://localhost:8080/cocoon/samples/xmlform/flow In particular, I wanted to get rid of the inlined validation function definitions in the calls to Xform.sendview (). The solution is that while you still have to call the function wrapper in the arguments, you can define your functions elsewhere thus: function UserInfo_validateUserIdentity (xform) { var bean = xform.getModel(); print("I can also do validation in JavaScript"); print("age = "+xform.getValue("number(/age)")); print("role = "+bean.role); if (bean.age > 40) { xform.addViolation("/age", "Hey, you're too old"); } } UserInfo.prototype.validateUserIdentity = function (xform) { UserInfo_validateUserIdentity (xform); } ... xform.sendView("userIdentity", "userIdentity.xml", function (xform) { userinfo.validateUserIdentity (xform); }); and now the refactored example works as before. -- whump - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Woody textareas?
> -Original Message- > From: Simon Price [mailto:[EMAIL PROTECTED] > Sent: Montag, 30. Juni 2003 20:04 ... > Cocoon's form handling is (imho) it's weakest area at present > although > it is rapidly improving with the interplay between flow and xmlform. ... > Simon > > Luke Penca wrote: > > Are textareas implemented in Woody yet? I cannot find > anything in the (oh so sparse) documentation. > > > > Furthermore, has anyone used Woody extensively yet? (I > know, I know, it's alpha at this point but I need some > serious forms handling.) Should I be considering Xforms > instead? Who got some experience getting their hands > bloodied with forms in Cocoon? I'm ever anxious to find out. ... > > Luke. I've just started prototyping with Woody and I think it is a diamond in the raw. Finally a form handling package that does not require you to write a bean class or Cocoon action for every little form! Coming to the original question: There is no special textarea widget but you can emulate it easily by a field widget with styling: which is then transformed into HTML as: HTH, ALfred. This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender’s company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender’s company. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Saxon transformer together with Xalan and XSLTC
Peter Velychko wrote: So there is duplicating "xmlns" attributes in XML generated by Xalan. Could it be that the AElfred parser from the saxon jar kicks in? IT is known to report namespace attributes differently than Xerces which may cause hickups in some Xalan versions (unfortunately, this is a dark corner in the SAX spec). Try to remove the services entry from the saxon jar and see whether the problem persists. it this fails, see whether you can import the XML parser functionality from the servlet container rather than the webapp lib. OTOH, it could be the XML parser imported from the servlet container which causes problems. Try to use the Xerces component instead of the SAXParser component to exclude this possiblity. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Contribution: MultiPartPostAction & FilePartGenerator
Eric, Please use Bugzilla (http://nagoya.apache.org) to provide your enhancements otherwise I fear that they will be overlooked. Additionally I cc'ed cocoon-dev. Without looking at your sources and examples: What does your generator provide what http://cocoon.apache.org/2.1/userdocs/generators/stream-generator.html can't do for you? Cheers, Reinhard > -Original Message- > From: Simmerman, Eric [mailto:[EMAIL PROTECTED] > Sent: Monday, June 30, 2003 7:50 PM > To: [EMAIL PROTECTED] > Subject: Contribution: MultiPartPostAction & FilePartGenerator > > > Hello all, > As per the Cocoon contribution guidelines, I've made > some Cocoon extensions source code available for download at: > http://www.tempeststrings.com/cocoon/in> dex.html. > There are > two files that meet the guidelines for > contribution to the Cocoon code base: > org.apache.cocoon.acting.MultiPartPostAction.java & > org.apache.cocoon.generation.FilePartGenerator.java > > Together, these will allow Cocoon to accept a multi part post > containing an uploaded file and kickoff a pipeline by parsing > the file's contents for generation. > > I've used this source to configure a Cocoon installation as a > real-time data conversion service. Using the service, a user > can upload a file in XML format, and immediately receive a > response containing the same data in any format supported by > Cocoon Serializers. A sample sitemap.xconf is included in the > header comments of MultiPartPostAction. My hope is that these > contributions will make their way into the Coccon code base. > Please let me know if I can assist in any way. Please note > that the other files (not the two described above) found in > this distribution rely on GPL code and can not be released > under the Apache license. > > Thanks, > -Eric Simmerman > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Woody textareas?
Cocoon's form handling is (imho) it's weakest area at present although it is rapidly improving with the interplay between flow and xmlform. Unless your app is simple, I'd recommend not wasting time on the simple form validator and db actions. "Pure" xmlforms where you end up writing java code for each form is elegant but time consuming. I've not looked in detail at woody. However, I'd strongly recommend that you take a look at the petstore sample. This uses javascript as the interface to the persistence layer part of your model and (to my taste) a really easy to understand but flexible logic layer in a separate javascript file. The sample has switchable view layers that can be velocity/xslt/jxpath/jsomethingelse. The velocity vesion is very clean and easy to read (but there again, I used to be an assembler programmer!). Use is made of xmlform - with validation done in either schematron and/or javascript. Cheers Simon Luke Penca wrote: Are textareas implemented in Woody yet? I cannot find anything in the (oh so sparse) documentation. Furthermore, has anyone used Woody extensively yet? (I know, I know, it's alpha at this point but I need some serious forms handling.) Should I be considering Xforms instead? Who got some experience getting their hands bloodied with forms in Cocoon? I'm ever anxious to find out. Thanks in advance, Luke. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Simon Price Institute for Learning and Research Technology University of Bristol 8-10 Berkeley Square Bristol BS8 1HH United Kingdom Direct: +44 (0)7071 226 720 Office: +44 (0)117 928 7193 Fax: +44 (0)117 928 7112 [EMAIL PROTECTED] http://www.ilrt.bristol.ac.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Woody textareas?
On 30/06/2003 18:58 Luke Penca wrote: Are textareas implemented in Woody yet? I cannot find anything in the (oh so sparse) documentation. Have you checked with http://wiki.cocoondev.org/Wiki.jsp?page=Woody ? It's not fully up to date, but that & tracking CVS commit messages might help you already. Furthermore, has anyone used Woody extensively yet? (I know, I know, it's alpha at this point but I need some serious forms handling.) Should I be considering Xforms instead? Who got some experience getting their hands bloodied with forms in Cocoon? I'm ever anxious to find out. I jotted down already some of the background of Woody's genesis over here: http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=105491414614553&w=2 So its feature list is in active expansion, and it has been created to be extensively used and actively supported. HTH, -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP+SVG in cocoon-2.0.4
hi Derek Thanks a lot for your help...and to the one who put those scripts It was a real help to me!! regards Gautam >>> [EMAIL PROTECTED] 06/30/03 02:41AM >>> Gautam Look at: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105550804911211&w=2 The use of SVG is well described in a set of sample code. Derek >>> [EMAIL PROTECTED] 30/06/2003 01:59:30 >>> hi there, I want to display an SVG image along side the web page content on the users browser(user has Adobe SVG Viewer3.0 installed ) by putting the SVG document within my XSP page. As long as my pipeline displays the svg as png raster image using the SVG2PNG serializer,it works fine.But the associated image properties such as Zoom-In or Zoom-out are lost. For the user to keep using these properties through IE,i want to pass the raw SVG content to the users browser which then will handle the responsibility of displaying the SVG . My xsp documents looks something like this: http://apache.org/xsp";> Test SVG Page You can use the mouse right click event to Zoom-In or Zoom-Out Currently my sitemap pipeline looks like this: What is the bext possible way to go about these? Can anyone help me out on these? regards, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading xml from pipeline into a flow script
Thanks. I was glad of any solution at midnight on saturday, but I'll watch to see how the fom evolves as you advise. Thanks. Simon Reinhard Pötz wrote: This will work but not with the upcoming Flow Object Model. You won't have access to the environment any more. If you are interested in the FOM you find a reference here: http://wiki.cocoondev.org/Wiki.jsp?page=FOM (be aware that this is a working document and may change!!!) So currently the easiest way is { ... var uri = "cocoon://blablabla"; var resolver = cocoon.componentManager.lookup( Packages.org.apache.cocoon.environment.SourceResolver.ROLE ); var srce = resolver.resolveURI( uri ); cocoon.componentManager.release( resolver ); var dom = Packages.org.apache.cocoon.components.source.SourceUtil.toDOM( srce ); ... } which will probably change with FOM to { ... var uri = "cocoon://blablabla"; var resolver = cocoon.getComponent( Packages.org.apache.cocoon.environment.SourceResolver.ROLE ); var srce = resolver.resolveURI( uri ); // release of the component (not defined yet var dom = Packages.org.apache.cocoon.components.source.SourceUtil.toDOM( srce ); ... } Hope this helps! Reinhard -Original Message- From: Frank Taffelt [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: Re: reading xml from pipeline into a flow script you can use this snippet: function getString(src) { try { var is = cocoon.environment.resolveURI(src).getInputStream(); return Packages.org.apache.cocoon.components.language.markup.xsp.XSPU til.getContent s(is); } catch(ex) { print("ex:" + ex); } return null; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Simon Price Institute for Learning and Research Technology University of Bristol 8-10 Berkeley Square Bristol BS8 1HH United Kingdom Direct: +44 (0)7071 226 720 Office: +44 (0)117 928 7193 Fax: +44 (0)117 928 7112 [EMAIL PROTECTED] http://www.ilrt.bristol.ac.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLFORM and Cirilic encoding
Thank you Peter! It works perfect! :-)Peter Velychko <[EMAIL PROTECTED]> wrote: Hello Galia,Try to set the form encoding. It is in the "web.xml" file:form-encodingutf-8Simply incomment it for cocoon 2.1.GA> Hello,GA> I have a problem with Cirilic encoding when working with xmlforms. Everything is ok exept when I submit a cirilic text in a textbox:GA> I write: ÃàëÿGA> and on the server it appears like: #208;#208;°#208;»#209;#143;GA> In select or labels the text appears as cirilic. But in textboxes and textareas - not.GA> Any idea?GA> ThanksGA> GaliaGA> -GA> Do you Yahoo!?GA> SBC Yahoo! DSL - Now only $29.95 per month!-- Best regards,Peter mailto:[EMAIL PROTECTED]-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: XMLFORM and Cirilic encoding
Hello Galia, Try to set the form encoding. It is in the "web.xml" file: form-encoding utf-8 Simply incomment it for cocoon 2.1. GA> Hello, GA> I have a problem with Cirilic encoding when working with xmlforms. Everything is ok exept when I submit a cirilic text in a textbox: GA> I write: Галя GA> and on the server it appears like: #208;“#208;?#208;?#209;#143; GA> In select or labels the text appears as cirilic. But in textboxes and textareas - not. GA> Any idea? GA> Thanks GA> Galia GA> - GA> Do you Yahoo!? GA> SBC Yahoo! DSL - Now only $29.95 per month! -- Best regards, Petermailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about Xindice
On Sun, 29 Jun 2003 22:00:20 +0200 "Josema Alonso" <[EMAIL PROTECTED]> wrote: > Hi, Yury. > > It could be due to a number of reasons. It could depend on JDK version > you're using, if you're using DOM or SAX, the XPath expression you're using, > if you're validating data or not...or even a bug...you have provided very > little info. > > Anyway, I suggest you should try at [EMAIL PROTECTED] which is > more suitable for this kind of questions. And maybe you could try to search > its archives (http://marc.theaimsgroup.com/?l=xindice-users). I remember > questions like these surfaced recently. > > Best. > Thanks for your reply. I use JDK v1.3, Xindice database deployed on tomcat 4.1.18 I would like to learn about the maximum productivity of xindice and ways to tune it (may be in tomcat side). And can I defend the xindice from being overloaded by high traffic (for example, if web-robots scan my site). -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Saxon transformer together with Xalan and XSLTC
Hi, PV> I try to use Saxon 7.6 together with Xalan PV> There is the following warning in the logs when I try to place PV> saxon.jar to WEB-INF/lib: PV> Date: Mon Jun 30 14:01:53 EEST 2003 (1056970913164) PV> Thread: PoolThread-4 PV> Message #: 1 PV> Level: WARN PV> NDC: PV> Category: sitemap.serializer.xhtml PV> Message:Cannot know if transformer needs namespaces attributes - assuming NO. PV> Location: org.apache.avalon.framework.logger.LogKitLogger.warn(LogKitLogger.java:159) PV> Thrown: PV> org.xml.sax.SAXException: Saxon requires an XML parser that reports the QName of each element PV> at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:170) PV> at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:128) PV> at org.apache.cocoon.serialization.AbstractTextSerializer.needsNamespacesAsAttributes(AbstractTextSerializer.java:341) PV> at org.apache.cocoon.serialization.AbstractTextSerializer.configure(AbstractTextSerializer.java:268) PV> at org.apache.cocoon.serialization.XMLSerializer.configure(XMLSerializer.java:76) PV> ... PV> The result is the HTML and XHTML serializers work properly only after PV> Saxon transformer. They work incorrectly after XSLT and Xalan PV> transformers (f.e. the attribute "href" isn't generated, although as PV> far as I've found the xml-s after all transformers are the same). My apologies, but the same is the "input" xml. The "output" xml-s are different: for Saxon - http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Samples List Sample 1 - view Sample 2 - view for Xalan - http://www.w3.org/1999/xhtml";> http://www.w3.org/1999/xhtml";> http://www.w3.org/1999/xhtml";>Samples http://www.w3.org/1999/xhtml"/> http://www.w3.org/1999/xhtml"/> http://www.w3.org/1999/xhtml";> http://www.w3.org/1999/xhtml";>List http://www.w3.org/1999/xhtml"; xmlns=""> Sample 1 - http://www.w3.org/1999/xhtml"; xmlns="">view http://www.w3.org/1999/xhtml"; xmlns="" xmlns=""> Sample 2 - http://www.w3.org/1999/xhtml"; xmlns="" xmlns="">view So there is duplicating "xmlns" attributes in XML generated by Xalan. PV> My emviroment is Win2000, jdk1.4.1_02, Jetty4.2.9, Cocoon2.1m3-dev -- Best regards, Petermailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reading xml from pipeline into a flow script
This will work but not with the upcoming Flow Object Model. You won't have access to the environment any more. If you are interested in the FOM you find a reference here: http://wiki.cocoondev.org/Wiki.jsp?page=FOM (be aware that this is a working document and may change!!!) So currently the easiest way is { ... var uri = "cocoon://blablabla"; var resolver = cocoon.componentManager.lookup( Packages.org.apache.cocoon.environment.SourceResolver.ROLE ); var srce = resolver.resolveURI( uri ); cocoon.componentManager.release( resolver ); var dom = Packages.org.apache.cocoon.components.source.SourceUtil.toDOM( srce ); ... } which will probably change with FOM to { ... var uri = "cocoon://blablabla"; var resolver = cocoon.getComponent( Packages.org.apache.cocoon.environment.SourceResolver.ROLE ); var srce = resolver.resolveURI( uri ); // release of the component (not defined yet var dom = Packages.org.apache.cocoon.components.source.SourceUtil.toDOM( srce ); ... } Hope this helps! Reinhard > -Original Message- > From: Frank Taffelt [mailto:[EMAIL PROTECTED] > Sent: Monday, June 30, 2003 9:34 AM > To: [EMAIL PROTECTED] > Subject: Re: reading xml from pipeline into a flow script > > > you can use this snippet: > > function getString(src) { > try { > var is = > cocoon.environment.resolveURI(src).getInputStream(); > return > Packages.org.apache.cocoon.components.language.markup.xsp.XSPU > til.getContent > s(is); > } > catch(ex) { > print("ex:" + ex); > } > return null; > > > } > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reading xml from pipeline into a flow script
you can use this snippet: function getString(src) { try { var is = cocoon.environment.resolveURI(src).getInputStream(); return Packages.org.apache.cocoon.components.language.markup.xsp.XSPUtil.getContent s(is); } catch(ex) { print("ex:" + ex); } return null; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP+SVG in cocoon-2.0.4
Gautam Look at: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105550804911211&w=2 The use of SVG is well described in a set of sample code. Derek >>> [EMAIL PROTECTED] 30/06/2003 01:59:30 >>> hi there, I want to display an SVG image along side the web page content on the users browser(user has Adobe SVG Viewer3.0 installed ) by putting the SVG document within my XSP page. As long as my pipeline displays the svg as png raster image using the SVG2PNG serializer,it works fine.But the associated image properties such as Zoom-In or Zoom-out are lost. For the user to keep using these properties through IE,i want to pass the raw SVG content to the users browser which then will handle the responsibility of displaying the SVG . My xsp documents looks something like this: http://apache.org/xsp";> Test SVG Page You can use the mouse right click event to Zoom-In or Zoom-Out Currently my sitemap pipeline looks like this: What is the bext possible way to go about these? Can anyone help me out on these? regards, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: into problem
On 29.Jun.2003 -- 09:50 PM, C Bram Dit Saint Amand wrote: > This is an extract from "request_attributes.xsl", a logicsheet which is > called by "some_page.xsp" > > > name="webaction"/> > $webaction-value most likely contains some XSP or Java code at the time the logicsheet is applied -- which is when the XSP is translated to Java servlet sourcecode *not* which every request! So you may not use XSL to check for run time values in a logicsheet. You need to use Java instead. > > perso-mysql > > INSERT INTO FavouritesBasketSession(SessionID, > URL) VALUES('', ' name="relative-url"/>'); > > > > > > When I access "some_page.xsp?webaction=add_to_favourites_session", the > template is executed: the is created, but what is inside > the *isn't* executed, which suggests that there is a problem with > the . For information, displaying the variable's content > with works (it correctly displays > 'add_to_favourites_session'), but with it doesn't display > anything. Indeed, since it effectively copies the XSP / Java code used to read the request attribute. It does not, however, copy the _value_ of that attribute. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: svgz to jpeg ?
I think you'll have to write your own GZipGenerator or possibly a GZipSource? You are right that the gzipped svg document is not a ZIP archive (it doesn't include a table of contents or anything - it's just a single BLOB). On the bright side, gzip is trivial to use in Java, so writing your own shouldn't be hard. CHeers Con > -Original Message- > From: rob [mailto:[EMAIL PROTECTED] > Sent: Monday, 30 June 2003 09:35 > To: [EMAIL PROTECTED] > Subject: Re: svgz to jpeg ? > > > On 28 Jun 2003 at 14:51, Upayavira wrote: > > >Ah. So your file on disc is compressed svg. Okay, so you > need to uncompress > it into > >XML and pass that into the SVG2JPG serializer. There's two > ways to do that, > either > >with a zip generator (I think there's an example of one in > the Langham & > Ziegler > >Cocoon book), or using the Jar protocol (see > >http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample). > > > >Both should extract your zipped SVG ready for converting to JPG. > > Thanks again for you reply. > > I've tried using the jar protocol, but it does not accept the > 'svgz' file as > a > valid zip archive. I guess this is because there is no > physical file to > extract > i.e jar:http//localhost/xyz.svg!??? > > Even Winzip will not open it. > > I haven't tried the zip generator yet because I haven't found any > documentation, > and someone has borrowed my Cocoon book !! > > Regards, > > Rob. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: into problem
I'm not an expert (sorry) so this is only a suggestion 1) some whitespaces might interfere between the string 'add_to_favourites_session' and the value of the $webaction-value variable. I would suggest a formula more like ; normalize-space($query) ...just to make sure. 2) In xsl, calling a variable by xsl:value-of only selects the string part of the nodes (the text()). It means that if the variable is more than simple text and include nodes around it or inside it (it's called a node-set or nodeset because it contains tags and text, hope I'm not making too much mistakes saying that), only the text will appear when asking for xsl:value-of. xsl-copy-of on the other hand, copies all what is inside the variable, nodes (tags) and text and attributes ... The best referenc is at the xsl FAQ (in the "variable" page): http://www.dpawson.co.uk/xsl/sect2/N8090.html#d8123e583 Solution (if that is the problem, which is not sure at all): Most xsl processor have a "node-set" or "nodeset" function which is an extension of the xsl specification. For xalan it's xalan:nodeset, but you've got some for saxon or xt. (beware, you've got to add the specific namespace of your processor on top of your page for this tags to be executed) This stuff enable you to check parts by parts the inside of the variable, for exemple calling by templates for each part (nodes attributes and text) Hope it helps, but I guess you might want better information. The xsl list is very active. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list François Parlant - Original Message - From: "C Bram Dit Saint Amand" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 10:50 PM Subject: into problem > This is an extract from "request_attributes.xsl", a logicsheet which is > called by "some_page.xsp" > > > > name="webaction"/> > > > perso-mysql > > INSERT INTO FavouritesBasketSession(SessionID, > URL) VALUES('', ' name="relative-url"/>'); > > > > > > > When I access "some_page.xsp?webaction=add_to_favourites_session", the > template is executed: the is created, but what is inside > the *isn't* executed, which suggests that there is a problem with > the . For information, displaying the variable's content > with works (it correctly displays > 'add_to_favourites_session'), but with it doesn't display > anything. > > > The questions: > -- > - Why doesn't it work? > - I'm a Cocoon newbie, so if you have any comments on my code (how to > write it better), I'm open to suggestions. > > > Thanks in advance. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svgz to jpeg ?
On 28 Jun 2003 at 14:51, Upayavira wrote: >Ah. So your file on disc is compressed svg. Okay, so you need to uncompress it into >XML and pass that into the SVG2JPG serializer. There's two ways to do that, either >with a zip generator (I think there's an example of one in the Langham & Ziegler >Cocoon book), or using the Jar protocol (see >http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample). > >Both should extract your zipped SVG ready for converting to JPG. Thanks again for you reply. I've tried using the jar protocol, but it does not accept the 'svgz' file as a valid zip archive. I guess this is because there is no physical file to extract i.e jar:http//localhost/xyz.svg!??? Even Winzip will not open it. I haven't tried the zip generator yet because I haven't found any documentation, and someone has borrowed my Cocoon book !! Regards, Rob. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about Xindice
Hi, Yury. It could be due to a number of reasons. It could depend on JDK version you're using, if you're using DOM or SAX, the XPath expression you're using, if you're validating data or not...or even a bug...you have provided very little info. Anyway, I suggest you should try at [EMAIL PROTECTED] which is more suitable for this kind of questions. And maybe you could try to search its archives (http://marc.theaimsgroup.com/?l=xindice-users). I remember questions like these surfaced recently. Best. - Original Message - From: "Yury Mikhienko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 4:35 PM Subject: about Xindice > Hi cocooners! > > I implements the news system on my Web-site based on xindice 1.1b, but time of time > database works is very slow :(( (big timeout on response ) . > It's strange behaviour, because in collection I stored no more 150 documents. > Can I make the work of xindice database more faster? > Any solutions for tuning? > > Thanks all for advise! > > -- > > Best regards, > Yury Mikhienko. > IT engineer, ZAO "Mobicom-Kavkaz" > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practices for validating request params?
You may want to take a look at the (from my dodgy memory) req-params action which does a simple existential check on request parameters. There's an example of its use in the modular database sample code's sitemap. Cheers Simon Sonny Sukumar wrote: Hi guys, I was wondering what the best way is to validate request parameters. I have a few questions: 1.) What is the best way to validate the *existence* of all expected request params (both for simple queries and for posting form data)? By this, I mean I'd ideally like to notify the client if any request param wasn't sent. I was thinking I could write a dedicated action to do this validation before another action extracts/formats the values. 2.) Do you think it is even a good practice to take the time/effort/cpu power to validate that all expected request params were sent and notify the client if they were not? Otherwise, my action that extracts/formats the values would just end up throwing things like NullPointerExceptions, NumberFormatExceptions, etc. when it tries to extract/format the values. This doesn't seem very elegant at all to me, even if I do wrap them in ProcessingExceptions before throwing them. One other reason I don't want to throw these seemingly odd and random exceptions is because they'll just give a stack trace that says my code failed on Line XXX. On my team we have another development group that is working on buiding the actual XHTML webpages and making sure they work with the backend. So these sorts of exceptions and stack traces won't help them at all to figure out what went wrong. If I notify them they forgot a param, they can say "Oh , I forgot to pass the XYZ param--that's why it's failing" and fix their XHTML code in short order. I'm interested to hear all of your thoughts! Thanks, Sonny _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Simon Price Institute for Learning and Research Technology University of Bristol 8-10 Berkeley Square Bristol BS8 1HH United Kingdom Direct: +44 (0)7071 226 720 Office: +44 (0)117 928 7193 Fax: +44 (0)117 928 7112 [EMAIL PROTECTED] http://www.ilrt.bristol.ac.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reading xml from pipeline into a flow script
Title: RE: reading xml from pipeline into a flow script One simple way of accomplishing this is to simply, define pipeline to generate, transform, and serialize the xml. Then, in the flowscript, simply use the jaxp dom api to load the generated xml: flow() { var document = Packages.javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().build(http://uri-to-xml-file); ... document.getDocumentElement(); // it is now a dom } -Original Message- From: Simon Price [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 28, 2003 3:25 PM To: [EMAIL PROTECTED] Subject: reading xml from pipeline into a flow script From within a flow script, I would like to read (or pass in) xml generated by a series of pipeline xslt transformations. Please could someone give me a pointer on how to do this? Cheers Simon --- Simon Price Institute for Learning and Research Technology University of Bristol 8-10 Berkeley Square Bristol BS8 1HH United Kingdom Direct: +44 (0)7071 226 720 Office: +44 (0)117 928 7193 Fax: +44 (0)117 928 7112 [EMAIL PROTECTED] http://www.ilrt.bristol.ac.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: add user to unix
With Runtime.exec() but you need to read up heavily on it's use and/or ask about it on a more appropriate general java list or forum. I can tell you quickly that anytime you need to use exec() you should look into a threaded approach to handle parsing the standard error and standard out streams of your native process or you risk a hung jvm. Geoff > 3- a java class which calls a shell script > > is there any one who can tell me how i can realise this, i think the most > simply is possibility 3, but how i can do that ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svgz to jpeg ?
On 28 Jun 2003 at 8:39, rob wrote: > Thanks for you reply, > > but how do I generate the source ? > > The file generator only seems to accept uncompressed > svg. When I use a compressed svg as the source I get the > following error message : Ah. So your file on disc is compressed svg. Okay, so you need to uncompress it into XML and pass that into the SVG2JPG serializer. There's two ways to do that, either with a zip generator (I think there's an example of one in the Langham & Ziegler Cocoon book), or using the Jar protocol (see http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample). Both should extract your zipped SVG ready for converting to JPG. Hope that helps. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install cocoon 2.1-m2 on tomcat 4.1.24
On Fri, Jun 27, 2003 at 11:32:00AM -0400, Geoff Howard wrote: > At 09:36 AM 6/27/2003, you wrote: > >Geoff, > > > >I think you misunderstood my mail, I *DON'T* have a copy of > >xmlParserAPIs.jar in the tomcat common/endorsed directory. > > Ah, sorry - I thought the situation was reversed. > > >However I just found the problem, inspired by some info from the link > >you mention. The problem was that the start menu items for > >starting/stoping tomcat didn't use the startup or shutdown scripts and > >hence java.endorsed.dirs wasn't being set and therefore the incorrect > >jars were being referenced. > > Ok, let me make sure I understand this one: so you installed tomcat on > windows and when using the windows icons installed for starting and > stopping tomcat, you find that they don't set the endorsed dir in the > same way as the shell script? That would be a useful thing to keep in > mind and may well be unintentional on their part. If that's the case, > it would be worth submitting a bug and patch to them to see if they > want to correct that for future releases? > Yes that is correct. I do plan to submit a bug report when I can work out where to file it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svgz to jpeg ?
Thanks for you reply, but how do I generate the source ? The file generator only seems to accept uncompressed svg. When I use a compressed svg as the source I get the following error message : Original Exception: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:318) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:337) at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:198) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:277) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:489) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:150) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307) at org.apache.cocoon.Cocoon.process(Cocoon.java:628) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.Applic
Re: svgz to jpeg ?
Just use the svg2jpg serializer. That's it. Regards, Upayavira On 27 Jun 2003 at 22:26, rob wrote: > Hi, > > does anyone know if it is possible to serialize a > compressed svg file (svgz) to jpeg ? > > Thanks, > > Rob Gregory. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up cocoon at site root
Justin - You can't make webapps/cocoon your host's appBase. The appBase must point to the directory containing the web applications, cocoon being one of them. So set appBase to just "webapps", and the docBase of the default Context to "cocoon". Regards, Lajos Justin Makeig wrote: Lajos, Thanks so much for the quick response. I'm still kind of muddled in the Tomcat documentation, though. Here's what I changed in server.xml: ... However, when I go to http://localhost/ I get a directory listing of webapps/cocoon/mysite as generated by Tomcat. How do I tell Tomcat that there's supposed to be a Cocoon site there? Thanks again. - Justin On 6/27/03 4:52 PM, "Lajos" <[EMAIL PROTECTED]> wrote: Hi Justin - Easy. Make the path for the cocoon in server.xml "" and remove/comment out the ROOT . If you don't have an entry for cocoon in server.xml, then you could even just edit the existing root definition and change "ROOT" to "cocoon". Regards, Lajos Justin Makeig wrote: How do I configure Tomcat 4.1.24 to run Cocoon sites from the site root? For example, right now I'm successfully running a Cocoon site from http://localhost/cocoon/mysite However, I would like to to configure Tomcat to run mysite from the request http://localhost/ I'm sure it can be done, but I don't see anything in the set up docs. Any help would be much appreciated. - Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up cocoon at site root
Lajos, Thanks so much for the quick response. I'm still kind of muddled in the Tomcat documentation, though. Here's what I changed in server.xml: ... However, when I go to http://localhost/ I get a directory listing of webapps/cocoon/mysite as generated by Tomcat. How do I tell Tomcat that there's supposed to be a Cocoon site there? Thanks again. - Justin On 6/27/03 4:52 PM, "Lajos" <[EMAIL PROTECTED]> wrote: > Hi Justin - > > Easy. Make the path for the cocoon in server.xml "" and > remove/comment out the ROOT . If you don't have an entry for > cocoon in server.xml, then you could even just edit the existing root > definition and change "ROOT" to "cocoon". > > Regards, > > Lajos > > > Justin Makeig wrote: >> >> >> How do I configure Tomcat 4.1.24 to run Cocoon sites from the site root? >> For example, right now I'm successfully running a Cocoon site from >> >> http://localhost/cocoon/mysite >> >> However, I would like to to configure Tomcat to run mysite from the request >> >> http://localhost/ >> >> >> I'm sure it can be done, but I don't see anything in the set up docs. Any >> help would be much appreciated. >> >> - Justin >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up cocoon at site root
Hi Justin - Easy. Make the path for the cocoon in server.xml "" and remove/comment out the ROOT . If you don't have an entry for cocoon in server.xml, then you could even just edit the existing root definition and change "ROOT" to "cocoon". Regards, Lajos Justin Makeig wrote: How do I configure Tomcat 4.1.24 to run Cocoon sites from the site root? For example, right now I'm successfully running a Cocoon site from http://localhost/cocoon/mysite However, I would like to to configure Tomcat to run mysite from the request http://localhost/ I'm sure it can be done, but I don't see anything in the set up docs. Any help would be much appreciated. - Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.net.SocketException: Connection reset by peer: socket writeerror
Hello Hill, normally this exception is thrown if the browser cuts the connection. This could happen if you change the URL of a resource before it's loaded completely. And there is no "javascript handler" in Cocoon. This stuff is not touched by Cocoon, but only by the browser. Joerg Hill Karimov wrote: Hi all, After update my cocoon 2.1-dev to cocoon 2.1m2, I get these exceptions in error.log: ERROR (2003-06-27) 15:52.52:235 [access] (/cocoon/test/ftv2mlastnode.gif) Thread-17/CocoonServlet: Internal Cocoon Problem java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:126) ... gif files for tree menu, that is some complex javascript that build the tree menu: /snip ... function preLoadIcons() { var auxImg auxImg = new Image(); auxImg.src = ICONPATH + "ftv2vertline.gif"; auxImg.src = ICONPATH + "ftv2mlastnode.gif"; auxImg.src = ICONPATH + "ftv2plastnode.gif"; ... doc.write(" ... ... + "" + auxEv + "" ... But I'm not sure that problem case is with Javascript handler in cocoon, because I get like exception on generating some xsp too. Can some one explain me on what case throws that exception? java.net.SocketException: Connection reset by peer: socket write error any ideas, tips, advice, Thanks a lot, Hill cocoon 2.1m2, tomcat 4.1, Java1.4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]