Forms Failed
Hi Guys, Attached with this email is form and my sitemap. The problem is I am able to load the form into the browser but after clicking on the Submit button it still gives me back the form. Thanks New-Employee.xsp Description: Binary data sitemap.xmap 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: PERFORMANCE - attributes vs. elements
[EMAIL PROTECTED] wrote: I know this is a basic XML/XSLT question and is an old debate. I would like to know if using attributes as opposed to elements within XML will speed up its transformation using XSLT? I have a 3MB XML file which is transformed by my XSLT into HTML using Cocoon. I have a few tags in the XML file which could be tucked away as an attribute of its parent element. I hit upon them while I was trying to search every nook and corner for improving the performance. Right now it sucks. Please let me know if anybody has some tips tricks for improving performance, kind of do's and dont's. You really should look into the internals of the XSLT engine implementation you are using with Cocoon, then (being Xalan, XSLTC or Saxon) - but I don't offer you high hopes that switching between atts and elems will make much of a difference. I seriously doubt so. Maybe you can post your XSLT stylesheet for some peer review. There are many other ways to improve execution speed of XSLT. Also, I consider your post to be slightly off-topic, there exists a *very* helpfull XSLT-centric mailing list at http://www.mulberrytech.com/xsl/xsl-list - with all the true XSLT gurus reading and answering such queries. HTH, /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [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]
Fw: Forms Failed
HI Guys, Ithink Ihave foundtheerror. After clickicking on save employee the browser now displays the Confirm-Employee.xml. the problem is it is not saving any records any idea??? thanks! - Original Message - From: Richard To: Hiloliddin Karimov ; [EMAIL PROTECTED] Sent: Friday, August 02, 2002 2:34 PM Subject: Forms Failed Hi Guys, Attached with this email is form and my sitemap. The problem is I am able to load the form into the browser but after clicking on the Submit button it still gives me back the form. Thanks -Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] New-Employee.xsp Description: Binary data sitemap.xmap 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: how to generate Excel
Thanks a lot... Regards Abhishek Andrew C. Oliver wrote: Have you looked at the examples? Samples-Legacy Format or under webapp/cocoon/samples/poi/ or the docs - http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html -Andy Abhishek Goel wrote: Hi, I am having a xml file ,xslt for that xml. Could any one suggest me how to define a pipeline for generating an excel sheet from this xml. Regards Abhishek - 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] begin:vcard n:Goel;Abhishek tel;work:020-767-79811 x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Abhishek Goel end:vcard - 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]
decision issue (document and sitemap communication)
Hello, I have the following problem : 1. Query foo document from a database, using xmldb query shortcut, so this comes as map:generate src=xmldb:...). * I want to decide on the presence of a certain tag in foo, let's say result, to do a map:act. * 2a. if result exists : there are required fields so create form validation descriptor from template (another database document retrieval) then try to validate form. If form validation fails generate input form, if success generate licence and license info form. 2b. If result doesn't exist : no form validation needed, go to another pipeline (yeah this repeats...) that generates license and license info form. My question is : how to be able to decide that I want to do an action, when I retrieve an xml document ? How can my sitemap know that I have result tag in my xml document ? I can no way use map:redirect-to since I have a bunch of request parameters I need for input form generation, and these parameters are variable in number... (so everything is wrapped in map:act type=request). Maybe I should use an action to query xml database instead of shortcut by xmldb query ? :-/ The core is that a request parameter, named template is used to query the database and only this result allows to know whether form validation should happen or not... Hoping that I am clear. Barbara PS : sorry for sending html mail last evening (Western Europe time), I didn't check a plain text box at home... - 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: own generator
Hi, I have updated the setup method. here is the code: public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { try { super.setup(resolver, objectModel, src, par); } catch(ProcessingException exc) { throw(exc); } catch(SAXException exc) { throw(exc); } catch(IOException exc) { throw(exc); } request = ObjectModelHelper.getRequest(objectModel); paramNames = request.getParameterNames(); uri = request.getRequestURI(); } I had a sily mistake in the pipeline, too (in the generate line I wrote source instead of src). The corrected pipeline is: map:pipeline map:match pattern=foo/* map:act type=request map:parameter name=parameters value=true/ map:generate type=ist src={../1}/ /map:act map:serialize type=xml/ /map:match map:handle-errors map:transform src=stylesheets/system/error2html.xsl/ map:serialize status-code=500/ /map:handle-errors /map:pipeline Now I can get the src in the source field of the generator. The parameters field of the generator still conatins 0 parameters. Br, Istvan On Thursday 01 August 2002 17:23, you wrote: Ah, I think the problem is that I overrode the setup() method from AbstractGenerator, but didn't look at what it was doing in the original - I presumed incorrectly that it did nothing. You should be able to get at the source by adding super.setup() to the first line of the new setup() call below. Now that I've looked more carefully, we could get rid of our own implementation of setup and use the instance variable objectModel from the superclass to get our parameters from within generate if we really wanted to - on the other hand, for demonstration purposes it's better in my view to show that it's available as a callback method from the container for performing setup tasks. Thank you by the way for reorganizing the output to be more xml friendly. I've already started work turning this example into a how-to for the documentation. Would you mind if I incorporate your modifications for that so I don't have to come up with another example? Geoff - 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]
log-files!
hi! i am using cocoon 2.0.3. where can find some logfiles about cocoon-working? bye wolfgang weigel - 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: log-files!
See: cocoon-webapp/WEB-INF/logs/*.log -- Konstantin Piroumian [EMAIL PROTECTED] -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 1:04 PM To: [EMAIL PROTECTED] Subject: log-files! hi! i am using cocoon 2.0.3. where can find some logfiles about cocoon-working? bye wolfgang weigel - 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: log-files!
When you run cocoon don't you have logfiles into WEB-INF/logs ? Location of logfiles is defined in WEB-INF/logkit.xconf. Babs - Original Message - From: Wolle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 11:04 AM Subject: log-files! hi! i am using cocoon 2.0.3. where can find some logfiles about cocoon-working? bye wolfgang weigel - 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: log-files!
hi! *When you run cocoon don't you have logfiles into WEB-INF/logs ? * there is no such directory! do i have to touch it first? bye ww *Location of logfiles is defined in WEB-INF/logkit.xconf. * *Babs *- Original Message - *From: Wolle [EMAIL PROTECTED] *To: [EMAIL PROTECTED] *Sent: Friday, August 02, 2002 11:04 AM *Subject: log-files! * * * hi! * * i am using cocoon 2.0.3. where can find some logfiles about * cocoon-working? * * * bye * * wolfgang weigel * * * - * 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] * Auf bald Wolfgang Weigel _ Wolfgang Weigel Universitaet Wuerzburg Didaktik Mathematik Am Hubland 97074 Wuerzburg [EMAIL PROTECTED] office: 0931/888-5078 _ __ __ __ | | /| / /__ / / /__ __ / / ___ ___ / / / / | |/ |/ / _ \/ / / -_) | |/|/ / _ `(_- / _ \/ -_) __/ -_) /_/_/_/ |__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_) - - 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: log-files!
no, it's created in your webapp's WEB-INF directory when you run it (execute Cocoon servlet). so if you use Cocoon's webapp have a look there... - Original Message - From: Wolle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 11:12 AM Subject: Re: log-files! hi! *When you run cocoon don't you have logfiles into WEB-INF/logs ? * there is no such directory! do i have to touch it first? bye ww *Location of logfiles is defined in WEB-INF/logkit.xconf. * *Babs *- Original Message - *From: Wolle [EMAIL PROTECTED] *To: [EMAIL PROTECTED] *Sent: Friday, August 02, 2002 11:04 AM *Subject: log-files! * * * hi! * * i am using cocoon 2.0.3. where can find some logfiles about * cocoon-working? * * * bye * * wolfgang weigel * * * - * 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] * Auf bald Wolfgang Weigel _ Wolfgang Weigel Universitaet Wuerzburg Didaktik Mathematik Am Hubland 97074 Wuerzburg [EMAIL PROTECTED] office: 0931/888-5078 _ __ __ __ | | /| / /__ / / /__ __ / / ___ ___ / / / / | |/ |/ / _ \/ / / -_) | |/|/ / _ `(_- / _ \/ -_) __/ -_) /_/_/_/ |__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_) - - 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]
form validator
Hello, I use the following and the redirect-to is always executed, why ? I directly call this foo uri. The returned descriptor is ok : parameters with name and nullable attribute set (but not type, should I set it ? How can I say ignore type attribute when validating ?). map:match pattern=foo map:act type=form-validator map:parameter name=descriptor value=cocoon://getdescriptor/foo2/ map:parameter name=constraint-set value=default/ !-- ok -- map:redirect-to uri=http://www.google.fr/ /map:act map:generate src=xml/test.xml/ map:transform src=xsl/copy.xsl/ map:serialize type=xml/ /map:match Thanks ! Babs - 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: form validator
was dumb : validate-set and not constraint-set in the pipeline ! huh time to have lunch here lol Babs - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 11:29 AM Subject: form validator Hello, I use the following and the redirect-to is always executed, why ? I directly call this foo uri. The returned descriptor is ok : parameters with name and nullable attribute set (but not type, should I set it ? How can I say ignore type attribute when validating ?). map:match pattern=foo map:act type=form-validator map:parameter name=descriptor value=cocoon://getdescriptor/foo2/ map:parameter name=constraint-set value=default/ !-- ok -- map:redirect-to uri=http://www.google.fr/ /map:act map:generate src=xml/test.xml/ map:transform src=xsl/copy.xsl/ map:serialize type=xml/ /map:match Thanks ! Babs - 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]
fop
hi! I made a xsl-file to generate from a xml file a pdf. this works fine as long as i use fop standalone (command line). if producing the pdf with cocoon i get the text without any pictures (gif/jpg). has anybody the same problem? where can i get some information about whats working wrong? i need some help. bye wolfgang weigel k - 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: fop
image path issue ? absolute, relative ? Babs - Original Message - From: Wolle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 11:48 AM Subject: fop hi! I made a xsl-file to generate from a xml file a pdf. this works fine as long as i use fop standalone (command line). if producing the pdf with cocoon i get the text without any pictures (gif/jpg). has anybody the same problem? where can i get some information about whats working wrong? i need some help. bye wolfgang weigel k - 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: fop
On Fri, 2 Aug 2002, Barbara Post wrote: *image path issue ? absolute, relative ? here is some code from the xml-file: logo name=reallogo.jpg/ here is some code from the xsl-file: fo:block fo:external-graphic src=file:reallogo.jpg/ /fo:block the pictures are in the same directory as the xsl/xml file. i also tried: fo:external-graphic src=reallogo.gif/, fo:external-graphic src=url(reallogo.gif)/ bye ww * *Babs *- Original Message - *From: Wolle [EMAIL PROTECTED] *To: [EMAIL PROTECTED] *Sent: Friday, August 02, 2002 11:48 AM *Subject: fop * * * hi! * * I made a xsl-file to generate from a xml file a pdf. this works fine as * long as i use fop standalone (command line). * * if producing the pdf with cocoon i get the text without any pictures * (gif/jpg). * * has anybody the same problem? where can i get some information about whats * working wrong? * * i need some help. * * * * bye * * wolfgang weigel * k * * * - * 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] * Auf bald Wolfgang Weigel _ Wolfgang Weigel Universitaet Wuerzburg Didaktik Mathematik Am Hubland 97074 Wuerzburg [EMAIL PROTECTED] office: 0931/888-5078 _ __ __ __ | | /| / /__ / / /__ __ / / ___ ___ / / / / | |/ |/ / _ \/ / / -_) | |/|/ / _ `(_- / _ \/ -_) __/ -_) /_/_/_/ |__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_) - - 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: Servlet generating an XML---How to write the pipeline?
Hi Skip, I have the class, Servlet.class and I have placed it in the Web-Inf folder.Now my main sitemap is as follows: map:match pattern=Servlet/*(what should be there in the Servlet folder?) map:act type=request map:parameter name=parameters value=true/ map:generate src= /(what should be the source?) map:transform src=stylesheets/servlet.xsl/ /map:act map:serialize type=html/ /map:match My servlet generates an xml file as an output stream. and is the following URL be used to see the result? http://localhost:8080/cocoon/Servlet Kavitha I dont have a folder called --- Skip Carter [EMAIL PROTECTED] wrote: I have a servlet which generates an xml file which in turn should be transformed using xslt.How do I write the pipeline for the same? Say the name of the servlet is check.class(where should I place the class, in web-inf?), the name of the xml file generated by the pipeline is test.xml and the stylesheet used is test.xsl.How should my pipeline look like? I handle this with any entry like the following in the main pipeline in sitemap.xmap: !-- chain a servlet from tomcat -- !-- note: using the request action only works for GET not for POST -- map:match pattern=Servlet/* map:act type=request map:parameter name=parameters value=true/ map:generate src=http://myserver.com:8080{requestURI}{requestQ uery} / map:transform src=stylesheets/servlets.xsl / /map:act map:serialize type=html/ /map:match (If somebody has a good solution for POST I'd be interested in seeing it) My servlets are handled directly by tomcat (which is listening on port 8080), that way I can easily control access to the raw servlet. But you can have cocoon handle the servlet instead by making the proper entries in the cocoon WEB-INF/web.xml file, for example: !-- after the normal cocoon servlet entry -- servlet servlet-namecheck/servlet-name servlet-classcheck/servlet-class /servlet !-- before the normal cocoon servlet-mapping entry -- servlet-mapping servlet-namecheck/servlet-name url-pattern/check/url-pattern /servlet-mapping Your classes can go in WEB-INF/classes Skip -- Dr. Everett (Skip) Carter Phone: 831-641-0645 FAX: 831-641-0647 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED] 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com Monterey, CA. 93940 - 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] Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.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]
JDBC Connection: The url cannot be null
Hello, i´ve got a problem connecting to SQLBase with JDBC and i hope someone here can give me a hint: When transforming an xml document with the sql-transformer i get an error: The url cannot be null. This is the result: rowset xmlns=http://apache.org/cocoon/SQL/2.0;errorThe url cannot be null/error/rowset I can see that jdbc driver connects to the database, so classes are found and loaded correctly. The dburl is correct to, the jdbc driver can connect with this url, username an password from within other applications without problems. This is my xml file called user.xml: ?xml version=1.0? page xmlns:sql=http://apache.org/cocoon/SQL/2.0; titleHello/title content paraThis is my first Cocoon2 page filled with sql data!/para execute-query xmlns=http://apache.org/cocoon/SQL/2.0; queryselect vorname,nachname from kickuser/query /execute-query /content /page This is my transformer: map:transformer logger=sitemap.transformer.sql name=sql src= org.apache.cocoon.transformation.SQLTransformer map:parameter name=use-connection value=mydb/ /map:transformer This is my sitemap match: map:match pattern=user map:generate src=user.xml/ map:transform type=sql/ map:serialize type=xml/ /map:match This is my datasource in cocoon.xconf: jdbc name=mydb pool-controller max=5 min=2/ dburljdbc:sqlbase://myip:2155/mydb/dburl userSYSADM/user passwordmypasswd/password /jdbc Joern - 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: fop
The only way I could get images to work through cocoon was to provide an absolute file system path to the image using the file:// protocol. I used a sitemap parameter to pass the path into my stylesheet so that it was still configurable on different machines. Andrew On Fri, 2002-08-02 at 12:01, Wolle wrote: On Fri, 2 Aug 2002, Barbara Post wrote: *image path issue ? absolute, relative ? here is some code from the xml-file: logo name=reallogo.jpg/ here is some code from the xsl-file: fo:block fo:external-graphic src=file:reallogo.jpg/ /fo:block the pictures are in the same directory as the xsl/xml file. i also tried: fo:external-graphic src=reallogo.gif/, fo:external-graphic src=url(reallogo.gif)/ bye ww * *Babs *- Original Message - *From: Wolle [EMAIL PROTECTED] *To: [EMAIL PROTECTED] *Sent: Friday, August 02, 2002 11:48 AM *Subject: fop * * * hi! * * I made a xsl-file to generate from a xml file a pdf. this works fine as * long as i use fop standalone (command line). * * if producing the pdf with cocoon i get the text without any pictures * (gif/jpg). * * has anybody the same problem? where can i get some information about whats * working wrong? * * i need some help. * * * * bye * * wolfgang weigel * k * * * - * 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] * Auf bald Wolfgang Weigel _ Wolfgang Weigel Universitaet Wuerzburg Didaktik Mathematik Am Hubland 97074 Wuerzburg [EMAIL PROTECTED] office: 0931/888-5078 _ __ __ __ | | /| / /__ / / /__ __ / / ___ ___ / / / / | |/ |/ / _ \/ / / -_) | |/|/ / _ `(_- / _ \/ -_) __/ -_) /_/_/_/ |__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_) - - 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: fop
hi! which parameter did you use in the sitemap. can you show a example? bye wolfgang weigel *The only way I could get images to work through cocoon was to provide an *absolute file system path to the image using the file:// protocol. *I used a sitemap parameter to pass the path into my stylesheet so that *it was still configurable on different machines. * *Andrew * *On Fri, 2002-08-02 at 12:01, Wolle wrote: * On Fri, 2 Aug 2002, Barbara Post wrote: * * *image path issue ? absolute, relative ? * * here is some code from the xml-file: * * logo name=reallogo.jpg/ * * * * here is some code from the xsl-file: * * * fo:block * fo:external-graphic src=file:reallogo.jpg/ * /fo:block * * * the pictures are in the same directory as the xsl/xml file. * * i also tried: * * fo:external-graphic src=reallogo.gif/, * fo:external-graphic src=url(reallogo.gif)/ * * * bye * * ww * * * * * *Babs * *- Original Message - * *From: Wolle [EMAIL PROTECTED] * *To: [EMAIL PROTECTED] * *Sent: Friday, August 02, 2002 11:48 AM * *Subject: fop * * * * * * hi! * * * * I made a xsl-file to generate from a xml file a pdf. this works fine as * * long as i use fop standalone (command line). * * * * if producing the pdf with cocoon i get the text without any pictures * * (gif/jpg). * * * * has anybody the same problem? where can i get some information about whats * * working wrong? * * * * i need some help. * * * * * * * * bye * * * * wolfgang weigel * * k * * * * * * - * * 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] * * * * Auf bald * * Wolfgang Weigel * _ * Wolfgang Weigel * Universitaet Wuerzburg * Didaktik Mathematik * Am Hubland * 97074 Wuerzburg * * [EMAIL PROTECTED] * office: 0931/888-5078 * _ __ __ __ * | | /| / /__ / / /__ __ / / ___ ___ / / / / * | |/ |/ / _ \/ / / -_) | |/|/ / _ `(_- / _ \/ -_) __/ -_) /_/_/_/ * |__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_) * * - * * * - * 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] * Auf bald Wolfgang Weigel _ Wolfgang Weigel Universitaet Wuerzburg Didaktik Mathematik Am Hubland 97074 Wuerzburg [EMAIL PROTECTED] office: 0931/888-5078 _ __ __ __ | | /| / /__ / / /__ __ / / ___ ___ / / / / | |/ |/ / _ \/ / / -_) | |/|/ / _ `(_- / _ \/ -_) __/ -_) /_/_/_/ |__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_) - - 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: decision issue (document and sitemap communication)
From: Barbara Post [mailto:[EMAIL PROTECTED]] Hello, I have the following problem : 1. Query foo document from a database, using xmldb query shortcut, so this comes as map:generate src=xmldb:...). * I want to decide on the presence of a certain tag in foo, let's say result, to do a map:act. * 2a. if result exists : there are required fields so create form validation descriptor from template (another database document retrieval) then try to validate form. If form validation fails generate input form, if success generate licence and license info form. 2b. If result doesn't exist : no form validation needed, go to another pipeline (yeah this repeats...) that generates license and license info form. My question is : how to be able to decide that I want to do an action, when I retrieve an xml document ? How can my sitemap know that I have result tag in my xml document ? It can not. Think different: Use XSLT to check for result, convert to appropriate CInclude, which will point to pipeline with form validation/generation. If result is not there, same XSLT can generate html with refresh to different pipeline. I can no way use map:redirect-to since I have a bunch of request parameters I need for input form generation, and these parameters are variable in number... (so everything is wrapped in map:act type=request). Maybe I should use an action to query xml database instead of shortcut by xmldb query ? :-/ That's another way which also will work. Vadim The core is that a request parameter, named template is used to query the database and only this result allows to know whether form validation should happen or not... Hoping that I am clear. Barbara PS : sorry for sending html mail last evening (Western Europe time), I didn't check a plain text box at home... - 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: fop
did you set up an pipeline matching **.gif and **.jpg ? it works fine here, so no worry about absolute paths, only relative ones. are the images out of the webapp's main directory ? Babs - Original Message - From: Andrew Timberlake [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 1:08 PM Subject: Re: fop The only way I could get images to work through cocoon was to provide an absolute file system path to the image using the file:// protocol. I used a sitemap parameter to pass the path into my stylesheet so that it was still configurable on different machines. Andrew On Fri, 2002-08-02 at 12:01, Wolle wrote: On Fri, 2 Aug 2002, Barbara Post wrote: *image path issue ? absolute, relative ? here is some code from the xml-file: logo name=reallogo.jpg/ here is some code from the xsl-file: fo:block fo:external-graphic src=file:reallogo.jpg/ /fo:block the pictures are in the same directory as the xsl/xml file. i also tried: fo:external-graphic src=reallogo.gif/, fo:external-graphic src=url(reallogo.gif)/ bye ww * *Babs *- Original Message - *From: Wolle [EMAIL PROTECTED] *To: [EMAIL PROTECTED] *Sent: Friday, August 02, 2002 11:48 AM *Subject: fop * * * hi! * * I made a xsl-file to generate from a xml file a pdf. this works fine as * long as i use fop standalone (command line). * * if producing the pdf with cocoon i get the text without any pictures * (gif/jpg). * * has anybody the same problem? where can i get some information about whats * working wrong? * * i need some help. * * * * bye * * wolfgang weigel * k * * * - * 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] * Auf bald Wolfgang Weigel _ Wolfgang Weigel Universitaet Wuerzburg Didaktik Mathematik Am Hubland 97074 Wuerzburg [EMAIL PROTECTED] office: 0931/888-5078 _ __ __ __ | | /| / /__ / / /__ __ / / ___ ___ / / / / | |/ |/ / _ \/ / / -_) | |/|/ / _ `(_- / _ \/ -_) __/ -_) /_/_/_/ |__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_) - - 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]
AW: fop
An url (http://localhost/..) would do as well Judith -Ursprüngliche Nachricht- Von: Andrew Timberlake [SMTP:[EMAIL PROTECTED]] Gesendet am: Freitag, 2. August 2002 13:08 An: [EMAIL PROTECTED] Betreff: Re: fop The only way I could get images to work through cocoon was to provide an absolute file system path to the image using the file:// protocol. I used a sitemap parameter to pass the path into my stylesheet so that it was still configurable on different machines. Andrew On Fri, 2002-08-02 at 12:01, Wolle wrote: On Fri, 2 Aug 2002, Barbara Post wrote: *image path issue ? absolute, relative ? here is some code from the xml-file: logo name=reallogo.jpg/ here is some code from the xsl-file: fo:block fo:external-graphic src=file:reallogo.jpg/ /fo:block the pictures are in the same directory as the xsl/xml file. i also tried: fo:external-graphic src=reallogo.gif/, fo:external-graphic src=url(reallogo.gif)/ bye ww * *Babs *- Original Message - *From: Wolle [EMAIL PROTECTED] *To: [EMAIL PROTECTED] *Sent: Friday, August 02, 2002 11:48 AM *Subject: fop * * * hi! * * I made a xsl-file to generate from a xml file a pdf. this works fine as * long as i use fop standalone (command line). * * if producing the pdf with cocoon i get the text without any pictures * (gif/jpg). * * has anybody the same problem? where can i get some information about whats * working wrong? * * i need some help. * * * * bye * * wolfgang weigel * k * * * - * 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] * Auf bald Wolfgang Weigel _ Wolfgang Weigel Universitaet Wuerzburg Didaktik Mathematik Am Hubland 97074 Wuerzburg [EMAIL PROTECTED] office: 0931/888-5078 _ __ __ __ | | /| / /__ / / /__ __ / / ___ ___ / / / / | |/ |/ / _ \/ / / -_) | |/|/ / _ `(_- / _ \/ -_) __/ -_) /_/_/_/ |__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_) - - 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]
inserting xml with util:include-expr
Hi List, In earlier (2.0.2) versions of Cocoon I included a string containing XML-Data from a session variable into XSPs this way: util:include-expr util:exprxsp:expr xsp-session:get-attribute name=sometext/ /xsp:expr/util:expr /util:include-expr in 2.0.3 and recent 2.1-dev from cvs this gives the following error, whats wrong? org.apache.cocoon.components.language.LanguageException: Error compiling search_xml: ERROR 1 (/opt/WebSphere/AppServer/temp/default_host/AVOS/cocoon-files/org/apache /cocoon/www/generators/search_xml.java): ... this.characters(); this.characters(); // start error (lines 376-376) method includeString(java.lang.Object, org.apache.avalon.framework.component.ComponentManager, org.xml.sax.ContentHandler) not found in class org.apache.cocoon.components.language.markup.xsp.XSPUtil XSPUtil.includeString( // end error ( XSPSessionHelper.getSessionAttribute(session, ... Line 376, column 14: method includeString(java.lang.Object, org.apache.avalon.framework.component.ComponentManager, org.xml.sax.ContentHandler) not found in class org.apache.cocoon.components.language.markup.xsp.XSPUtil Line 0, column 0: 1 error - 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: inserting xml with util:include-expr
From: Michael Zehrer [mailto:[EMAIL PROTECTED]] Hi List, In earlier (2.0.2) versions of Cocoon I included a string containing XML-Data from a session variable into XSPs this way: util:include-expr util:exprxsp:expr xsp-session:get-attribute name=sometext/ /xsp:expr/util:expr /util:include-expr in 2.0.3 and recent 2.1-dev from cvs this gives the following error, whats wrong? I think that's new bug. Until it is fixed use following work-around: util:include-expr util:exprxsp:expr String.valueOf(xsp-session:get-attribute name=sometext/) /xsp:expr/util:expr /util:include-expr Or, patch util.xsl (line ~206) to have same. Vadim org.apache.cocoon.components.language.LanguageException: Error compiling search_xml: ERROR 1 (/opt/WebSphere/AppServer/temp/default_host/AVOS/cocoon-files/org/apache /cocoon/www/generators/search_xml.java): ... this.characters(); this.characters(); // start error (lines 376-376) method includeString(java.lang.Object, org.apache.avalon.framework.component.ComponentManager, org.xml.sax.ContentHandler) not found in class org.apache.cocoon.components.language.markup.xsp.XSPUtil XSPUtil.includeString( // end error ( XSPSessionHelper.getSessionAttribute(session, ... Line 376, column 14: method includeString(java.lang.Object, org.apache.avalon.framework.component.ComponentManager, org.xml.sax.ContentHandler) not found in class org.apache.cocoon.components.language.markup.xsp.XSPUtil Line 0, column 0: 1 error - 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: LinkSerializer not seeing links (href, src)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Vadim, I have a second problem with LinkSerializer. Sometimes I can only see href's (no src), Give an example (reproducible). sometimes I can't see any links. Same here. I wasn't able to reproduce the version, where only href's where recognised, but here's a version, which doesn't produce any links. It's stripped down as much as possible. When it would work, you should see a broken link to test2.html. The error xsl isn't included, it's the sample. Thanks for the example. Let me clarify how link serializer works. It react only on elements which has href or src or background attributes in the *same* namespace as element. First, you were right, thanks! But is this a bug or a feature? When I create a normal html, translate it to xhtml via tidy, and parse it with the FileGenerator, then it looks like my xml source. Shouldn't then LinkSerializer react on those links? It was valid against the right dtd. With kind regards Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9SobnvxZktkzSmiwRAmDaAJ9QK3zxQJMKRmQPaYWqbNqsA6WnjwCeNx64 zLLbo51KKpvQpWQdExc+Wn0= =1VX8 -END PGP SIGNATURE- - 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: inserting xml with util:include-expr
Hi Vadim, that works, thank you. Michael -Ursprüngliche Nachricht- Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 2. August 2002 14:32 An: [EMAIL PROTECTED] Betreff: RE: inserting xml with util:include-expr From: Michael Zehrer [mailto:[EMAIL PROTECTED]] Hi List, In earlier (2.0.2) versions of Cocoon I included a string containing XML-Data from a session variable into XSPs this way: util:include-expr util:exprxsp:expr xsp-session:get-attribute name=sometext/ /xsp:expr/util:expr /util:include-expr in 2.0.3 and recent 2.1-dev from cvs this gives the following error, whats wrong? I think that's new bug. Until it is fixed use following work-around: util:include-expr util:exprxsp:expr String.valueOf(xsp-session:get-attribute name=sometext/) /xsp:expr/util:expr /util:include-expr Or, patch util.xsl (line ~206) to have same. Vadim org.apache.cocoon.components.language.LanguageException: Error compiling search_xml: ERROR 1 (/opt/WebSphere/AppServer/temp/default_host/AVOS/cocoon-files/org/apache /cocoon/www/generators/search_xml.java): ... this.characters(); this.characters(); // start error (lines 376-376) method includeString(java.lang.Object, org.apache.avalon.framework.component.ComponentManager, org.xml.sax.ContentHandler) not found in class org.apache.cocoon.components.language.markup.xsp.XSPUtil XSPUtil.includeString( // end error ( XSPSessionHelper.getSessionAttribute(session, ... Line 376, column 14: method includeString(java.lang.Object, org.apache.avalon.framework.component.ComponentManager, org.xml.sax.ContentHandler) not found in class org.apache.cocoon.components.language.markup.xsp.XSPUtil Line 0, column 0: 1 error - 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]
TextSerializer working like XMLSerializer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, next problem. I've created some xsl's which transform (most) vCard's in rdf format to the text version. Also I have patched MIMEUtils to support the mime-type (text/x-vcard) and the file extension (vcf). This part works without problems. The patch will go to bugzilla today. Now I have the the problem, that TextSerializer is working like XMLSerializer. It creates the xml declaration, output's tags (not only text) when I use them, and doesn't strip the root element. In the sitemap log I can see, that TextSerializer is really used. When I use the command line of xalan, it works without problems. Here is a stripped down version of the sitemap. If you also need the xsl's, and an example rdf, I can mail them. ?xml version=1.0 encoding=UTF-8? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators default=file map:generator logger=sitemap.generator.file name=file pool-grow=4 pool-max=32 pool-min=8 src=org.apache.cocoon.generation.FileGenerator / /map:generators map:transformers default=xslt map:transformer logger=sitemap.transformer.xsltc name=xslt pool-grow=2 pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer / /map:transformers map:serializers default=xml map:serializer logger=sitemap.serializer.vcard mime-type=text/x-vcard name=vcard src=org.apache.cocoon.serialization.TextSerializer / /map:serializers map:pipelines default=caching map:pipeline name=caching src=org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline / /map:pipelines /map:components map:pipelines map:pipeline map:generate type=file src=test.rdf / map:transform src=xsl/bagseq.xsl / map:transform src=xsl/fixuri.xsl / map:transform src=xsl/typevalue.xsl / map:transform src=xsl/text.xsl / map:transform src=xsl/check.xsl / map:serialize type=vcard / map:handle-errors map:transform src=../xsl/error2html.xsl / map:serialize status-code=500 / /map:handle-errors /map:pipeline /map:pipelines /map:sitemap Hope someone can help here. Thanks in advance Torsten Knodt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9So4nvxZktkzSmiwRAofYAKCH5xyMgs/BjBQ8gIbI/KpK72mHGwCfcjNE zBp172sAipsU+3l71xeNuac= =F2bl -END PGP SIGNATURE- - 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]
xsp:attribute and cinclude
Hi again, In earlier (2.0.2) versions of Cocoon I constructed the path for cinclude like this and it worked: cinclude:include xsp:attribute name=srcsome/static/xml/xsp-session:get-attribute name=parm2//xsp-session:get-attribute name=parm2//content.xinc/xsp:attribute /cinclude:include in 2.1-dev this gives cinclude:include src=pkw/stylesheets/dict/parm1parm2 / in the resulting xml where the values for parm1 and parm2 are correct but the extra slash betwen them and the filename are completly ignored? Michael - 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]
form never validates !...
Hello, my form does not validate The submit button of form sends to form2fill and thanks to Christian's transformer I keep my request parameters to regenerate fully the form (will add a template to my xsl to add an error message). I can't go to the success part (google to test :-p ). In fact if all required fields are filled I get redirected to my form ! I only decide on nullable attribute of parameter in the descriptor. Here are elements : This is my descriptor for form validation : ?xml version=1.0 encoding=UTF-8 ? root parameter name=InternalInfo_Email nullable=yes type=string / !-- a big bunch of parameters -- constraint-set name=default validate name=SalesInfo_CustomerID / validate name=SalesInfo_CustomerName / /constraint-set /root Piece of pipeline : map:match pattern=form2fill !-- be sure one gets the request parameters -- map:act type=request map:parameter name=parameters value=true/ !-- authenticate as usual -- map:act type=sunRise-auth map:parameter name=handler value=baepp-handler/ !-- form validation -- map:act type=form-validator map:parameter name=descriptor value=cocoon://getdescriptor/{../../template}/ map:parameter name=validate-set value=default/ !-- ok so generate license and show it -- !-- test -- map:redirect-to uri=http://www.google.fr/ /map:act !-- failed so show input form -- map:aggregate . /map:aggregate map:transform type=sunShine/ map:transform src=xsl/genlicform2fill.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:transform src=xsl/select.xsl/ !-- keeps request params -- map:transform type=simple-form/ map:serialize type=html/ /map:act /map:act /map:match Thanks for any clue... Barbara - 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: form never validates !...
On 02.Aug.2002 -- 04:03 PM, Barbara Post wrote: Hello, my form does not validate The submit button of form sends to form2fill and thanks to Christian's transformer I keep my request parameters to regenerate fully the form (will add a template to my xsl to add an error message). I can't go to the success part (google to test :-p ). In fact if all required fields are filled I get redirected to my form ! I only decide on nullable attribute of parameter in the descriptor. Look at the log, for every parameter is says what constraint it tests and if it is fulfilled or not. It usually helps to find the error. Here are elements : This is my descriptor for form validation : ?xml version=1.0 encoding=UTF-8 ? root parameter name=InternalInfo_Email nullable=yes type=string / !-- a big bunch of parameters -- constraint-set name=default validate name=SalesInfo_CustomerID / validate name=SalesInfo_CustomerName / /constraint-set /root This validates two parameters named SalesInfo_CustomerID and SalesInfo_CustomerName, which are not included above, unfortunately. 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: form never validates !...
My generated descriptor is empty, I wonder why... Pipeline for getdescriptor works ok alone (database query)... but not when I use : cocoon://getdescriptor/hard_coded_template_name Even when I write : map:parameter name=descriptor value=xml/mydesc.xml/ assuming that it is in my webapp's root \ xml folder... :-o - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 4:03 PM Subject: form never validates !... Hello, my form does not validate The submit button of form sends to form2fill and thanks to Christian's transformer I keep my request parameters to regenerate fully the form (will add a template to my xsl to add an error message). I can't go to the success part (google to test :-p ). In fact if all required fields are filled I get redirected to my form ! I only decide on nullable attribute of parameter in the descriptor. Here are elements : This is my descriptor for form validation : ?xml version=1.0 encoding=UTF-8 ? root parameter name=InternalInfo_Email nullable=yes type=string / !-- a big bunch of parameters -- constraint-set name=default validate name=SalesInfo_CustomerID / validate name=SalesInfo_CustomerName / /constraint-set /root Piece of pipeline : map:match pattern=form2fill !-- be sure one gets the request parameters -- map:act type=request map:parameter name=parameters value=true/ !-- authenticate as usual -- map:act type=sunRise-auth map:parameter name=handler value=baepp-handler/ !-- form validation -- map:act type=form-validator map:parameter name=descriptor value=cocoon://getdescriptor/{../../template}/ map:parameter name=validate-set value=default/ !-- ok so generate license and show it -- !-- test -- map:redirect-to uri=http://www.google.fr/ /map:act !-- failed so show input form -- map:aggregate . /map:aggregate map:transform type=sunShine/ map:transform src=xsl/genlicform2fill.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:transform src=xsl/select.xsl/ !-- keeps request params -- map:transform type=simple-form/ map:serialize type=html/ /map:act /map:act /map:match Thanks for any clue... Barbara - 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: form never validates !...
ok I have to see what's wrong with cocoon://, when I use xml\mydesc.xml it's ok (forgot to type the .xml lol :-/ ). - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 4:36 PM Subject: Re: form never validates !... My generated descriptor is empty, I wonder why... Pipeline for getdescriptor works ok alone (database query)... but not when I use : cocoon://getdescriptor/hard_coded_template_name Even when I write : map:parameter name=descriptor value=xml/mydesc.xml/ assuming that it is in my webapp's root \ xml folder... :-o - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 4:03 PM Subject: form never validates !... Hello, my form does not validate The submit button of form sends to form2fill and thanks to Christian's transformer I keep my request parameters to regenerate fully the form (will add a template to my xsl to add an error message). I can't go to the success part (google to test :-p ). In fact if all required fields are filled I get redirected to my form ! I only decide on nullable attribute of parameter in the descriptor. Here are elements : This is my descriptor for form validation : ?xml version=1.0 encoding=UTF-8 ? root parameter name=InternalInfo_Email nullable=yes type=string / !-- a big bunch of parameters -- constraint-set name=default validate name=SalesInfo_CustomerID / validate name=SalesInfo_CustomerName / /constraint-set /root Piece of pipeline : map:match pattern=form2fill !-- be sure one gets the request parameters -- map:act type=request map:parameter name=parameters value=true/ !-- authenticate as usual -- map:act type=sunRise-auth map:parameter name=handler value=baepp-handler/ !-- form validation -- map:act type=form-validator map:parameter name=descriptor value=cocoon://getdescriptor/{../../template}/ map:parameter name=validate-set value=default/ !-- ok so generate license and show it -- !-- test -- map:redirect-to uri=http://www.google.fr/ /map:act !-- failed so show input form -- map:aggregate . /map:aggregate map:transform type=sunShine/ map:transform src=xsl/genlicform2fill.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:transform src=xsl/select.xsl/ !-- keeps request params -- map:transform type=simple-form/ map:serialize type=html/ /map:act /map:act /map:match Thanks for any clue... Barbara - 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: Authenticators call DB (or other) every request?
It looks to me like authenticator Actions query the database, dbxml, or whatever on every login request. Ah. You're right below, I see now that the db-authentication is only called on the login handler - Is that really necessary once the session has been established? Probably. Of course, you want to verify password. ... but I thought this also, which is why I figured the DB was being queried every time since any DB changes would need to be reflected immediately. Of course, the 'protected' sample doesn't even use a password but I figure you're speaking abstractly. PS Are you confusing authenticators with validators? See protected/sitemap.xmap. Yes. As for my other thread, any experience using container managed security with Cocoon? Per - 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: How to Lock and specify the Width of Cells using POI..
You cannot currently lock cells (assuming you mean ether protect via encryption or freeze in place). Look at: http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html Specifically gmr:ColInfo as well as the webapp/cocoon/samples/poi examples (under Legacy Formats from the menu). -Andy Kommineni, Sateesh (IndSys) wrote: Hi, I am using POI's HSSF implementation for generating Excel Sheets from my Java Program. How can we lock the Cells in a sheet and how to specify the Width of the Cell.. Pls let me know how to achieve the above details... Thanks a lot... -Sateesh THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system. - 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]
XSP Question
Title: XSP Question Hello all, I gather address information for different companies and allow for them to then later update the existing address information. I am using cinclude address.xsp to my page.xsp. I need my address.xsp to perform the following, but I am not sure how to create this as an xsp. I need to be able to reuse the name, address, etc pieces in multiple places. The concept is like calling a name function in Java. I don't want to create an xsp for each name, address, etc. Has anyone done anything like this, or know how it can be accomplished? if Adding { name address city state zip } if Editing { address city state zip } name { additional stuff for name } address { additional stuff for address } etc.
Re: How to use Redirector...
This should only be necessary if you are using URL encoded sessions. The nature of cookies is such that until the cookie expires, the client should be sending the information in the cookie with each request. Regards, Sterling On Thu, 2002-08-01 at 11:51, Justin Fagnani-Bell wrote: Thanks, The sessionMode variable is particularly poorly documented and, if true, simply means that the session id will be appended to the URI. Regards, Sterling If I'm using cookies for session management will it just maintain the session if sessionMode=true, or is sessionMode only for URL encoded sessions? Justin On Thu, 2002-08-01 at 10:47, Justin Fagnani-Bell wrote: Is there any documentation on how to use either the Redirector passed to Action.act() or the sitemap map:redirect-to tag? I've used redirect-to successfully but I would still like some documentation to make sure I'm doing things correctly. I can't find anything in the cocoon docs and the api docs don't say much. I'd also like to use the Redirector object in Action, and I assume it works the same (or that the class implementing the tag is a Redirector), but I'd like to know more. What does sessionmode do? Any suggestions? Thanks, Justin - 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] -- Andrew Sterling Hanenkamp http://Andrew.Sterling.Hanenkamp.com/ [EMAIL PROTECTED] / [EMAIL PROTECTED] Friends, there comes a time in every man's life where he has to look the potato of injustice right in the eye. -- Michael Richards, UHF - 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]
XSLT select: does case matter in tag cames?
Dear All, WARNING: I'm a Cocoon newbie.. I'm implementing an XSLT transformation that generates HTML from XML. It all works fine except that the XML that gets generated has some tags with names in upper case (Yeah, it's lame. I'm trying to extend somone else's code). When using my Cocoon pipeline and XSLT sheet, and tries to match on those tags using a select with the upper case version of the tag name, it never matches. However, when I try matching with lower case to so the select, it works fine. E.g. in the generated XML I have: category NAMEsome name/NAME ... In my XSLT sheet, I have: xsl:template ..that matches on 'category'.. xsl:value-of select=NAME This never matches unless I use the string name, instead of NAME in the select. This wouldn't bother me, except that when I'm debugging the XSLT transformation on the command line, the lower case doesn't match. From what I remember of XML and XSLT (the xalan processor anyways), size matters ;). Is there some Cocoon 'feature' or 'option' that's tryng to help me out? Many thanks in advance, Alan Hodgkinson Luzern, Switzerland P.S. A big pat on the back for the Cocoon developers! It's pretty cool. - 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: XSLT select: does case matter in tag cames?
Yes, in the whole XML world size matters. The behaviour you describe is really strange. It never encountered to me. Regards, Joerg Alan Hodgkinson wrote: Dear All, WARNING: I'm a Cocoon newbie.. I'm implementing an XSLT transformation that generates HTML from XML. It all works fine except that the XML that gets generated has some tags with names in upper case (Yeah, it's lame. I'm trying to extend somone else's code). When using my Cocoon pipeline and XSLT sheet, and tries to match on those tags using a select with the upper case version of the tag name, it never matches. However, when I try matching with lower case to so the select, it works fine. E.g. in the generated XML I have: category NAMEsome name/NAME ... In my XSLT sheet, I have: xsl:template ..that matches on 'category'.. xsl:value-of select=NAME This never matches unless I use the string name, instead of NAME in the select. This wouldn't bother me, except that when I'm debugging the XSLT transformation on the command line, the lower case doesn't match. From what I remember of XML and XSLT (the xalan processor anyways), size matters ;). Is there some Cocoon 'feature' or 'option' that's tryng to help me out? Many thanks in advance, Alan Hodgkinson Luzern, Switzerland -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: advice on a simple architecture for xml versioning
My research on the subject led me to the following (not much, I admit): 1. It does exist an XMLDiff utility (see www.vmguys.com), but it needs JDOM. Is anyone using it in a C2 environment ? Does exist some other alternative in the xml.apache realm ? Within the Prowler-Project (http://www.infozone-group.org) we startet versioning of XML documents based on DOM. It works in so far that you can create a version tree of a document but without branches and tags (so it's not a real tree ;-)). If I remember right, there is also a Swing-based frontend. Best Regards, Gerd Gerd Mueller[EMAIL PROTECTED] SMB GmbH http://www.smb-tec.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]
Uploading files
Hi, I want to upload files, and put the uploaded files in a directory other than the default and with a name other than the original name, how can I do this ? Thanks in advance. Alejandro - 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]
HSSFSerializer / Null Pointer exception
Hi, When i try to use the HSSFSerializer from java, using an XMLReader, i get a NullPointer Exception when i use the parse function. I use POI, Xerces and xalan from cocoon 2.0.3 distribution. All is deployed on Websphere 3.5.6. Any idea how to solve this problem ? Thanks. Seb Here is my code : / Output XML to XLS // // Instantiate a TransformerFactory. javax.xml.transform.TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance(); // Verify that the TransformerFactory implementation you are using // supports SAX input and output (Xalan-Java does!). if (tFactory.getFeature(javax.xml.transform.sax.SAXSource.FEATURE) tFactory.getFeature(javax.xml.transform.sax.SAXResult.FEATURE)) { //System.out.println(sauveXMLToXLS - Debut transformation); // Cast the TransformerFactory to SAXTransformerFactory. javax.xml.transform.sax.SAXTransformerFactory saxTFactory = ((javax.xml.transform.sax.SAXTransformerFactory) tFactory); // Create a Templates ContentHandler to handle parsing of the // stylesheet. javax.xml.transform.sax.TemplatesHandler templatesHandler = saxTFactory.newTemplatesHandler(); // Create an XMLReader and set its ContentHandler. org.xml.sax.XMLReader reader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader(); reader.setContentHandler(templatesHandler); // Parse the stylesheet. reader.parse(xslFilename); // Get the Templates object (generated during the parsing of the stylesheet) // from the TemplatesHandler. javax.xml.transform.Templates templates = templatesHandler.getTemplates(); // Create a Transformer ContentHandler to handle parsing of // the XML Source. javax.xml.transform.sax.TransformerHandler transformerHandler = saxTFactory.newTransformerHandler(templates); // Reset the XMLReader's ContentHandler to the TransformerHandler. reader.setContentHandler(transformerHandler); // Set the ContentHandler to also function as a LexicalHandler, which // can process lexical events (such as comments and CDATA). reader.setProperty(http://xml.org/sax/properties/lexical-handler;, transformerHandler); // Set up a Serializer to serialize the Result to a file. HSSFSerializer ser = new HSSFSerializer(); ser.setOutputStream(xlsFile); //org.apache.cocoon.serialization.XMLSerializer ser = new org.apache.cocoon.serialization.XMLSerializer(); //ser.setOutputStream(System.out); // The Serializer functions as a SAX ContentHandler. javax.xml.transform.Result result = new javax.xml.transform.sax.SAXResult((org.xml.sax.ContentHandler)ser); transformerHandler.setResult(result); // Parse the XML input document. reader.parse(xmlFilename); // Here i get NullPointer Exception Sébastien PLISSON DSIT XS / Infocentre Tél. : 30.13.90 - 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: advice on a simple architecture for xml versioning
Hi, Gerd Mueller wrote: My research on the subject led me to the following (not much, I admit): 1. It does exist an XMLDiff utility (see www.vmguys.com), but it needs JDOM. Is anyone using it in a C2 environment ? Does exist some other alternative in the xml.apache realm ? Within the Prowler-Project (http://www.infozone-group.org) we startet versioning of XML documents based on DOM. It works in so far that you can create a version tree of a document but without branches and tags (so it's not a real tree ;-)). If I remember right, there is also a Swing-based frontend. Subversion is looking very cool - http://subversion.tigris.org. You get back well-formed conflicts... ahhh But currently there is no real java interface. There seems to be a little activity, though. best, -Rob - 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: jboss 3 + cocoon 2.0.3
Ok, can someone point me to where I find out how to build an ear from a war? Terry Anderson wrote: Actually, built the .war into the .ear along with the applications.xml file. -Original Message- From: Per Kreipke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: RE: jboss 3 + cocoon 2.0.3 Terry, Not sure if you got an answer, but I just got cocoon 2.0.3 + jboss 3.0.0 + tomcat 4.0.3 running. I built the standard cocoon webapp (.war) into a .ear file and deployed from that. It sounds like you simply renamed the .war to .ear. Is that what you meant or did you specify a different build target? Per - 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: Servlet generating an XML---How to write the pipeline?
Kavitha, I have the class, Servlet.class and I have placed it in the Web-Inf folder.Now my main sitemap is as follows: map:match pattern=Servlet/*(what should be there in the Servlet folder?) map:act type=request map:parameter name=parameters value=true/ map:generate src= /(what should be the source?) map:transform src=stylesheets/servlet.xsl/ /map:act map:serialize type=html/ /map:match My servlet generates an xml file as an output stream. and is the following URL be used to see the result? http://localhost:8080/cocoon/Servlet Ok, let me try to help by giving a step-by-step description: your servlet class file is located in: WEB-INF/classes/ web.xml has: servlet servlet-nameHello/servlet-name!-- the name we will use to refer to the servlet -- servlet-classHelloXML/servlet-class !-- the actual name of the Servlet class -- /servlet servlet-mapping servlet-nameHello/servlet-name url-pattern/internal/Hello/url-pattern!-- the URL path to the XML servlet -- /servlet-mapping sitemap.xmap has: map:match pattern=HelloWorld !-- the PUBLIC name of the servlet -- map:act type=request map:parameter name=parameters value=true/ !-- here we call the servlet that generates XML -- map:generate src=http://localhost:8080/cocoon/internal/Hello{ requestQuery} / map:transform src=stylesheets/hello.xsl / /map:act map:serialize type=html/ /map:match so that the Web request: http://localhost:8080/cocoon/HelloWorld should invoke this pattern (if you know to type: http://localhost:8080/cocoon/internal/Hello you will get the XML output). Hope that is more clear for you. -- Dr. Everett (Skip) Carter Phone: 831-641-0645 FAX: 831-641-0647 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED] 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com Monterey, CA. 93940 - 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 Won't Parce
-- Hello: I've been looking through the archives and I can't quite seem to find my problem. Which is... I go to http://localhost/cocoon and the directory contents are displayed... They are formatted and broken down into subdirectories and files. Does anyone know why they are not being run through a stylesheet?? I click on the sitemap.xmap and I get XML output. I go into the WEB-INF/cocoon.xconf and I get an error that says I don't have permission to access the file!? Also I have to run /cocoon from my web directory and not the java/jakarta/webapps/cocoon ? this happend after I added the line: JKMount /cocoon/* ajp12 to my httpd.conf file (Perviously I was only getting a directory listing...) I have all of the xalan, xml-apis, and such files in the cocoon/WEB-INF/lib folder and the permissions of the files in the cocoon/WEB-INF/ folder are all set correctly! Does anyone have a clue... can I try any commandline options to make sure that all is working? I've tried: java org.apache.xalan.xslt.Process -in fooX.xml -xsl foo.xsl -out my.htm in my xalan/samples folder, but I get an error: Exception in thread main java.lang.NoClassDefFoundError: org/apache/xalan/xslt /Process ? I'm pretty new at java, so I think I have all of the .jars in the correct place?! well I'm using: Cobalt Raq4 Linux Cocoon 2.0.3 Tomcat 3.2.3 Java jdk 1.3.1 Thanks for nay help! Nika - 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: Authenticators call DB (or other) every request?
From: Per Kreipke [mailto:[EMAIL PROTECTED]] ... As for my other thread, any experience using container managed security with Cocoon? Declarative security will work without any changes in Cocoon itself; for programmatic you can do IsUserInRoleAction and protect some parts of sitemap... Don't see an issue here. Vadim Per - 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 Won't Parce
Nika, Seems that you are a newbie... I recommend you first to familiarize itself with simple setup before doing more complex stuff. Please start with: 1. Get Tomcat 4.0.4 and install it. URL: http://localhost:8080/ should show you tomcat welcome page. 2. Copy cocoon.war to tomcat/webapps directory, and restart tomcat. 3. Go to http://localhost:8080/cocoon/ Same in more details you can read at: http://xml.apache.org/cocoon/installing/index.html Vadim From: Nika Jones [mailto:[EMAIL PROTECTED]] -- Hello: I've been looking through the archives and I can't quite seem to find my problem. Which is... I go to http://localhost/cocoon and the directory contents are displayed... They are formatted and broken down into subdirectories and files. Does anyone know why they are not being run through a stylesheet?? I click on the sitemap.xmap and I get XML output. I go into the WEB-INF/cocoon.xconf and I get an error that says I don't have permission to access the file!? Also I have to run /cocoon from my web directory and not the java/jakarta/webapps/cocoon ? this happend after I added the line: JKMount /cocoon/* ajp12 to my httpd.conf file (Perviously I was only getting a directory listing...) I have all of the xalan, xml-apis, and such files in the cocoon/WEB-INF/lib folder and the permissions of the files in the cocoon/WEB-INF/ folder are all set correctly! Does anyone have a clue... can I try any commandline options to make sure that all is working? I've tried: java org.apache.xalan.xslt.Process -in fooX.xml -xsl foo.xsl -out my.htm in my xalan/samples folder, but I get an error: Exception in thread main java.lang.NoClassDefFoundError: org/apache/xalan/xslt /Process ? I'm pretty new at java, so I think I have all of the .jars in the correct place?! well I'm using: Cobalt Raq4 Linux Cocoon 2.0.3 Tomcat 3.2.3 Java jdk 1.3.1 Thanks for nay help! Nika - 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: XSLT select: does case matter in tag cames?
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Yes, in the whole XML world size matters. The behaviour you describe is really strange. It never encountered to me. Ditto, size matters. Must be bug somewhere. Alan, Take a look at: http://localhost:8080/cocoon/news/xmlhack.xml?cocoon-view=content It has XML like: CHANNEL HREF=http://xmlhack.com/; BASE=http://xmlhack.com/; LASTMOD=2002-08-02T22:51 PRECACHE=YES LEVEL=0 TITLEXMLhack/TITLE ... With all CAPS. This is transformed with stylesheets/news/xmlhack.xsl XSLT: ... xsl:template match=CHANNEL ... And everything works. Check result at http://localhost:8080/cocoon/news/xmlhack.xml Vadim Regards, Joerg Alan Hodgkinson wrote: Dear All, WARNING: I'm a Cocoon newbie.. I'm implementing an XSLT transformation that generates HTML from XML. It all works fine except that the XML that gets generated has some tags with names in upper case (Yeah, it's lame. I'm trying to extend somone else's code). When using my Cocoon pipeline and XSLT sheet, and tries to match on those tags using a select with the upper case version of the tag name, it never matches. However, when I try matching with lower case to so the select, it works fine. E.g. in the generated XML I have: category NAMEsome name/NAME ... In my XSLT sheet, I have: xsl:template ..that matches on 'category'.. xsl:value-of select=NAME This never matches unless I use the string name, instead of NAME in the select. This wouldn't bother me, except that when I'm debugging the XSLT transformation on the command line, the lower case doesn't match. From what I remember of XML and XSLT (the xalan processor anyways), size matters ;). Is there some Cocoon 'feature' or 'option' that's tryng to help me out? Many thanks in advance, Alan Hodgkinson Luzern, Switzerland - 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: attribute and cinclude
From: Michael Zehrer [mailto:[EMAIL PROTECTED]] Hi again, In earlier (2.0.2) versions of Cocoon I constructed the path for cinclude like this and it worked: cinclude:include xsp:attribute name=srcsome/static/xml/xsp-session:get-attribute name=parm2//xsp-session:get-attribute name=parm2//content.xinc/xsp:attribute /cinclude:include in 2.1-dev this gives Cocoon 2.1-dev doesn't give anything right now (xerces/xalan issues). However, after replacing xalan/xerces/xml-apis with version from 2.0.3, the following works ok: xsp-session:set-attribute name=parm/xsp-session:set-attribute xsp-session:set-attribute name=parm/xsp-session:set-attribute textarea cols=80 rows=7 cinclude:include xsp:attribute name=srcsome/static/xml/xsp-session:get-attribute name=parm1//xsp-session:get-attribute name=parm2//content.xinc/xsp:attribute /cinclude:include /textarea (it also works in 2.0.4-dev) Vadim cinclude:include src=pkw/stylesheets/dict/parm1parm2 / in the resulting xml where the values for parm1 and parm2 are correct but the extra slash betwen them and the filename are completly ignored? Michael - 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: How to use a jbean of an XMLFORM from a custom generator?
Great it works. Thanx Ivelin. I did something like this. Form myFormInstance = Form.lookup( objectModel, form-feedback1 ); UserBean1 jBean = (UserBean1) myFormInstance.getModel(); String sql_query_where_clause = where pro_city = ' + jBean.getCity() + '; I should have realized that same is also done in WizardAction. But now I have two concerns: 1) Both the XMLFORM and the custom generator works independently (each has its own pipeline). I need to have the XMLFORM pipeline : ** map:match pattern=wizard* map:act type=WizardAction !-- XMLForm parameters for the AbstractXMLFormAction -- map:parameter name=xmlform-validator-schema-ns value=http://www.ascc.net/xml/schematron/ map:parameter name=xmlform-validator-schema value=schematron/wizard-xmlform-sch-report.xml/ map:parameter name=xmlform-id value=form-feedback1/ map:parameter name=xmlform-scope value=session/ map:parameter name=xmlform-model value=rertn_frontapp.UserBean1/ !-- Content transformation logic -- map:generate src=wizard/{page}.xml/ map:transform type=xmlform label=debug, xml/ map:transform src=stylesheets/wizard2html.xsl / map:transform src=context://samples/stylesheets/xmlform/xmlform2html.xsl/ map:serialize type=xhtml/ /map:act /map:match ** and the custom generator pipeline : ** map:match pattern=PropForSale(*) map:generate type=PropForSale/ map:select type=browser !-- you could insert parameters here as well -- map:when test=explorer map:transform type=paginate src=../pagesheets/PropForSale_P.pagesheet map:parameter name=page value={1}/ /map:transform map:transform src=../stylesheets/html_test1.xsl/ map:serialize type=html / /map:when /map:select /map:match ** somehow mearged or something. Currently I fill up the form and when I am on the confirm.xml page I open a new window in browser such that it is same session and run the custom generator. The end results of the generator are as needed form input dependent(so it is good). But still it has to be in one pipeline like instead of end.xml the custom generator should be called. I also understand that I would have to call Form.remove( getObjectModel(), getFormId() ); in my generator instead of the wizardAction. Right?? 2) How would changing the xmlform-scope value from session to request have an effect over here?? Thanks you once again. -Apurva Zaveri --- Ivelin Ivanov [EMAIL PROTECTED] wrote: Form myFormInstance = Form.lookup( myformId, objectModel) - Original Message - From: apurva zaveri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 11:44 AM Subject: How to use a jbean of an XMLFORM from a custom generator? Hello all, I have been succesfuly able to run the xmlform on cocoon 2.1. It is great. I want to know how to make use of the bean's get methods to access its values form a custom generator that extends ServletGenerator. I want to configure the sitemap such that both are in the same pipeline. like the user access the xmlform , the value from the bean are used by the generator (generating XML) and displayed (using xslt transformation) in the same pipeline as an output. I am not sure what I have to do for that. Please help. -Apurva Zaveri. __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.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 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!? Yahoo! Health - Feel better, live better http://health.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]