RE: Source using Component via ECM
For Cocoon 2.0.4 there is a file called users.role which is in the cocoon.jar You need to create your own and specify it's path using the root element of the cocoon.xconf file for example my file has this element cocoon version=2.0 user-roles=/WEB-INF/user.roles The user-roles attribute specifies my custom role which is loaded in addition to the original file. Hope this Helps Scott Warren -Original Message- From: Peter Klotz [mailto:[EMAIL PROTECTED] Sent: Wednesday, 26 March 2003 2:27 AM To: [EMAIL PROTECTED] Subject: Source using Component via ECM Hi, I have a custom source that gets the component manager from the SourceFactory. So good so fine, but obviously when the source looks up its backend component it does not find it, although it is configured in cocoon.xconf as component. How is this suposed to work? Am I missing something? Thanks, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generator for OpenOffice
OpenOffice 1.0 files are actually a set of XML files Zipped. If you rename an Open Office document to Zip you will find that the Draw application for example has an SVG file inside. Not sure if it's possible with Cocoon to generate the 4 files and the ZIP (anyone ??). Hope this helps Scott Warren -Original Message- From: Yves Vindevogel [mailto:[EMAIL PROTECTED] Sent: Tuesday, 11 March 2003 7:43 PM To: [EMAIL PROTECTED] Subject: Generator for OpenOffice Anyone who knows whether there's a generator for OpenOffice files ? Kind regards, Yves Vindevogel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP All Nodes Even
What is the value that position() is returning? Can you move the template into a another template that has a xsl:for-each select=tr I think you may get different results then. Hope this helps Scott Warren Jacob Arnold wrote: Whenever I test for even nodes using XSLT on my serialized XSP, all the nodes are even. For example, I'm trying to make every even table row a different color: xsl:template match=tr xsl:if test=position() mod 2 = 0 tr class=evenrowxsl:apply-templates//tr /xsl:if xsl:if test=position() mod 2 = 1 tr class=oddrowxsl:apply-templates//tr /xsl:if /xsl:template But every table row is getting the evenrow class applied. When I display the position, every row (and every td for that matter) is even-numbered. Does anyone know what might be causing this? Here's a sitemap fragment: map:match pattern=**.xsp map:act type=resource-exists map:parameter name=url value=docs/{1}.xsp/ map:generate src=docs/{../1}.xsp type=serverpages/ map:serialize/ /map:act map:generate src=docs/404.xsp/ map:transform src=stylesheets/encode-html.xsl/ map:serialize/ /map:match map:match pattern=**.html map:aggregate element=document map:part src=cocoon:/menu.xsp strip-root=true/ map:part src=cocoon:/{1}.xsp strip-root=true/ /map:aggregate map:transform src=stylesheets/encode-html.xsl/ map:serialize/ /map:match I'm using Cocoon 2.0.4 on Tomcat 4.1.12. Thanks, J - 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: XSP All Nodes Even
What is the value that position() is returning? Can you move the template into a another template that has a xsl:for-each select=tr I think you may get different results then. Hope this helps Scott Warren Jacob Arnold wrote: Whenever I test for even nodes using XSLT on my serialized XSP, all the nodes are even. For example, I'm trying to make every even table row a different color: xsl:template match=tr xsl:if test=position() mod 2 = 0 tr class=evenrowxsl:apply-templates//tr /xsl:if xsl:if test=position() mod 2 = 1 tr class=oddrowxsl:apply-templates//tr /xsl:if /xsl:template But every table row is getting the evenrow class applied. When I display the position, every row (and every td for that matter) is even-numbered. Does anyone know what might be causing this? Here's a sitemap fragment: map:match pattern=**.xsp map:act type=resource-exists map:parameter name=url value=docs/{1}.xsp/ map:generate src=docs/{../1}.xsp type=serverpages/ map:serialize/ /map:act map:generate src=docs/404.xsp/ map:transform src=stylesheets/encode-html.xsl/ map:serialize/ /map:match map:match pattern=**.html map:aggregate element=document map:part src=cocoon:/menu.xsp strip-root=true/ map:part src=cocoon:/{1}.xsp strip-root=true/ /map:aggregate map:transform src=stylesheets/encode-html.xsl/ map:serialize/ /map:match I'm using Cocoon 2.0.4 on Tomcat 4.1.12. Thanks, J - 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: XSP All Nodes Even
No not a second stylesheet, Change your stylesheet to be like this xsl:template match="table" xsl:for-each select="tr" xsl:if test="position() mod 2 = 0" tr class="evenrow"xsl:apply-templates//tr /xsl:if xsl:if test="position() mod 2 = 1" tr class="oddrow"xsl:apply-templates//tr /xsl:if /xsl:for-each /xsl:template Where table is assumed to be the parent node of all the tr nodes. Does this help ? Scott Warren Jacob Arnold wrote: If my query returns 56 records (1 per row) then I get 2, 4, 6, 8, 10... through 114. Are you suggesting adding a second stylesheet? Thanks, J -Original Message- From: Scott Warren [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 4:22 PM To: [EMAIL PROTECTED] Subject: Re: XSP All Nodes Even What is the value that position() is returning? Can you move the template into a another template that has a xsl:for-each select="tr" I think you may get different results then. Hope this helps Scott Warren Jacob Arnold wrote: Whenever I test for even nodes using XSLT on my serialized XSP, all the nodes are even. For example, I'm trying to make every even table row a different color: xsl:template match="tr" xsl:if test="position() mod 2 = 0" tr class="evenrow"xsl:apply-templates//tr /xsl:if xsl:if test="position() mod 2 = 1" tr class="oddrow"xsl:apply-templates//tr /xsl:if /xsl:template But every table row is getting the evenrow class applied. When I display the position, every row (and every td for that matter) is even-numbered. Does anyone know what might be causing this? Here's a sitemap fragment: map:match pattern="**.xsp" map:act type="resource-exists" map:parameter name="url" value="docs/{1}.xsp"/ map:generate src="" type="serverpages"/ map:serialize/ /map:act map:generate src=""/ map:transform src=""/ map:serialize/ /map:match map:match pattern="**.html" map:aggregate element="document" map:part src="" strip-root="true"/ map:part src="" strip-root="true"/ /map:aggregate map:transform src=""/ map:serialize/ /map:match I'm using Cocoon 2.0.4 on Tomcat 4.1.12. Thanks, J - 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: Problem with namespaces
Is there another Exception in error.log ?? Just a guess but do you need the xlink namespace ??? if not try taking that out. I think (educated guess) that cocoon is triying to fetch the file http://www.w3.org/1999/xlink as it may not be in cocoons catalog. Hope this helps ?? Scott Warren Saul Rodrigo Zarrate Crdenas wrote: Hi everybody I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version="1.0" encoding="ISO-8859-1"? xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name="prefix" value="sgcwebxml"/ parameter name="uri" value="http://sgcwebxml.com/xsp/1.0"/ parameter name="href" value="resource://sgcwebxml/logicsheets/sgcwebxml.xsl"/ /builtin-logicsheet The logicsheet is this ?xml version='1.0'? xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsp="http://apache.org/xsp" xmlns:sgcwebxml="http://sgcwebxml.com/xsp/1.0" xsl:template match="sgcwebxml:obtenerDato" xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /xsl:stylesheet And in my xsp page, where I want to use the logicsheets (the logicsheet is the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:sgcwebxml="http://sgcwebxml.com/xsp/1.0" page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xsp at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createReso urce(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:292) at org.apache.cocoon.generation.ServerPagesGenerator.setup (ServerPagesGenerator.java:198) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline (AbstractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup (CachingEventPipeline.java:278) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey (CachingEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process (CachingStreamPipeline.java:317) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.matchN100FE (C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:1266) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:502) at org.apache.cocoon.www.SGCWebXML.sitemap_xmap.process(C:\Archivos de programa\Apache Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www/SGCWebXML\sitemap_xmap.java:397) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.www.s
Re: Problem with namespaces
Is there a .java file generated ?? I would check this for errors .. Also check your core.log file for signs of it trying to load sgcwebxml/logicsheets/sgcwebxml.xsl There could be an error there. Regards Scott Warren Saul Rodrigo Zarrate Crdenas wrote: Mensaje citado por Scott Warren [EMAIL PROTECTED]: Is there another Exception in error.log ?? No, there isn't Just a guess but do you need the xlink namespace ??? if not try taking that out. I think (educated guess) that cocoon is triying to fetch the file http://www.w3.org/1999/xlink as it may not be in cocoons catalog. Hope this helps ?? mm, thank you, but I did it and the problem is still there. Any idea? Scott Warren Saul Rodrigo Zarrate Crdenas wrote: Hi everybody I have a cocoon version number 2.0.3 and a tomcat version number 4.0.1 I have a XSP page where I have logical. If i load that page with the logical and Java source in the same page I not have any problem. In the xsp page I have something like ?xml version="1.0" encoding="ISO-8859-1"? xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" page xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /page /xsp:page Here all is ok, but I need to work with logicsheets. I want to put the logic in a logicsheet. In my cocoon.xconf file I have this code lines builtin-logicsheet parameter name="prefix" value="sgcwebxml"/ parameter name="uri" value="http://sgcwebxml.com/xsp/1.0"/ parameter name="href" value="resource://sgcwebxml/logicsheets/sgcwebxml.xsl"/ /builtin-logicsheet The logicsheet is this ?xml version='1.0'? xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsp="http://apache.org/xsp" xmlns:sgcwebxml="http://sgcwebxml.com/xsp/1.0" xsl:template match="sgcwebxml:obtenerDato" xsp:logic int cod_empresa; cod_empresa=1; /xsp:logic /xsl:stylesheet And in my xsp page, where I want to use the logicsheets (the logicsheet is the sgcwebxml.xsl file, and it is in the coocon/WEB- INF/classes/sgcwebxml/logicsheets directory) I have something like that xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:sgcwebxml="http://sgcwebxml.com/xsp/1.0" page /page For the moment I am not using any tag for the logicsheet. I am only doing the namespace declaration. When I tried to load the xsp page I have this error page Cocoon 2 - Internal server error --- - type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xs p sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\SGCWebXML\logical\moduloDeSeguridad\ingresoDeOpc iones_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.SGCWebXML.logical.moduloDeSeguridad.ingresoDeOpciones_xs p at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createRes o urce(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load (ProgramGeneratorImpl.java:292) at org.apache.cocoon.generation.ServerPagesGenerator.setup (ServerPagesGenerator.java:198) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline (AbstractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeli
Re: XMLForm UI Builder
I sent an example recently. Unfortunately I am a little snowed under at the moment. I will get an example soon .. Promise Take Care Scott Warren Ivelin Ivanov wrote: Interesting approach. Can you share an example? Ivelin - Original Message - From: "Scott Warren" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 17, 2002 3:45 PM Subject: Re: XMLForm UI Builder Senhaji, An easy way that I have achieved this is to generate an XML document that has all the information (Java Bean properties + code, Form Elements etc) then I created a number of XSL Documents that take the XML doc and produce the JavaBean code, XMLForm.XSP, Validation Descriptor.XML etc. Then all you need to do is change the layout of the XMLForm as needed.. I use Ant to generate the files from the XML but you can use a Cocoon pipleine to generate the files. Hope this helps Scott Warren Senhaji wrote: Hello, I've just finished playing with the XMLForm wizard example. I've learned a lot of good concepts such as the separation between the content, the presentation and the validation in the form building process. After that, I started looking for an XMLForm builder that would help me speed up the form building process. But without success! How can I explain to the management that even building a simple Form with C2 will take ~3 days of development? not easy -). It could be very nice if from a form builder one can generate all the necessary files for C2 (JavaBeans, XSL for transforming XMLForm widget to HTML or whatever widget, XSL for the form layout, XML schema for validation,...). Are there any works in this area ? Thanks in advance, Senhaji - 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: XMLForm UI Builder
Senhaji, An easy way that I have achieved this is to generate an XML document that has all the information (Java Bean properties + code, Form Elements etc) then I created a number of XSL Documents that take the XML doc and produce the JavaBean code, XMLForm.XSP, Validation Descriptor.XML etc. Then all you need to do is change the layout of the XMLForm as needed.. I use Ant to generate the files from the XML but you can use a Cocoon pipleine to generate the files. Hope this helps Scott Warren Senhaji wrote: Hello, I've just finished playing with the XMLForm wizard example. I've learned a lot of good concepts such as the separation between the content, the presentation and the validation in the form building process. After that, I started looking for an XMLForm builder that would help me speed up the form building process. But without success! How can I explain to the management that even building a simple Form with C2 will take ~3 days of development? not easy -). It could be very nice if from a form builder one can generate all the necessary files for C2 (JavaBeans, XSL for transforming XMLForm widget to HTML or whatever widget, XSL for the form layout, XML schema for validation,...). Are there any works in this area ? Thanks in advance, Senhaji - 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]