AW: use xsp-vars to generate html
hi thanks that's working - for the following -- example td id=hlpAnrede class=standard util:include-expr util:exprtable class=standardtrtd1/tdtd2/td/trtrtd3/tdtd4/td/ tr/table/util:expr /util:include-expr /td and on the place of table class=standardtrtd1/tdtd2/td/trtrtd3/tdtd4/td/ tr/table, and it works also for util:include-expr util:exprxsp:exprtest/xsp:expr/util:expr /util:include-expr when test=test; thats the first step. but how can i put html-tag into xsp-variable?? if i try the following, it fails -- xsp:logic string = table class=standardtrtd1/tdtd2/td/trtrtd3/tdtd4/td/ tr/table; /xsp:logic the util:include-expr is not the problem, but the string = table class=standardtrtd1/tdtd2/td/trtrtd3/tdtd4/td/ tr/table; regards, tom -Ursprüngliche Nachricht- Von: Christian Haul [mailto:haul;dvs1.informatik.tu-darmstadt.de] Gesendet: Mittwoch, 23. Oktober 2002 09:32 An: [EMAIL PROTECTED] Betreff: Re: use xsp-vars to generate html On 23.Oct.2002 -- 09:20 AM, Thomas Garger wrote: hi if want to use xsp-variables to generate html-code for the sites. let me explain. have a look at the util logicsheet, especially the include-* tags. That could be a solution. Anyway, your var needs to contain well-formed XML. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use xsp-vars to generate html
On 23.Oct.2002 -- 12:45 PM, Thomas Garger wrote: but how can i put html-tag into xsp-variable?? if i try the following, it fails -- Thought you gonna ask that :-) You may not use and in an xsp when not writing xml tags that are part of the document structure. So, you need to use the xml entities lt; gt; instead. Another solution is the capture logicsheet. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: use xsp-vars to generate html
hi but if use these entities lt; gt;, the (for example lt;tablegt;lt;MyText/tablegt; which means tableMyText/table). it is written out as text in the html-page, but not as html-statement, so no html-table is built in the page. regards, chris -Ursprüngliche Nachricht- Von: Christian Haul [mailto:haul;dvs1.informatik.tu-darmstadt.de] Gesendet: Mittwoch, 23. Oktober 2002 13:12 An: [EMAIL PROTECTED] Betreff: Re: use xsp-vars to generate html On 23.Oct.2002 -- 12:45 PM, Thomas Garger wrote: but how can i put html-tag into xsp-variable?? if i try the following, it fails -- Thought you gonna ask that :-) You may not use and in an xsp when not writing xml tags that are part of the document structure. So, you need to use the xml entities lt; gt; instead. Another solution is the capture logicsheet. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use xsp-vars to generate html
On 23.Oct.2002 -- 01:36 PM, Thomas Garger wrote: but if use these entities lt; gt;, the (for example lt;tablegt;lt;MyText/tablegt; Thomas, if you write String foo = lt;br/gt; your String will contain br/ If you include that with the util logicsheet, it should appear as node. The other solution, the capture logicsheet, definately captures nodes and includes nodes. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: use xsp-vars to generate html
hi sorry boring you you, i did what you said String foo = lt;br/gt; td class=standardutil:include-exprutil:exprxsp:exprfoo/xsp:expr /util:expr/util:include-expr/td but it apears as text but thanks for your answeres greetings, tom -Ursprüngliche Nachricht- Von: Christian Haul [mailto:haul;dvs1.informatik.tu-darmstadt.de] Gesendet: Mittwoch, 23. Oktober 2002 14:07 An: [EMAIL PROTECTED] Betreff: Re: use xsp-vars to generate html On 23.Oct.2002 -- 01:36 PM, Thomas Garger wrote: but if use these entities lt; gt;, the (for example lt;tablegt;lt;MyText/tablegt; Thomas, if you write String foo = lt;br/gt; your String will contain br/ If you include that with the util logicsheet, it should appear as node. The other solution, the capture logicsheet, definately captures nodes and includes nodes. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: url rewriting
hi, sorry to write directly to you. can you send my by attachement your compiled EncodeURLTransformer.class greetings chris -Ursprüngliche Nachricht- Von: Christopher Painter-Wakefield [mailto:paint007;mc.duke.edu] Gesendet: Dienstag, 22. Oktober 2002 19:34 An: [EMAIL PROTECTED] Betreff: Re: url rewriting Chris, I don't know much about actions, so I can't help you too much with that. However, I can offer some hints on the EncodeURLTransformer. Basically, it has a bug. The first time you hit a page, it fails to rewrite the URLs. This works for some frameworks, in which the first page is a login page, with the form action manually rewritten in XSP, and then all subsequent pages are rewritten. Someone else posted on the mailing list a while back (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=103241658409677w=2) , but it doesn't appear to have been picked up by the Cocoon developers; it's been on my to-do list for a little while to add this to bugzilla, so I'll try to take the time to do that today. In the meantime, to fix the bug, we changed the source code for EncodeURLTransformer, compiled it, and put it in our cocoon.jar in place of the old one. I think you can also just put it in WEB-INF/classes, if you are using Tomcat, but we didn't try that. Anyway, you can use the fix suggested in the link above, or you can try ours. Ours is maybe a bit simpler, but you tend to get URLs rewritten on the first page regardless of whether the browser needs it, which doesn't hurt anything but might bother some people. Our fix is: replace: if ( request.isRequestedSessionIdFromURL()) { with: if ( request.isRequestedSessionIdFromURL() || this.session.isNew()) { in the setup() method. -Christopher hi all! i use win200, cocoon2.0.2, weblogic6.0sp2 i tried url-rewriting in my action--- Map sitemapParams = new HashMap(); Request req = ObjectModelHelper.getRequest(objectModel); Session session = req.getSession(); if (session.isNew()) { // data i want to read out in my xsp-site session.setAttribute(data, myObject); sitemapParams.put(nextpage, home); } as it is given in the documentation my sitemap looks as following -- map:match pattern=startOR map:act type=ORAction map:generate src=orneu/{nextpage}.xsp type=serverpages/ !--map:generate src=orneu/registrierung1.xsp type=serverpages/-- map:transform src=orneu/xml2html.xsl type=xslt/ map:transform type=encodeURL/ /map:act map:serialize type=html/ /map:match also i configured my weblogic, not to use cookies -- see may attached weblogic.xml but every time, i go a second time in my action, it seems that the action creates every time a new session and my session-data is lost i studied the EncodeURLTransformer, but it doesn't helped me (i don't know how to in my action use this) has someone a code-example who to write a cocoon-action with url-rewriting. what do i wrong? please help! greetings, chris - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: textarea in XMLForm
The dev list is a better place to discuss submitting patches. I've cc'd this reply there as well. Geoff Howard --- Robert Ellis Parrott [EMAIL PROTECTED] wrote: I noticed that in the XMLForm example that one could not hit return and have a multiline message in the additional notes textarea. Looking into it, and working on related things in which I need a textarea, I see that the xmlform2html.xsl converts xf:textarea to an input field, and not a true textarea. I don't think that this is correct; without the style attribute it defaults to a textbox. The below mods to xmlform2html.xsl replace the textarea template with one that actually creates a real textarea. I think that this is the right thing to do here. rob PS: I've modified the Form class to now support basic Maps as well as DOM and Beans; I think that having this modification would be very helpful for quick dirty solutions, and for in-development projects, because one can get data from an XMLForm into the map without creating nodes or a javabean ahead of time. Are you interested in patches? !-- xsl:template match=xf:textarea input name={@ref} type=textarea value={xf:value/text()} xsl:copy-of select=@*[not(name()='ref')]/ xsl:apply-templates select=xf:hint/ /input /xsl:template -- xsl:template match=xf:textarea textarea name={@ref} xsl:copy-of select=@*[not(name()='ref')]/ xsl:value-of select=xf:value/text()/ xsl:apply-templates select=xf:hint/ /textarea /xsl:template Robert E. Parrott Department of Physics 351 Jefferson Laboratory Harvard University 17 Oxford St. Cambridge, Massachusetts 02138 (617)-495-2867 [EMAIL PROTECTED] [EMAIL PROTECTED] (permanent) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use xsp-vars to generate html
On 23.Oct.2002 -- 02:17 PM, Thomas Garger wrote: hi sorry boring you you, i did what you said String foo = lt;br/gt; td class=standardutil:include-exprutil:exprxsp:exprfoo/xsp:expr /util:expr/util:include-expr/td Try this xsp:logic String foo=lt;br/gt;; /xsp:logic p this is some util:include-exprutil:exprxsp:exprfoo/xsp:expr/util:expr/util:include-expr text /p it works for me. Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. -- 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: textarea in XMLForm
Thanks for the fix Robert. I will apply the textarea fix immediately. Please submit it and the other patches via bugzilla, for record keeping. Did you have a chance to update the xdocs (howto?) to include an example of the new (loose) model types - map dom ? Ivelin - Original Message - From: Robert Ellis Parrott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Dmitri Plotnikov [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 10:44 PM Subject: textarea in XMLForm I noticed that in the XMLForm example that one could not hit return and have a multiline message in the additional notes textarea. Looking into it, and working on related things in which I need a textarea, I see that the xmlform2html.xsl converts xf:textarea to an input field, and not a true textarea. I don't think that this is correct; without the style attribute it defaults to a textbox. The below mods to xmlform2html.xsl replace the textarea template with one that actually creates a real textarea. I think that this is the right thing to do here. rob PS: I've modified the Form class to now support basic Maps as well as DOM and Beans; I think that having this modification would be very helpful for quick dirty solutions, and for in-development projects, because one can get data from an XMLForm into the map without creating nodes or a javabean ahead of time. Are you interested in patches? !-- xsl:template match=xf:textarea input name={@ref} type=textarea value={xf:value/text()} xsl:copy-of select=@*[not(name()='ref')]/ xsl:apply-templates select=xf:hint/ /input /xsl:template -- xsl:template match=xf:textarea textarea name={@ref} xsl:copy-of select=@*[not(name()='ref')]/ xsl:value-of select=xf:value/text()/ xsl:apply-templates select=xf:hint/ /textarea /xsl:template Robert E. Parrott Department of Physics 351 Jefferson Laboratory Harvard University 17 Oxford St. Cambridge, Massachusetts 02138 (617)-495-2867 [EMAIL PROTECTED] [EMAIL PROTECTED] (permanent) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: url rewriting
Chris, sure, here you are. I don't know if there are any version dependencies (I'd guess not), but we compiled this against the C2.0.3 jar, so if you are on 2.0.3 it should work fine. The path is org/apache/cocoon/transformation/EncodeURLTransformer.class. I've also added a bug report on bugzilla, so hopefully this will get fixed in 2.1. -Christopher (See attached file: EncodeURLTransformer.class) hi, sorry to write directly to you. can you send my by attachement your compiled EncodeURLTransformer.class greetings chris -Ursprüngliche Nachricht- Von: Christopher Painter-Wakefield [mailto:paint007;mc.duke.edu] Gesendet: Dienstag, 22. Oktober 2002 19:34 An: [EMAIL PROTECTED] Betreff: Re: url rewriting Chris, I don't know much about actions, so I can't help you too much with that. However, I can offer some hints on the EncodeURLTransformer. Basically, it has a bug. The first time you hit a page, it fails to rewrite the URLs. This works for some frameworks, in which the first page is a login page, with the form action manually rewritten in XSP, and then all subsequent pages are rewritten. Someone else posted on the mailing list a while back (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=103241658409677w=2) , but it doesn't appear to have been picked up by the Cocoon developers; it's been on my to-do list for a little while to add this to bugzilla, so I'll try to take the time to do that today. In the meantime, to fix the bug, we changed the source code for EncodeURLTransformer, compiled it, and put it in our cocoon.jar in place of the old one. I think you can also just put it in WEB-INF/classes, if you are using Tomcat, but we didn't try that. Anyway, you can use the fix suggested in the link above, or you can try ours. Ours is maybe a bit simpler, but you tend to get URLs rewritten on the first page regardless of whether the browser needs it, which doesn't hurt anything but might bother some people. Our fix is: replace: if ( request.isRequestedSessionIdFromURL()) { with: if ( request.isRequestedSessionIdFromURL() || this.session.isNew()) { in the setup() method. -Christopher EncodeURLTransformer.class Description: Binary data - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Link Livesites:
I'm just setting up a new site which is dedicated to using Domino and Apache Cocoon. It's due to go live by the start of next week. Before you go live you may want to make sure that thepage background is set to white for all pages. As it is, it defaults to the browser background which may not be white. In that case looks rather like someone pasted togethergraphics fragments into a scrap book...
Re: textarea in XMLForm Re: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
Just a comment: See XML WebAccess 2.0 from www.mozquito.com It may be interesting. I was wondering some time ago if a merge with XMLForms from cocoon and that approach (I emphasize that I mean the approach, not necessarily this specific implementation) of mozquito's to have an intelligent client (with JavaScript). If anyone had made already any simple example of this merge working please let me know. Best regards, Dario. PD: I have put both titles since they are strongly related. In order to achieve the merge you need the textarea patch and Dom representation of the form instead of javabeans (helpful for quick dirty solutions like this) and the ability to pass an XML fragment via HTML form. - Original Message - From: Emmanuil Batsis (Manos) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 06:44 Subject: Re: [Off-topic:XSLT] Passing an XML fragment via a HTML form. ROSSEL Olivier wrote: I need to pass a subtree of that XML as a parameter, via that form. Is there a way, in XSLT, to transform a XML fragment into a string? So I can have an input in my form that contains the text of this XML fragment. How about parsing the form element value to a DOM object (either client or server side) and extract the DOM node that serves as the root of the fragment you need? You think I should use Java/XSP for such a process? Ideally, before submission, you parse the form value to a DOM object via Javascript (easy in both IE and Moz). You then locate the node (fragment) of choice and use it's text serialization (XML) to replace the earlier value of the form. Your server will thus get only the fragment you need and get away with less work. Manos - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Original Message - From: Geoff Howard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 10:12 Subject: Re: textarea in XMLForm The dev list is a better place to discuss submitting patches. I've cc'd this reply there as well. Geoff Howard --- Robert Ellis Parrott [EMAIL PROTECTED] wrote: I noticed that in the XMLForm example that one could not hit return and have a multiline message in the additional notes textarea. Looking into it, and working on related things in which I need a textarea, I see that the xmlform2html.xsl converts xf:textarea to an input field, and not a true textarea. I don't think that this is correct; without the style attribute it defaults to a textbox. The below mods to xmlform2html.xsl replace the textarea template with one that actually creates a real textarea. I think that this is the right thing to do here. rob PS: I've modified the Form class to now support basic Maps as well as DOM and Beans; I think that having this modification would be very helpful for quick dirty solutions, and for in-development projects, because one can get data from an XMLForm into the map without creating nodes or a javabean ahead of time. Are you interested in patches? !-- xsl:template match=xf:textarea input name={@ref} type=textarea value={xf:value/text()} xsl:copy-of select=@*[not(name()='ref')]/ xsl:apply-templates select=xf:hint/ /input /xsl:template -- xsl:template match=xf:textarea textarea name={@ref} xsl:copy-of select=@*[not(name()='ref')]/ xsl:value-of select=xf:value/text()/ xsl:apply-templates select=xf:hint/ /textarea /xsl:template Robert E. Parrott Department of Physics 351 Jefferson Laboratory Harvard University 17 Oxford St. Cambridge, Massachusetts 02138 (617)-495-2867 [EMAIL PROTECTED] [EMAIL PROTECTED] (permanent) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please
serialize svg2wbmp
Hi! Is thers one svg2wbmp (for wap) serializer? How can I do to convert my SVG files that I create from XML to WBMP? Thank for your help and have a nice day. François Quartenoud ** FH Offenburg Hochschule für Technik und Wirtschaft Labor Mobile Kommunikation und Wellen (B 137) Badstrasse 24 D-77652 Offenburg e-mail : [EMAIL PROTECTED] web : www.quartenoud.ch *** - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: use xsp-vars to generate html
hi but that's the same i do. just other tags i do all this in my logicsheets, maybe this is the point tom -Ursprüngliche Nachricht- Von: Christian Haul [mailto:haul;dvs1.informatik.tu-darmstadt.de] Gesendet: Mittwoch, 23. Oktober 2002 15:26 An: [EMAIL PROTECTED] Betreff: Re: use xsp-vars to generate html On 23.Oct.2002 -- 02:17 PM, Thomas Garger wrote: hi sorry boring you you, i did what you said String foo = lt;br/gt; td class=standardutil:include-exprutil:exprxsp:exprfoo/xsp:expr /util:expr/util:include-expr/td Try this xsp:logic String foo=lt;br/gt;; /xsp:logic p this is some util:include-exprutil:exprxsp:exprfoo/xsp:expr/util:expr/util :include-expr text /p it works for me. Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. -- 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use xsp-vars to generate html
On 23.Oct.2002 -- 05:05 PM, Thomas Garger wrote: but that's the same i do. just other tags i do all this in my logicsheets, maybe this is the point So, maybe you have a xsl:value-of where you should really have a xsl:copy-of? Post your code and we'll find out. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xsltc w/ 2.0.3
I (religiously) use the stock 2.0.3 jars. I definitely had to make some changes in my xslt, because of bugs in my code that xsltc uncovered, but also (I think) because of bugs in xsltc. (Actually, even though I got my app to run under xsltc, I'm considering switching to Saxon because of the quirks in xsltc--for example I can't get xsltc variables to hold a temporary tree). I think it is important to clear out your tomcat work directory, and to start with simple transforms and work your way up. Expect to do some debugging. Steve -Original Message- From: Jeremy Green [mailto:jeremy;glowbead.com] Sent: Tuesday, October 22, 2002 1:45 PM To: [EMAIL PROTECTED] Subject: xsltc w/ 2.0.3 Hello, From browsing the list it looks like it is possible to get xsltc working with Cocoon 2.0.3, and I was hoping someone could provide me with just a bit more information. I've followed the instructions given here: http://outerthought.net/wiki/Wiki.jsp?page=XSLTC My question really boils down to this: Which jars do I need to have in my WEB-INF/lib directory to make this work correctly? Do I need to upgrade to new versions of some of the other jars? (Xalan, xerces, etc...) I'm using Cocoon 2.0.3 with the JBoss-2.4.4_Tomcat-4.0.1-beta bundle. I've tried a variety of things and nothing seems to work. Currently I have xsltc-20020723.jar in there, and I get the following Exception back in my browser. An error occurred org.apache.cocoon.ProcessingException Exception in creating Transform Handler org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.NullPointerException Original exception : java.lang.NullPointerException at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTransfor merHandler(TransformerFactoryImpl.java:640) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransfo rmerHandler(XSLTProcessorImpl.java:282) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransfo rmerHandler(XSLTProcessorImpl.java:239) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTra nsformer.java:298) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.se tupPipeline(AbstractEventPipeline.java:215) at The jboss log contains this error: [13:22:34,925,Default] java.lang.ClassCastException: org.apache.xalan.xsltc.compiler.Param [13:22:34,925,Default]at org.apache.xalan.xsltc.compiler.SymbolTable.addVariable(Symbol Table.java:120) [13:22:34,926,Default] [13:22:34,926,Default]at org.apache.xalan.xsltc.compiler.Variable.parseContents(Variabl e.java:141) [13:22:34,926,Default] [13:22:34,926,Default]at org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(St ylesheet.java:412) [13:22:34,926,Default] [13:22:34,926,Default]at org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Style sheet.java:394) [13:22:34,926,Default] [13:22:34,926,Default]at org.apache.xalan.xsltc.compiler.Import.parseContents(Import.java:143) [13:22:34,926,Default] Any help would be appreciated. Thanks, Jeremy - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSPEngineImplWLS
Hello, Has anybody had success implementing JSPs under Cocoon 2.03 and Weblogic? The C2 documentation http://xml.apache.org/cocoon/userdocs/generators/jsp-generator.html details that a file, my.roles, should be created and that the default-class entry should be org.apache.cocoon.compenents.jsp.JSPEngineImplWLS. When I open cocoon-2.0.3.jar, however, there is no such class; the closest matches are JSPEngineImpl.class and JSPEngineImplNamedDispatchedInclude.class. I attempted to run an application using the documented instructions, but the following error occured: ERROR (2002-10-23) 12:32.42:906 [core.manager] (Unknown-URI) Unknown-thread/ExcaliburComponentManager: Could not get class org.apache.cocoon.components.jsp.JSPEngineImplWLS for role org.apache.cocoon.components.jsp.JSPEngine on configuration element jsp-engine java.lang.ClassNotFoundException: org.apache.cocoon.components.jsp.JSPEngineImplWLS Thanks for any help, Chris Chris Foo ·Analytical Applications· ·COGNOS INC· ·Tel:(613) 738-1338 ext.3787· ·[EMAIL PROTECTED]· This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
I had this problem too, and had to write a custom java class to do this inside XSLT, but it works. ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:java=http://xml.apache.org/xslt/java; exclude-result-prefixes=java xsl:template match=/ xsl:variable name=convertThisNode xsl:copy-of select=/page/thing/ /xsl:variable html form input name=txtNodexsl:attribute name=value xsl:value-of select=java:agler.SerializeXml.serializeXml($convertThisNode)//xsl:a ttribute /input /form /html /xsl:template /xsl:stylesheet Not sure if you are familiar with making your own Jars (took me awhile to figure out), but if you are, create you own jar and make it available to Cocoon by putting it in Tomcat's common/lib and reference it in web.xml's extra-classpath. Here is the source for SerializeXml: package agler; import org.w3c.dom.Node; import org.apache.xalan.serialize.SerializerToXML; import java.io.StringWriter; public class SerializeXml { public static String serializeXml(Node node) { String ret = ; try { StringWriter sw = new StringWriter(); SerializerToXML serxml = new SerializerToXML(); serxml.setWriter(sw); serxml.serialize(node); ret = sw.toString(); } catch (Exception e){} return ret; } } Hope this helps, good luck. +Ryan -Original Message- From: ROSSEL Olivier [mailto:olivier.rossel;airbus.com] Sent: Wednesday, October 23, 2002 5:05 AM To: '[EMAIL PROTECTED]' Subject: [Off-topic:XSLT] Passing an XML fragment via a HTML form. I have a HTML form, created from a XML file and a XSL Treansformation. I need to pass a subtree of that XML as a parameter, via that form. Is there a way, in XSLT, to transform a XML fragment into a string? So I can have an input in my form that contains the text of this XML fragment. Corrolair when processing parameters sent by the form: is there a way, in XSLT, to transform as string into a XML fragment? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
Hi, Can you simply do: input name=txtNode xsl:attribute name=value xsl:copy-of select=/page/thing/ /xsl:attribute /input or perhaps: textarea xsl:copy-of select=/page/thing/ /textarea best, -Rob -Original Message- From: Ryan Agler [mailto:ryanagler;hotmail.com] Sent: Wednesday, October 23, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form. I had this problem too, and had to write a custom java class to do this inside XSLT, but it works. ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:java=http://xml.apache.org/xslt/java; exclude-result-prefixes=java xsl:template match=/ xsl:variable name=convertThisNode xsl:copy-of select=/page/thing/ /xsl:variable html form input name=txtNodexsl:attribute name=value xsl:value-of select=java:agler.SerializeXml.serializeXml($convertThisNode)//xsl:a ttribute /input /form /html /xsl:template /xsl:stylesheet Not sure if you are familiar with making your own Jars (took me awhile to figure out), but if you are, create you own jar and make it available to Cocoon by putting it in Tomcat's common/lib and reference it in web.xml's extra-classpath. Here is the source for SerializeXml: package agler; import org.w3c.dom.Node; import org.apache.xalan.serialize.SerializerToXML; import java.io.StringWriter; public class SerializeXml { public static String serializeXml(Node node) { String ret = ; try { StringWriter sw = new StringWriter(); SerializerToXML serxml = new SerializerToXML(); serxml.setWriter(sw); serxml.serialize(node); ret = sw.toString(); } catch (Exception e){} return ret; } } Hope this helps, good luck. +Ryan -Original Message- From: ROSSEL Olivier [mailto:olivier.rossel;airbus.com] Sent: Wednesday, October 23, 2002 5:05 AM To: '[EMAIL PROTECTED]' Subject: [Off-topic:XSLT] Passing an XML fragment via a HTML form. I have a HTML form, created from a XML file and a XSL Treansformation. I need to pass a subtree of that XML as a parameter, via that form. Is there a way, in XSLT, to transform a XML fragment into a string? So I can have an input in my form that contains the text of this XML fragment. Corrolair when processing parameters sent by the form: is there a way, in XSLT, to transform as string into a XML fragment? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
It will work for a textarea if that is an option, but for an input, all the tags get stripped out and just the content gets included. -Original Message- From: Robert Koberg [mailto:rob;koberg.com] Sent: Wednesday, October 23, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form. Hi, Can you simply do: input name=txtNode xsl:attribute name=value xsl:copy-of select=/page/thing/ /xsl:attribute /input or perhaps: textarea xsl:copy-of select=/page/thing/ /textarea best, -Rob -Original Message- From: Ryan Agler [mailto:ryanagler;hotmail.com] Sent: Wednesday, October 23, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form. I had this problem too, and had to write a custom java class to do this inside XSLT, but it works. ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:java=http://xml.apache.org/xslt/java; exclude-result-prefixes=java xsl:template match=/ xsl:variable name=convertThisNode xsl:copy-of select=/page/thing/ /xsl:variable html form input name=txtNodexsl:attribute name=value xsl:value-of select=java:agler.SerializeXml.serializeXml($convertThisNode)//xsl:a ttribute /input /form /html /xsl:template /xsl:stylesheet Not sure if you are familiar with making your own Jars (took me awhile to figure out), but if you are, create you own jar and make it available to Cocoon by putting it in Tomcat's common/lib and reference it in web.xml's extra-classpath. Here is the source for SerializeXml: package agler; import org.w3c.dom.Node; import org.apache.xalan.serialize.SerializerToXML; import java.io.StringWriter; public class SerializeXml { public static String serializeXml(Node node) { String ret = ; try { StringWriter sw = new StringWriter(); SerializerToXML serxml = new SerializerToXML(); serxml.setWriter(sw); serxml.serialize(node); ret = sw.toString(); } catch (Exception e){} return ret; } } Hope this helps, good luck. +Ryan -Original Message- From: ROSSEL Olivier [mailto:olivier.rossel;airbus.com] Sent: Wednesday, October 23, 2002 5:05 AM To: '[EMAIL PROTECTED]' Subject: [Off-topic:XSLT] Passing an XML fragment via a HTML form. I have a HTML form, created from a XML file and a XSL Treansformation. I need to pass a subtree of that XML as a parameter, via that form. Is there a way, in XSLT, to transform a XML fragment into a string? So I can have an input in my form that contains the text of this XML fragment. Corrolair when processing parameters sent by the form: is there a way, in XSLT, to transform as string into a XML fragment? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build All fails on latest CVS Snapshot
As usual, Antonio's advice regarding certain build functionalities bypasses some of the woes. The latest snapshot I have(October 22, 2002) and build option of build installwar works smoothly. Regarding the build option of build all it still breaks. -Marc --- Kjetil Kjernsmo [EMAIL PROTECTED] wrote: On Monday 21 October 2002 18:50, Antonio Gallardo Rivera wrote: I am happy that I am not alone in this ;) Heh, I was also seeing this... I have had lots of problems, so I just deleted everything I had and started from scratch again. Weirdly, it built fine when I had -Dinstall.war=$TOMCAT_HOME/webapps in the build command, but then I figured I should let it go to my $COCOON_HOME, which is $TOMCAT_HOME/webapps/cocoon. Then, it wouldn't go... :-( But I just noticed that I had forgotten the install at the end of the build.sh line, and when I added that, it worked! :-) Funny, isn't it? 3-Another recommendation is (thanks to Torsten Curdt): /xml-cocoon2/src/blocks/databases/java/org/apache/cocoon/components/ language/markup/xsp/EsqlConnection.java You will see the @JDBC3_START@ and @JDBC3_END@ markers. They are used by the build system to uncomment the necessary implementations depending on the JVM version. So I guess the transition into the database block broke this mechanism. Well, I, for one, didn't understand too much of this, so if you care to elaborate, it might help somebody who is as clueless as I am. :-) Best, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XML instance validation
Hello, I would like to configure validation (against anXML schema)in some pipelines. When I turn on the validation feature of the parser in cocoon.xconf, I'm asked for the sitemapgrammar, even if the sitemap doesn't refer to any schema or DTD.I modify the sitemap in order to do the validation against sitemap-2.1-draft.xsd, but it doesn't work because of the different namespaces (1.0 in the sitemap and 2.0 in the schema). So,is this the correct way to activate validation in cocoon? And if it is, where canI find the correct schema for my sitemap? Or do I have to setthe validation insidethe pipeline, maybe with anaction, an XSP or my own "ValidationGenerator", instead of in cocoon.xconf? Oskar
XML instance validation
Hello, I would like to configure validation (against anXML schema)in some pipelines. When I turn on the validation feature of the parser in cocoon.xconf, I'm asked for the sitemapgrammar, even if the sitemap doesn't refer to any schema or DTD.I modify the sitemap in order to do the validation against sitemap-2.1-draft.xsd, but it doesn't work because of the different namespaces (1.0 in the sitemap and 2.0 in the schema). So,is this the correct way to activate validation in cocoon? And if it is, where canI find the correct schema for my sitemap? Or do I have to setthe validation insidethe pipeline, maybe with anaction, an XSP or my own "ValidationGenerator", instead of in cocoon.xconf? I also need to use the schematron validation in my application. I´ve done a pipelinefor obtaining a compiledschematron from an schematron, and another one to apply itto an XML document, but I would like to know if cocoons support this type of validation with its own components. Oskar
newbie: problems installing coccon
Hello, I'm having a helluva time getting Cocoon-2.0.3 going... I'm using Tomcat 4.0.12 on RedHat 7.3 with j2se 1.3.1 (IBM). I have jaxp1.1 installed as an extension in my JAVA_HOME/jre/lib/ext directory... It seems like cocoon is using an older parser, but like I said, I'm a newbie... I've tried the binary installation; copied cocoon.war into the webapps directory. On startup, cocoon logs lines like this to the server (they go on for a while, but here's a sample): 2002-10-23 16:17:07 DEBUG (2002-10-23) 16:17.07:736 [] (Unknown-URI) Unknown-thread/DefaultLogTarget FactoryManager: added new LogTargetFactory of type priority-filter 2002-10-23 16:17:07 DEBUG (2002-10-23) 16:17.07:749 [] (Unknown-URI) Unknown-thread/DefaultLogTarget FactoryManager: added new LogTargetFactory of type servlet 2002-10-23 16:17:07 DEBUG (2002-10-23) 16:17.07:785 [] (Unknown-URI) Unknown-thread/DefaultLogTarget FactoryManager: added new LogTargetFactory of type cocoon After calling the cocoon home page, the cocoon error log looks like this (same error that is printed on the home page): ERROR (2002-10-23) 16:24.04:723 [sitemap] (/cocoon/) Thread-9/Handler: Error compiling sitemap 2 org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.IllegalArgumentException: http://xml.apache.org/xalan/features/incremental at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS LTProcessorImpl.java:295) at org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandle r(Logicsheet.java:160) ( continue stack trace ) ... So I tried to build cocoon, but (of course!) it won't compile. The errors I get there are: /home/magill/cocoon-2.0.3/build/cocoon/scratchpad/src/org/apache/cocoon/suns hine/context/SimpleSessionContext.java:151: cannot resolve symbol symbol : method getDTMHandleFromNode (org.w3c.dom.Document) location: class org.apache.xpath.XPathContext int ctxtNode = xpathSupport.getDTMHandleFromNode(data); ^ /home/magill/cocoon-2.0.3/build/cocoon/scratchpad/src/org/apache/cocoon/suns hine/context/SimpleSessionContext.java:152: execute(org.apache.xpath.XPathContext,org.w3c.dom.Node,org.apache.xml.utils. PrefixResolver) in org.apache.xpath.XPath cannot be applied to (org.apache.xpath.XPathContext,int,org.apache.xml.utils.PrefixResolverDefaul t) return xpath.execute(xpathSupport, ctxtNode, prefixResolver); ^ /home/magill/cocoon-2.0.3/build/cocoon/scratchpad/src/org/apache/cocoon/suns hine/context/SimpleSessionContext.java:171: cannot resolve symbol symbol : method nodelist () location: class org.apache.xpath.objects.XObject list = doXPath(path).nodelist(); ^ /home/magill/cocoon-2.0.3/build/cocoon/scratchpad/src/org/apache/cocoon/suns hine/context/SimpleSessionContext.java:293: cannot resolve symbol symbol : method nodelist () location: class org.apache.xpath.objects.XObject list = doXPath(path).nodelist(); ^ /home/magill/cocoon-2.0.3/build/cocoon/scratchpad/src/org/apache/cocoon/suns hine/context/SimpleSessionContext.java:342: cannot resolve symbol symbol : method nodelist () location: class org.apache.xpath.objects.XObject result = doXPath(path).nodelist(); ^ /home/magill/cocoon-2.0.3/build/cocoon/scratchpad/src/org/apache/cocoon/suns hine/context/SimpleSessionContext.java:452: cannot resolve symbol symbol : method nodelist () location: class org.apache.xpath.objects.XObject list = doXPath(path).nodelist(); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 6 errors Any suggestions?? Thanks - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie: problems installing coccon
- Original Message - From: Matt Sales [EMAIL PROTECTED] Hello, I'm having a helluva time getting Cocoon-2.0.3 going... I'm using Tomcat 4.0.12 on RedHat 7.3 with j2se 1.3.1 (IBM). I have jaxp1.1 installed as an extension in my JAVA_HOME/jre/lib/ext directory... It seems like cocoon is using an older parser, but like I said, I'm a newbie... Try the newest release of Tomcat, it seems that it solves the problem for compiling sitemap Just base on my own experience. another mat. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SimpleFormTransformer problem - not working in 2.1-dev?
Dear all, I'm trying to use the transformer but it seems something's going wrong. I've searched through all the sitemaps and couldn't find it in any of them. I checked the API and the .jar and I see it's still there, so I defined it like this: map:transform logger=sitemap.transformer.simpleform name=simple-form src=org.apache.cocoon.transformation.SimpleFormTransformer/ Then I tried to use it in a pipeline like this: map:transform type=simple-form/ But I get an exception in the sitemap. I removed the pipeline and the exception is still there. It's very clear and it is something about Avalon not founding the transformer component, and as I told you before, it's sitting there in the .jar with the rest of the transformers... What to do to make it work? Any ideas? Best. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.1
Hi, I want to use XML forms form for my project. we need to use Cocoon 2.1 for it. Can you please tell me where I can get cocoon 2.1 from Apache website. Thanks for your time poornima _ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2.1-dev authentication sample doesn't work
Thank you Rob, it's the same for me. That works with Tomcat 4.1.12. Sylvain -Message d'origine- De: Rob Johnston [mailto:rjohnst;juniper.net] Date: lundi, 21. octobre 2002 21:55 À: [EMAIL PROTECTED] Objet: Re: 2.1-dev authentication sample doesn't work I got the same error when using 2.1-dev with Tomcat 4.0.4. The problem disappeared when I upgraded Tomcat to 4.1.12. Some patch applied between Sept 24 and Sept 25th that causes this IllegalStateException. (0924 works with 4.0.4, 0925 doesn't...) Hope this is your problem and it helps, thanks, rob On Thu, 17 Oct 2002, [EMAIL PROTECTED] wrote: Hello, I have just installed the last dev snapshot of Cocoon and try to run the samples. All work fine except the authentication sample. This error appears: Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:479) I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0. Is there something to install before working with the Cocoon authentication mechanism? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
use xsp-vars to generate html
hi if want to use xsp-variables to generate html-code for the sites. let me explain. i have a xsp-varibale, for example String test = tabletrtd1/tdtd2/td/trtrtd3/tdtd4/td/tr/tabl e; after this, i have the following in my xsp-site table tr td/td/tr tdxsp:exprtest/xsp:expr/td /tr /table so there is another table in the second td-tag but this doesn'work - what i did wrong i get the following error-messages in my xsp-site org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling registrierung1_xsp: Line 265, column 44: unclosed character literal Line 265, column 43: illegal start of expression Line 399, column 6: unclosed character literal Line 399, column 4: illegal start of expression Line 0, column 0: 4 errors regards, tom - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use xsp-vars to generate html
On 23.Oct.2002 -- 09:20 AM, Thomas Garger wrote: hi if want to use xsp-variables to generate html-code for the sites. let me explain. have a look at the util logicsheet, especially the include-* tags. That could be a solution. Anyway, your var needs to contain well-formed XML. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Could not transform esql.xsl
Trying to access my ESQL-XSPs with a 2.1-dev CVS Snapshot, I receive the following error: Could not transform resource://org/apache/cocoon/components/language/markup/xsp/java/esql.xsl Same XSPs work fine with 2.0.3. Question is: Why? :-) Martin. Stack trace org.apache.cocoon.ProcessingException: Could not transform resource://org/apache/cocoon/components/language/markup/xsp/java/esql.xsl: org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler at org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHandler(Logicsheet.java:182) at org.apache.cocoon.components.language.markup.Logicsheet.getNamespaceURIs(Logicsheet.java:148) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(AbstractMarkupLanguage.java:467) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.addLogicsheetToList(CocoonMarkupLanguage.java:157) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:624) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$CocoonTransformerChainBuilderFilter.startElement(CocoonMarkupLanguage.java:435) at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:575) at org.apache.cocoon.components.language.markup.CocoonMarkupLanguage$PreProcessFilter.startElement(CocoonMarkupLanguage.java:279) at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProcessFilter.startElement(XSPMarkupLanguage.java:126) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could not transform esql.xsl
On 23.Oct.2002 -- 09:48 AM, Martin Schimak wrote: Trying to access my ESQL-XSPs with a 2.1-dev CVS Snapshot, I receive the following error: Could you check that esql.xsl is included in your jar? It has been missing in snapshots 'till tuesday. 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 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could not transform esql.xsl
Christian Haul wrote: Could you check that esql.xsl is included in your jar? It has been missing in snapshots 'till tuesday. Definitely, it wasn't. My last snapshot was from Monday. I was too sure, that this can't be the reason, so I didn't even check... Sorry, won't happen again. Everything works with the ABSOLUTELY latest snapshot now. :-) Martin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Off-topic:XSLT] Passing an XML fragment via a HTML form.
I have a HTML form, created from a XML file and a XSL Treansformation. I need to pass a subtree of that XML as a parameter, via that form. Is there a way, in XSLT, to transform a XML fragment into a string? So I can have an input in my form that contains the text of this XML fragment. Corrolair when processing parameters sent by the form: is there a way, in XSLT, to transform as string into a XML fragment? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
ROSSEL Olivier wrote: I need to pass a subtree of that XML as a parameter, via that form. Is there a way, in XSLT, to transform a XML fragment into a string? So I can have an input in my form that contains the text of this XML fragment. How about parsing the form element value to a DOM object (either client or server side) and extract the DOM node that serves as the root of the fragment you need? Manos - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
I need to pass a subtree of that XML as a parameter, via that form. Is there a way, in XSLT, to transform a XML fragment into a string? So I can have an input in my form that contains the text of this XML fragment. How about parsing the form element value to a DOM object (either client or server side) and extract the DOM node that serves as the root of the fragment you need? You think I should use Java/XSP for such a process? Ok. Let's say I put the subtree to be sent into a DOM object. How do I stringify it? (I presume I cannot pass a Java object via a HTML form :-) This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
ROSSEL Olivier wrote: I need to pass a subtree of that XML as a parameter, via that form. Is there a way, in XSLT, to transform a XML fragment into a string? So I can have an input in my form that contains the text of this XML fragment. How about parsing the form element value to a DOM object (either client or server side) and extract the DOM node that serves as the root of the fragment you need? You think I should use Java/XSP for such a process? Ideally, before submission, you parse the form value to a DOM object via Javascript (easy in both IE and Moz). You then locate the node (fragment) of choice and use it's text serialization (XML) to replace the earlier value of the form. Your server will thus get only the fragment you need and get away with less work. Manos - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could not transform esql.xsl
Christian Haul wrote: Could you check that esql.xsl is included in your jar? It has been missing in snapshots 'till tuesday. Definitely, it wasn't, my last snapshot was from Monday. I was too sure, that this can't be the reason, so I didn't even check... Sorry, won't happen again. Everything works with the ABSOLUTELY latest snapshot now. :-) Martin. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie: problems installing coccon
Mat, Thanks for your response... Unfortunately, I'm using 4.1.12 (I incorrectly submitted 4.0.12), which is the latest stable release of tomcat... - Original Message - From: Mathieu Fabisiak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 6:03 PM Subject: Re: newbie: problems installing coccon - Original Message - From: Matt Sales [EMAIL PROTECTED] Hello, I'm having a helluva time getting Cocoon-2.0.3 going... I'm using Tomcat 4.0.12 on RedHat 7.3 with j2se 1.3.1 (IBM). I have jaxp1.1 installed as an extension in my JAVA_HOME/jre/lib/ext directory... It seems like cocoon is using an older parser, but like I said, I'm a newbie... Try the newest release of Tomcat, it seems that it solves the problem for compiling sitemap Just base on my own experience. another mat. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fragment Extractor Store?
For Cocoon 2.0.3 I have setup a pipeline that extracts a specific tag (jfreechart) from my xml file and feeds it into a separate pipeline where I have a new JCReader (jfc2png) picking up that xml fragment and creating a chart according to the contained definition and data. The problem I am facing is how to have my Reader class pick up the xml fragment. I tried with store = (Store) this.manager.lookup(Store.TRANSIENT_CACHE); fragment = store.get(source); if (fragment==null) throw new SAXException(Could not find frament with id + source + in store); but this seems not the right store to look for the fragment. Where can I find it (and how)? Rgds, Tom - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1
See: http://xml.apache.org/cocoon/installing/index.html Antonio Gallardo El Miércoles, 23 de Octubre de 2002 16:07, poornima ponnuswamy escribió: Hi, I want to use XML forms form for my project. we need to use Cocoon 2.1 for it. Can you please tell me where I can get cocoon 2.1 from Apache website. Thanks for your time poornima _ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]