RE: Image doesn't display
Ince, The apache folder htdocs or wwwROOT is the folder which apache serves its web pages from. Say your address was http://localhost/cocoon/GUITARS/index.html Then the folder directory structure would look like this C:\Programme\Apache\apache folder where you pages are served from\GUITARS\images\your files in here.gif You dont have any XML files in the guitars folder here, you have your XML files under the tomcat cocoon folder, so: C:\Programme\Apache Group\Tomcat4.1\webapps\cocoon\GUITARS You will have no images within this cocoon guitars folder. Rich. -Original Message- From: Ines Robbers [mailto:[EMAIL PROTECTED] Sent: 11 March 2003 22:17 To: [EMAIL PROTECTED] Subject: AW: Image doesn't display Many thanks, Richard! I have all the files under Programme/Apache Group/Tomcat 4.1/webapps/cocoon/MYFOLDER/img I have searched for something like a htdocs or wwwROOT - but without success. Not sure how to search for the folder you were talking about. ? Do you mean to save ALL my files under that directory or just the images? Ines * -Ursprüngliche Nachricht- * Von: Richard Cunliffe [mailto:[EMAIL PROTECTED] * Gesendet: Dienstag, 11. März 2003 23:05 * An: [EMAIL PROTECTED] * Betreff: RE: Image doesn't display * * * Ok I have had this trouble today as well. * * Do you have your xml files under the cocoon folder or one of * your own. If so put the images into a folder like shown: * * C:\Program Files\Apache Group\Apache2\htdocs\YOUR FOLDER\images * * YOUR FOLDER = if you have your xml files in a folder called * 'guitars' under the cocoon folder then your folder would be guitars. * * The htdocs folder is the folder that serves to the web from * apache, it might be different for you e.g. wwwROOT * * * You then reference your images in the xsl file like so: * * img src=/YOUR FOLDER/images/backgroundpda.jpg/ * * Your images will then display when the webpage is loaded * * * Hope this helps, * * Richard. * * * * * * -Original Message- * From: Ines Robbers [mailto:[EMAIL PROTECTED] * Sent: 11 March 2003 21:54 * To: Cocoon Mailingliste * Subject: Image doesn't display * * Hello! * * I have a problem displaying an image in a stylesheet: * * I have read the stuff on * http://wiki.cocoondev.org/Wiki.jsp?* page=ServingStaticFiles * Serving Static Files but I can't * get it to work. It sais in the end there is another why * serving images through apache. How does that work? * * For now I tried to generate, transform and serialize the * image because as is explain on wiki: the Reader method won't * work for a static HTML document * * What generator do I use to generate images? * * Can anybody please help? * * * This is what I wrote in the sitemap: * * !-- images -- * map:match pattern=img *map:generate src=img type=imagedirectory/ *map:transform src=img.xsl/ *map:serialize type=html/ * /map:match * map:match pattern=img/** *map:read src=img/{1}/ * /map:match * * Many thanks! * * Ines * * * * - * To unsubscribe, e-mail: [EMAIL PROTECTED] * For additional commands, e-mail: [EMAIL PROTECTED] * * * * * - * To unsubscribe, e-mail: [EMAIL PROTECTED] * For additional commands, e-mail: [EMAIL PROTECTED] * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generator for OpenOffice
I've taken your suggestion and implemented an example: http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample Great! Could be useful! Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: using abstract rules in validation schema
- Original Message - From: Robert Kromkamp [EMAIL PROTECTED] To: Jeroen Cranendonk [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 10:16 AM Subject: using abstract rules in validation schema Hi All, According to the DTD the beneath schema structure is possible. But when I use this I get the following error, who can help me? - An error occurredorg.apache.avalon.framework.CascadingRuntimeException Failed loading validating schema org.apache.avalon.framework.CascadingRuntimeException: Failed loading validating schema org.apache.commons.jxpath.JXPathException: No value for xpath: /schema/pattern[1]/rule[1]/@contextOriginal exception : org.apache.avalon.framework.CascadingRuntimeException: !!! Failed loading Schematron schema at org.apache.cocoon.components.validation.schematron.SchematronFactory.compile Schema(SchematronFactory.java:123) at org.apache.cocoon.acting.AbstractXMLFormAction.getFormValidator(AbstractXMLF ormAction.java:398) at org.apache.cocoon.acting.AbstractXMLFormAction.getForm(AbstractXMLFormAction .java:218) at org.apache.cocoon.acting.AbstractXMLFormAction.act(AbstractXMLFormAction.jav a:237) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp eNode.java:139) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:153) at - schema xmlns=http://www.ascc.net/xml/schematron; titleFor Rusty's Inquiring Students/title pThis is an example of creating a datatype using Schematron's abstract rules and using them. /p pattern !-- Define an abstract rule on a data value (i.e. a type) for nt -- rule abstract=true id=int assert test=string-length(string-normalize(./text())) gt; 0 This element must contain a value./assert assert test=number(./text()) This element should contain an int. An int it a number./assert assert test=floor(number(./text())) = ceiling(number(./text())) This element should contain an int. An int is a whole number./assert assert test=number(./text()) lt; 2147483647 This element should contain an int. An int is less than 2^31-1./assert assert test=number(./text()) gt;= -2147483648 This element should contain an int. An int is greater than -(2^31)./assert /rule !-- Make the assertions -- rule context=someElement extends rule=int / /rule rule context=someOtherElement extends rule=int / assert test=number(./text()) gt; 1969 This element should contain a year since 1969/assert /rule pattern /schema Thanks, Robert Kromkamp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XInclude-problems with Cocoon2.0.4
Hello, I would like to use xinclude-statements in my xml-file with Cocoon2.0.4 with my own tags for example rpt:data. Specifying such a tag as follows xi:include href=include.xml#xpointer(/p/rpt:data)/ doesn't work. Instead using xi:include href=include.xml#xpointer(/p/rpt)/ works! Here my include.xml file: ?xml version=1.0? p xmlns:rpt=http://cocoon.clsw.com/report; rpt:dataTest/rpt:data I am strongincluded/strong by XIncludeTransformer. I come from include.xml. contentA/content /p What's wrong? Thanks -- Uwe Gerger_/_/_/ _/_/ _/_/ BMW AG, TG-53 IT-Technologie _/ _/ _/_/_/_/ _/_/ 80788 Muenchen _/_/_/ _/ _/ _/ _/ _/ _/ Tel: +49 89 382 35687 _/ _/ _/_/ _/_/_/_/ Fax: +49 89 382 49040 _/_/_/ _/_/ _/_/ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cache in logicsheet!!!!
logigsheets translate to java code, at least if you use them in an xsp page with @language=java, so you can do the following trick in your xsp page: xsp:page lanaguage=java xmlns:xsp=http://apache.org/xsp; xsp:logic /** @return null means not cacheable */ public org.apache.excalibur.source.SourceValidity generateValidity( ) { return null; } /xsp:logic /xsp:page please look at the javadocs and the xsp introduction, as well as in the wiki.cocoondev.org resources for additional info. hope this helps --Jakob Am Mit, 2003-03-12 um 05.32 schrieb Hong Gia Dinh: Hi All, Can somebody tell me how to remove cache in logicsheets??? because everytime i call a page having logicsheet access, change something , and call that page again (with submit action for eg.) it doesn't change , i must access other pages and then back to this page then this time it will change!!! how to remove cache in logicsheet? Thanks a lot in advance GD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging the sitemap
Hallo! Is it possible to somehow generate debugging statements for the sitemap? E.g. I am having doubts which map:when branch is used after a browser selector -- Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon = reverse Proxy ?
hi !! does exist a solution to transform Cocoon in a reverse proxy ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Portal error (Cocoon-2.1-dev samples)
Hello, I'm running a Cocoon-2.1-dev snapshot from 29 january 2003 with JDK 1.3.1 and Tomcat 4.1.12. When I try to run the portal sample, it produces this error: The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Application not found: sunspotdemo More precisely: org.apache.cocoon.ProcessingException: Application not found: sunspotdemo at org.apache.cocoon.webapps.authentication.components.AuthenticationManager.checkAuthentication(AuthenticationManager.java:371) at org.apache.cocoon.webapps.authentication.acting.AuthAction.act(AuthAction.java:105) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) Could you help me? Thanks Sylvain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Markus, I'm trying to invoke services on the SoapServer but get every time AxisFault. Axis can not find the Service. The same behaviour if I invoke the service from remote Axis client. But the status.xsp is working properly. It seems that only the AdminService is known to Axis. Any suggestions? Alexander XSP: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call method=Cocoon-JVM-Memory url=rpcrouter getCPUInfo /getCPUInfo /soap:call /page /xsp:page Exception: AxisFault faultCode: {http://xml.apache.org/axis/}Server.NoService faultString: The AXIS engine could not find a target service to invoke! targetService is null faultActor: null faultDetail: stackTrace: AxisFault faultCode: {http://xml.apache.org/axis/}Server.NoService faultString: The AXIS engine could not find a target service to invoke! targetService is null faultActor: null faultDetail: The AXIS engine could not find a target service to invoke! targetService is null at org.apache.axis.server.AxisServer.invoke(AxisServer.java:307) at org.apache.cocoon.components.axis.SoapServerImpl.invoke(SoapServerImpl.java:510) at org.apache.cocoon.reading.AxisRPCReader.generate(AxisRPCReader.java:260) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processReader(AbstractCachingProcessingPipeline.java:801) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:486) at org.apache.cocoon.components.treeprocessor.sitemap.ReadNode.invoke(ReadNode.java:119) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299) at org.apache.cocoon.Cocoon.process(Cocoon.java:600) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at
Re: Debugging the sitemap
Hans-Michael Rupp [EMAIL PROTECTED] writes: Is it possible to somehow generate debugging statements for the sitemap? E.g. I am having doubts which map:when branch is used after a browser selector Set category name=sitemap log-level=ERROR to DEBUG in logkit.xconf and you get more debug statements than you you can handle ;-) Look for http://wiki.cocoondev.org/Wiki.jsp?page=ConfiguringTheLogs , how to reduce the logging. -- Martin Holz [EMAIL PROTECTED] Softwareentwicklung / Vernetztes Studium - Chemie FIZ CHEMIE Berlin Franklinstrasse 11 D-10587 Berlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Image doesn't display
Thank you guys for your help! I got it working now - the folder you were talking about, rich, was hidden under: Programme/Apache Group/Tomcat 4.1/webapps/ROOT :-) Have a nice day! Ines * Ince, * * The apache folder htdocs or wwwROOT is the folder which * apache serves its web pages from. Say your address was * * http://localhost/cocoon/GUITARS/index.html * * * Then the folder directory structure would look like this * * C:\Programme\Apache\apache folder where you pages are * served from\GUITARS\images\your files in here.gif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URGENT - Exception during processing of coplet:
Hello I am working with cocoon 2.1-dev. When i make a refresh, some coplets are unavailable and i have this entry in core.log: ERROR (2003-03-11) 17:49.44:521 [core.portal-manager] (Unknown-URI) Unknown-thread/CopletThread: Exception during processing of coplet: Agente_ForAdmin java.lang.NullPointerException at org.apache.coyote.tomcat4.CoyoteRequestFacade.getQueryString(CoyoteRequestFacade.java:325) at org.apache.cocoon.environment.http.HttpRequest.getQueryString(HttpRequestjava:177) at org.apache.cocoon.environment.wrapper.RequestWrapper.init(RequestWrapper.java:110) at org.apache.cocoon.environment.wrapper.EnvironmentWrapper.init(EnvironmentWrapper.java:166) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:199) at org.apache.cocoon.components.source.impl.CocoonSourceFactory.getSource(CocoonSourceFactory.java:99) at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:263) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:412) at org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:509) at org.apache.cocoon.components.source.SourceUtil.getSource(SourceUtil.java:280) at org.apache.cocoon.webapps.portal.components.CopletThread.run(CopletThreadjava:214) at java.lang.Thread.run(Thread.java:536) The coplet definition in copletprofile is: coplet id=Agente_ForAdmin configuration mandatorytrue/mandatory sizabletrue/sizable activefalse/active !-- this is only active for USER-admins -- handlesParameterstrue/handlesParameters handlesSizabletrue/handlesSizable customizablefalse/customizable /configuration titleAgente - Detalhe/title status visibletrue/visible sizemax/size /status resource uri=cocoon:/secured-portlet-Agente-ForAdmin.xml/ /coplet I am using resourse uri= without raw because i need to pass same parameter. Maybe this problem is related with: http://archives.real-time.com/pipermail/cocoon-users/2002-August/021532.html Thanks a lot Best regards Bruno Jacinto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, inline SVG, fonts
Hello Vadim, Vadim Gritsenko wrote: Frank made a mistake... New configuration syntax which supports Cocoon protocols looks like: user-configcontext://webapps/ROOT/doc/fop/config.xml/user-config Old configuration (with src attribute) does not support protocols, works only with file name (see FOPSerializer.java). I tested the new configuration of the pdf serializer, but no luck. The userconfig file is found as before (but yeah, I use the new configuration ;-), but there is still a null in the path to the fonts: Failed to read font metrics file nullwebapps/ROOT/doc/fop/fonts/Verdana.xml: /home/jheinicke/development/IUPB/iupb/nullwebapps/ROOT/doc/fop/fonts/Verdana.xml -- FOP supports only links to the fonts in absolute file format, starting with C:/, because currently there is no way to tell FOP current context. No support for Cocoon URIs, for now. See http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html. Why must it be absolute paths now? In Cocoon 2.0.3 with Fop 0.20.3 the relative paths worked without any problems. But no longer in Cocoon 2.0.4 with Fop 0.20.4? But I got excalibur source resolving to work in *a* way with Cocoon 2.1 or better said with excalibur-sourceresolve-20030130.jar. I don't know how good or bad it is. Interests? Regards, Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de CeBIT 2003 vom 12. bis zum 19. März in Hannover VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions GmbH aus. Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im Internet-gestützten Zahlungsverkehr. Besuchen Sie uns: Halle 3, Stand D55. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, inline SVG, fonts
But I got excalibur source resolving to work in *a* way with Cocoon 2.1 or better said with excalibur-sourceresolve-20030130.jar. I don't know how good or bad it is. Interests? Carsten already did it today morning. Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de CeBIT 2003 vom 12. bis zum 19. März in Hannover VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions GmbH aus. Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im Internet-gestützten Zahlungsverkehr. Besuchen Sie uns: Halle 3, Stand D55. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML-Generator - XPath
Hi Tony I've had problems with Google, mainly because they forbid fetching and searching their page using programs (The Java useragent is banned from their server). If you're wanting to use Cocoon and Google search, you might want to look into their SOAP API. Thats not a problem. We changed the default HTMLGenerator to read the parameters as well as the header information from the incoming requests. So Google would see the browser agent of the actual request that is coming into Cocoon. No one else with some xpath-problems in the HTMLGenerator? Thanks Harald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
send form attribute from one pattern to another ?
Hello, I have these four pipelines : 1/ map:match pattern=start map:generate type=XMLDB=indexdefinition.xml/ map:transform type=xslt src=proto/xsl/start.xsl/ map:serialize type=html/ /map:match 2/ !-- Frame page (the xsl call search and empty pattern)-- map:match pattern=frame map:generate type=file src=proto/xml/frame.xml/ map:transform type=xslt src=proto/xsl/frame.xsl/ map:serialize type=html/ /map:match 3/ !-- Request the database -- map:match pattern=search map:generate type=Request/ map:transform type=Query/ map:transform type=xslt src=proto/xsl/documents.xsl/ map:serialize/ /map:match 4/ !-- Empty page-- map:match pattern=empty map:generate type=file src=proto/xml/empty.xml/ map:transform type=xslt src=proto/xsl/empty.xsl/ map:serialize type=html/ /map:match My question is : Start.xsl create a form. The values should be send to the frame pattern and then to search pattern. How can I pass into the different pages ? I was thinking about adding a sunshine session transformer, is it a good idea ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Input/Output Modules without key-prefix
Hi, I have a problem with configuring cocoon modules (input and output) to use no key-prefixes. I've tried to set an empty key-prefix / line to the needed output module and get a ConfigurationException as result. After reading through core.log I found it as an Avalon configuration error, because there is a value required as key-prefix. Is there any workaround this? We are using Cocoon-2.1-dev from cvs and Tomcat 4.1.18. Thx Markus -- __ Markus Wolf emedia-solutions wolf Wedeler Landstrasse 63 22559 Hamburg (040) 550 083 70 __ - This mail sent through IMP: http://horde.org/imp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Input/Output Modules without key-prefix
On 12.Mar.2003 -- 02:45 PM, Markus Wolf wrote: Hi, I have a problem with configuring cocoon modules (input and output) to use no key-prefixes. I've tried to set an empty key-prefix / line to the needed output module and get a ConfigurationException as result. After reading through core.log I found it as an Avalon configuration error, because there is a value required as key-prefix. Is there any workaround this? We are using Cocoon-2.1-dev from cvs and Tomcat 4.1.18. I don't get it. What are you trying to do and where is this key-prefix tag? Looking through cocoon.xconf, I can't find one. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Alexander, On Wed, Mar 12, 2003 at 11:26:07AM +0100, Alexander Enns wrote: Hi Markus, I'm trying to invoke services on the SoapServer but get every time AxisFault. Ok. Axis can not find the Service. The same behaviour if I invoke the service from remote Axis client. But the status.xsp is working properly. It seems that only the AdminService is known to Axis. Ok. Couple of admin questions then, do you something like: soap-server logger=core.axis.soapserver managed-services descriptor src=resource://org/apache/cocoon/webservices/memory/DeploymentDescriptor.wsdd/ descriptor src=resource://org/apache/cocoon/webservices/system/DeploymentDescriptor.wsdd/ descriptor src=resource://org/apache/cocoon/webservices/cache/DeploymentDescriptor.wsdd/ descriptor src=resource://org/apache/cocoon/webservices/instrument/DeploymentDescriptor.wsdd/ /managed-services /soap-server In your cocoon.xconf file ? This should deploy the services at startup time. Then, in your core.log there should be something like: DEBUG (2003-03-12) 14:05.54:160 [core.axis.soapserver] (Unknown-URI) Unknown-thread/SoapServerImpl: Deployed Descriptor: ?xml version=1.0 encoding=UTF-8? deployment xmlns=http://xml.apache.org/axis/wsdd/; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; service name=Cocoon-JVM-System provider=java:RPC parameter name=allowedMethods value=getProperties getArchitecture getCPUInfo getNumProcessors getOperatingSystem getOperatingSystemVersion/ parameter name=className value=org.apache.cocoon.webservices.system.System/ /service /deployment If this is all fine, then the Cocoon-JVM-System service should be visible on the status page, and should work fine via a remote request. Does that help at all ? Are those things present in your log and configuration mate ? Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem writing a BetwixtTransformer
Title: Problem writing a BetwixtTransformer Hi, I am trying to write a BetwixtTransformer based on CastorTransformer but have run into a problem. Everything appears to be working Ok according to my logging messages until the XML is serialized when I get this error: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231) at java.lang.Thread.run(Thread.java:536) To get the BetwixtTransformer up and running do the following: 1. Create an XML file to be read in via a generator: ?xml version=1.0? document xmlns:betwixt=http://jakarta.apache.org/commons/betwixt/betwixttransfomer betwixt:InsertBean name=form scope=request/ /document 2. Add the following to your sitemap.xmap: map:components map:transformers default=xslt map:transformer logger=sitemap.transformer.betwixt name=betwixt src=""> /map:transformers map:actions map:action name =DisplayFormAction src =test.DisplayFormAction logger =sitemap.action/ /map:actions /map:components map:pipelines map:pipeline map:match pattern=form*.xml map:act type=DisplayFormAction map:parameter name=form-pk value={1}/ /map:act map:generate src=""> map:transform type=betwixt/ map:transform type=log map:parameter name=logfile value=c:/temp/logfile.log/ map:parameter name=append value=no/ /map:transform map:serialize type=xml/ /map:match /map:pipeline /map:pipelines 3. Add the following two classes to your cocoon.war / -- / / BetwixtTransformer / / -- / package org.apache.cocoon.transformation; import org.apache.avalon.framework.parameters.Parameters; import org.apache.cocoon.environment.Context; import org.apache.cocoon.environment.Request; import org.apache.cocoon.environment.Session; import org.apache.cocoon.environment.SourceResolver; import org.apache.cocoon.environment.ObjectModelHelper; import org.apache.commons.betwixt.io.SAXBeanWriter; import org.apache.commons.logging.impl.SimpleLog; import org.xml.sax.Attributes; import java.util.Map; public class BetwixtTransformer extends AbstractTransformer { private static final String BETWIXT_URI = http://jakarta.apache.org/commons/betwixt/betwixttransfomer; private static final String CMD_INSERT_BEAN = InsertBean; private static final String ATTRIB_NAME = name; private static final String ATTRIB_SCOPE = scope; private static final String VALUE_SITEMAP = sitemap; private static final String VALUE_SESSION = session; private static final String VALUE_REQUEST = request; private static final String VALUE_CONTEXT = context; private boolean in_betwixt_element = false; private Map objectModel; private SourceResolver resolver; /** * Default constructor */ public BetwixtTransformer() { } /** * @see org.apache.cocoon.sitemap.SitemapModelComponent#setup(SourceResolver, Map, String, Parameters) */ public void setup( SourceResolver resolver, Map objectModel, String source, Parameters params) throws org.apache.cocoon.ProcessingException, org.xml.sax.SAXException, java.io.IOException { this.objectModel = objectModel; this.resolver = resolver; } /** * @see org.xml.sax.ContentHandler#endElement(String, String, String) */ public void endElement(String uri, String name, String raw) throws org.xml.sax.SAXException { getLogger().debug(endElement: + name); // Check that we are currently in the Betwixt if (BETWIXT_URI.equals(uri)) { in_betwixt_element = false; return; } super.endElement(uri, name, raw); } /** * @see org.xml.sax.ContentHandler#startElement(String, String, String, Attributes) */ public void startElement( String uri, String name, String raw, Attributes attr) throws org.xml.sax.SAXException { getLogger().debug(startElement: + name); if (BETWIXT_URI.equals(uri)) { in_betwixt_element = true; process(name, attr); return; } super.startElement(uri, name, raw, attr); } /** * @see org.xml.sax.ContentHandler#characters(char[], int, int) */ public void characters(char[] ch, int start, int len) throws org.xml.sax.SAXException { if (in_betwixt_element) { return; } super.characters(ch, start, len); } /** * Method process. * @param command * @param attr */ private void process(String command, Attributes attr) { if (command.equals(CMD_INSERT_BEAN)) { String sourcemap = attr.getValue(ATTRIB_SCOPE); String name = attr.getValue(ATTRIB_NAME); Object toInsert; Request request = ObjectModelHelper.getRequest(objectModel); if (name == null) { getLogger().error(attribut to insert not set); } /* searcl all maps for the given bean */ else { if (sourcemap == null || VALUE_SITEMAP.equals(sourcemap)) { getLogger().debug( Searching bean ' + name + ' in + VALUE_SITEMAP); toInsert = objectModel.get(name); if (toInsert != null) { insertBean(toInsert); return; } } if (sourcemap == null ||
Re: Input/Output Modules without key-prefix
I have a problem with configuring cocoon modules (input and output) to use no key-prefixes. I've tried to set an empty key-prefix / line to the needed output module and get a ConfigurationException as result. After reading through core.log I found it as an Avalon configuration error, because there is a value required as key-prefix. Is there any workaround this? We are using Cocoon-2.1-dev from cvs and Tomcat 4.1.18. I don't get it. What are you trying to do and where is this key-prefix tag? Looking through cocoon.xconf, I can't find one. I'm trying to use the request attribute output module without the prefix org.apache.cocoon.acting.AbstractDatabaseAction:. As I read in the ApiDocs there is a setup option key-prefix which could be set. I've found a likewise configuration value in the modular db sample. It isn't in the cocoon.xconf by default, because if is is not listed there the default (as mentioned above) is taken. Here is a short example of my xconf setting: snip output-modules component-instance class=org.apache.cocoon.components.modules.output.RequestAttributeOutputModule logger=core.modules.output name=request-attr key-prefix / /component-instance /output-modules snip This result in the exception I stated above. When I insert e.g. test as key-prefix value everythink seems to work right and I'll get test: as prefix for my request attributes. So what I exactly want is no prefix and this isn't possible because of the avalon configuration used here. Any idea? Thx Markus -- __ Markus Wolf emedia-solutions wolf Wedeler Landstrasse 63 22559 Hamburg (040) 550 083 70 __ - This mail sent through IMP: http://horde.org/imp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Input/Output Modules without key-prefix
On 12.Mar.2003 -- 03:21 PM, Markus Wolf wrote: I'm trying to use the request attribute output module without the prefix org.apache.cocoon.acting.AbstractDatabaseAction:. As I read in the ApiDocs there is a setup option key-prefix which could be set. I've found a likewise configuration value in the modular db sample. It isn't in the cocoon.xconf by default, because if is is not listed there the default (as mentioned above) is taken. Here is a short example of my xconf setting: output-modules component-instance class=org.apache.cocoon.components.modules.output.RequestAttributeOutputModule logger=core.modules.output name=request-attr key-prefix / /component-instance /output-modules This result in the exception I stated above. When I insert e.g. test as key-prefix value everythink seems to work right and I'll get test: as prefix for my request attributes. So what I exactly want is no prefix and this isn't possible because of the avalon configuration used here. Any idea? you could try to write key-prefix/key-prefix or update to latest CVS version. Just checked in a fix. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript
Ugo Cei wrote: Luca Marchetti wrote: I'm tryng to get flowscript work When I try to use flowscript, as in the flow/calc demo of cocoon2.1 i get this error: ReferenceError: Continuation is not defined. Looks like you have a wrong version of Rhino in your classpath. Verify that you have rhino1.5r4-continuations-20020816.jar in WEB-INF/lib and that it is not overridden by some other version. Seems to be the right one for me But... I need to declare some special component in the map:components part of the sitemap? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with request parameters
Hi all I have a pipeline that processes some url. map:match pattern="testing/** map:generate src="" href="http://{1}">http://{1} type="html"/ map:transform src=""/ map:serialize type="xml"/ /map:match I.e. I get some html page, generate it, run an xsl and serialize. Nothing complicated. I can make a request localhost:8080/cocoon/testing/www.cnn.com/search.html (or whatever) and it works fine. The problem arises when the requested URL contains question marks, as in www.some.com/index.asp?id=15 If I provide this URL for the above pipeline, it generates the URL www.some.com/index.asp, ignoring everything after the ?. I understand that this is because Cocoon treats everything after ? as request parameters to the pipeline, but this is not the case here. So my question is how can I define Cocoon to take into the generator the full URL including the ? and everything after it. Is it at all possible? I would appreciate any input. Thank you very much for help. Anna
Re: Problem with 'request parameters'
Hi ! I think you can try this : map:match pattern=testing/** map: act type=request map:generate src=http://{1}{requestQuery}; type=html/ map:transform src=ub/testing/test.xsl/ map:serialize type=xml/ /map:act /map:match if you have this in your sitemap map:actions map:action name=request src=org.apache.cocoon.acting.RequestParamAction/ /map:actions {requestQuery} will contain the string ?id=15. Michael Hi all I have a pipeline that processes some url. map:match pattern=testing/** map:generate src=http://{1} type=html/ map:transform src=ub/testing/test.xsl/ map:serialize type=xml/ /map:match I.e. I get some html page, generate it, run an xsl and serialize. Nothing complicated. I can make a request localhost:8080/cocoon/testing/www.cnn.com/search.html (or whatever) and it works fine. The problem arises when the requested URL contains question marks, as in www.some.com/index.asp?id=15 If I provide this URL for the above pipeline, it generates the URL www.some.com/index.asp, ignoring everything after the ?. I understand that this is because Cocoon treats everything after ? as request parameters to the pipeline, but this is not the case here. So my question is how can I define Cocoon to take into the generator the full URL including the ? and everything after it. Is it at all possible? I would appreciate any input. Thank you very much for help. Anna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, inline SVG, fonts
Joerg Heinicke wrote: Hello Vadim, Vadim Gritsenko wrote: Frank made a mistake... New configuration syntax which supports Cocoon protocols looks like: user-configcontext://webapps/ROOT/doc/fop/config.xml/user-config Old configuration (with src attribute) does not support protocols, works only with file name (see FOPSerializer.java). I tested the new configuration of the pdf serializer, but no luck. The userconfig file is found as before (but yeah, I use the new configuration ;-), but there is still a null in the path to the fonts: Failed to read font metrics file nullwebapps/ROOT/doc/fop/fonts/Verdana.xml: /home/jheinicke/development/IUPB/iupb/nullwebapps/ROOT/doc/fop/fonts/Verdana.xml -- Don't know; was working for me last time I tested. FOP supports only links to the fonts in absolute file format, starting with C:/, because currently there is no way to tell FOP current context. No support for Cocoon URIs, for now. See http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html. Why must it be absolute paths now? In Cocoon 2.0.3 with Fop 0.20.3 the relative paths worked without any problems. But no longer in Cocoon 2.0.4 with Fop 0.20.4? Not that it *must*... Yes it should work with relative path. But these paths will be relative to the current working directory of JVM - not relative to webapp context or sitemap. Because of this, it is easier to say that paths to the fonts must be absolute paths. Vadim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, inline SVG, fonts
Why must it be absolute paths now? In Cocoon 2.0.3 with Fop 0.20.3 the relative paths worked without any problems. But no longer in Cocoon 2.0.4 with Fop 0.20.4? Not that it *must*... Yes it should work with relative path. But these paths will be relative to the current working directory of JVM - not relative to webapp context or sitemap. Because of this, it is easier to say that paths to the fonts must be absolute paths. Hmm, maybe because we use JBoss + Tomcat + Cocoon. Do you know what changed between Fop 0.20.3 and 0.20.4, that prevents my old stuff from working? Or is it deep Fop interna? Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de CeBIT 2003 vom 12. bis zum 19. März in Hannover VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions GmbH aus. Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im Internet-gestützten Zahlungsverkehr. Besuchen Sie uns: Halle 3, Stand D55. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Problem writing a BetwixtTransformer
Title: Problem writing a BetwixtTransformer hi keith, I didn't analyze the code and can't tell you directly where the bug is but... I also got a similar exception which seemed to be an XSLT/xalan exception but actually was an exception thrown from within a custom transformer. somehow the stack trace seems to have been lost. you might want to debug your trasformer to find the actual bug. -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Lyall, KeithGesendet: Mittwoch, 12. März 2003 14:16An: '[EMAIL PROTECTED]'Betreff: Problem writing a BetwixtTransformer Hi, I am trying to write a BetwixtTransformer based on CastorTransformer but have run into a problem. Everything appears to be working Ok according to my logging messages until the XML is serialized when I get this error: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231) at java.lang.Thread.run(Thread.java:536)
Re: FOP, inline SVG, fonts
Joerg Heinicke wrote: Why must it be absolute paths now? In Cocoon 2.0.3 with Fop 0.20.3 the relative paths worked without any problems. But no longer in Cocoon 2.0.4 with Fop 0.20.4? Not that it *must*... Yes it should work with relative path. But these paths will be relative to the current working directory of JVM - not relative to webapp context or sitemap. Because of this, it is easier to say that paths to the fonts must be absolute paths. Hmm, maybe because we use JBoss + Tomcat + Cocoon. Do you know what changed between Fop 0.20.3 and 0.20.4, that prevents my old stuff from working? Or is it deep Fop interna? No, I don't know what has been changed. Vadim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Summary] nested queries with esql
Hello group, hello Christian Haul, hello Tim Myers, hello Leo Leonid, here is my small summary (I will put it in the wiki ;-)). problem: I am using a RDBMS. I have two queries where the second query should use the result of the first. example (working one): my.xsp: 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; dataset esql:connection esql:poolOSTMDB/esql:pool !--First query-- esql:execute-query esql:query select ap_id as id from sales /esql:query esql:results esql:row-results data ep1 esql:get-int column=id/ /ep1 !--Second query which should dynamic -- aps esql:execute-query esql:query select * from ap_tab where ap_id =1 /esql:query esql:results esql:row-results ap esql:get-columns/ /ap /esql:row-results /esql:results esql:no-results no-results/ /esql:no-results esql:error-results/ /esql:execute-query /aps /data /esql:row-results /esql:results esql:no-results/ esql:error-results/ /esql:execute-query /esql:connection /dataset /xsp:page Suggestions from the list: a) Christian wrote (Mail: Multiple ancestors): select * from ap_tab where ap_id = esql:parameter type=intesql:get-int column=id ancestor=1//esql:parameter Status = not working! I don't receive any error messages. It is just working without any result (besides CPU-usage 100%). I tried with 2 different db (big and small) but neither were working :( - thanks for the support, anyway. :) = modifying the query like: esql:parameteresql:get-int column=id ancestor=1//esql:parameter will not result in an error but neither I receive the data of the contact person! b)Tim wrote (Mail: Re: esql nested queries): You need a xsp:logicint ap_id = esql:get-int column=id/ before the inner query begins and then use xsp:exprap_id/xsp:expr in the inner query to recall it. = That is working fine with the small and big db! So the final my.xsp looks 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; dataset esql:connection esql:poolINSTA/esql:pool !--note-- esql:execute-query esql:query select ap_id as id from xml_verkauf /esql:query esql:results esql:row-resultsxsp:logicint xid =esql:get-int column=id/;/xsp:logic data ep1 xsp:exprxid/xsp:expr /ep1 !--note-- aps esql:execute-query esql:query select * from ap_tab where ap_id =xsp:exprxid/xsp:expr/esql:query esql:results esql:row-results ap esql:get-columns/ /ap /esql:row-results /esql:results esql:no-results no-results/ /esql:no-results esql:error-results/ /esql:execute-query /aps /data /esql:row-results /esql:results esql:no-results/ esql:error-results/ /esql:execute-query /esql:connection /dataset /xsp:page Thank you for the hints you gave me! Tim, thanks for actually SOLVING MY problem. King regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with indent
. Hi cocoon-users! . I have some problem with indents in HTML Serializer. It is returning to me this output: html xmlns:fo=http://www.w3.org/1999/XSL/Format; head META http-equiv=Content-Type content=text/html; charset=UTF-8 link href=core.css type=text/css rel=stylesheet titleWitaj!/title /head body vlink=#FF alink=#FF link=#FF table width=100% tbody col width=130 col width=* col width=150 tr td colspan=3 table class=header tbody tr td img src=header/images/logo.gifbr span style=font-style: italic;Programowanie gier - to nie hobby, to nasza pasja!/span /td td Baner here! /td /tr tr td colspan=2 table class=smartbar tbody tr tdSmartbar needs implementation!/td /tr /tbody /table [...] And I want something like this: html xmlns:fo=http://www.w3.org/1999/XSL/Format; head META http-equiv=Content-Type content=text/html; charset=UTF-8/ link href=core.css type=text/css rel=stylesheet/ titleWitaj!/title /head body vlink=#FF alink=#FF link=#FF table width=100% tbody col width=130/ col width=*/ col width=150/ tr td colspan=3 table class=header tbody tr td img src=header/images/logo.gif/ br/ span style=font-style: italic;Programowanie gier - to nie hobby, to nasza pasja!/span /td td Baner here! /td /tr tr td colspan=2 table class=smartbar tbody tr tdSmartbar needs implementation!/td /tr /tbody /table [...] How can I do this? Another problem is encoding :-( I want to use UTF-8, I have this declaration in my sitemap: map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer indent1/indent encodingUTF-8/encoding /map:serializer And in output I have some chars encoded as entities. How Can I force Cocoon to encode my language (polish) chars correctly? I'm using Cocoon 2.0.4 installed from bin (war file) on Tomcat 4.1.18. My OS is WinXP (SP1). Sorry about any mistakes, I speak little english... -- Best regards . g[R]eK mailto:[EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: nested queries with esql
On 12.Mar.2003 -- 04:23 PM, Scherler, Thorsten wrote: select * from ap_tab where ap_id = esql:parameter type=intesql:get-int column=id ancestor=1//esql:parameter Status = not working! I don't receive any error messages. It is just working without any result (besides CPU-usage 100%). I tried with 2 different db (big and small) but neither were working :( - thanks for the support, anyway. :) Just out of curiosity: what DBMSs are you using? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: 2 (should be) easy questions
Hello Richard, to 1) yes you have to define the image in the sitemap (e.g. from my sitemap (will not work with your configuration)): !-- === Ressources --map:pipeline!-- images gif --map:match pattern="img/**.gif"map:read src="" mime-type="images/gif"//map:match!-- images jpg --map:match pattern="img/**.jpg"map:read src="" mime-type="images/jpeg"//map:matchmap:match pattern="img/**.jpeg"map:read src="" mime-type="images/jpeg"//map:match/map:pipeline to 2) ??? don't understand the problem King regards Thorsten -Ursprüngliche Nachricht-Von: Richard Cunliffe [mailto:[EMAIL PROTECTED]Gesendet: Montag, 10. März 2003 18:49An: [EMAIL PROTECTED]Betreff: 2 (should be) easy questions Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src="C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif"/ - This is what XML Spy produced in its XSLT designer, I have also tried img src="images\uktop10.gif"/ this also doesnt work 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. Richard.
AW: nested queries with esql
Ok, promise you will not laugh: MS Access - I have to :( -Ursprüngliche Nachricht- Von: Christian Haul [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 16:51 An: [EMAIL PROTECTED] Betreff: Re: nested queries with esql On 12.Mar.2003 -- 04:23 PM, Scherler, Thorsten wrote: select * from ap_tab where ap_id = esql:parameter type=intesql:get-int column=id ancestor=1//esql:parameter Status = not working! I don't receive any error messages. It is just working without any result (besides CPU-usage 100%). I tried with 2 different db (big and small) but neither were working :( - thanks for the support, anyway. :) Just out of curiosity: what DBMSs are you using? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
linux bug ?
hello, my problem is that with this syntax under linux server (tomcat+cocoon) i can have xhtml page but not html page. map:match pattern=*.xhtml map:read src={1}.xhtml/ map:serialize type=xml/ /map:match map:match pattern=*.html map:read src={1}.html/ map:serialize type=html/ /map:match with this syntax under linux server (tomcat+cocoon) i can have html page but not xhtml page. map:match pattern=*.html map:read src={1}.html/ map:serialize type=html/ /map:match map:match pattern=*.xhtml map:read src={1}.xhtml/ map:serialize type=xml/ /map:match but under windows with this same configuration i can have the both anyone know why ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript
Luca Marchetti wrote: But... I need to declare some special component in the map:components part of the sitemap? No. I advise you to checkout the most recent CVS module and try with that. Ugo -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
loop for into xsp
I'm trying to use a for loop into my xsp page but the character is interpreted by the sax parser. xsp:logic ... for (int i = 0; i array.length(); i++) { ... /xsp:logic Why ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: nested queries with esql
On 12.Mar.2003 -- 04:54 PM, Scherler, Thorsten wrote: Von: Christian Haul [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 16:51 An: [EMAIL PROTECTED] Betreff: Re: nested queries with esql On 12.Mar.2003 -- 04:23 PM, Scherler, Thorsten wrote: select * from ap_tab where ap_id = esql:parameter type=intesql:get-int column=id ancestor=1//esql:parameter Status = not working! I don't receive any error messages. It is just working without any result (besides CPU-usage 100%). I tried with 2 different db (big and small) but neither were working :( - thanks for the support, anyway. :) Just out of curiosity: what DBMSs are you using? Ok, promise you will not laugh: MS Access - I have to :( Could you try to run the following snippet with it? It's tested against HSQLDB, it needs the personnel connection with the appropriate content. You should be able to adjust it to your schema and data. esql:connection esql:poolpersonnel/esql:pool esql:execute-query esql:query SELECT name, id FROM department ORDER BY name /esql:query esql:results esql:row-results h2esql:get-string column='name'//h2 esql:execute-query esql:query SELECT name FROM employee WHERE department_id = esql:parameter type=intesql:get-int column=id ancestor=1//esql:parameter !-- note: no spaces between esql:parameter and esql:get-int -- /esql:query esql:results esql:row-results paraesql:get-string column='name'//para /esql:row-results /esql:results /esql:execute-query /esql:row-results /esql:results /esql:execute-query /esql:connection Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: loop for into xsp
simply use lt; (gt; respectivly) /Leo On Mittwoch, März 12, 2003, at 05:19 Uhr, Lionel Crine wrote: I'm trying to use a for loop into my xsp page but the character is interpreted by the sax parser. xsp:logic ... for (int i = 0; i array.length(); i++) { ... /xsp:logic Why ? - 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: loop for into xsp
Found an answer : i use lt; instead of . At 17:19 12/03/2003 +0100, you wrote: I'm trying to use a for loop into my xsp page but the character is interpreted by the sax parser. xsp:logic ... for (int i = 0; i array.length(); i++) { ... /xsp:logic Why ? - 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]
AW: nested queries with esql
Hello Christian, that is actually working fine! Maybe a reason: The one we started the discussion with: The first query was based on a ACCESS query and the second was based on a table! The personnel is based on 2 tables! - I have put everything in an Access DB to see whether it is working! ...what do you thing? -Ursprüngliche Nachricht- Von: Christian Haul [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 17:28 An: [EMAIL PROTECTED] Betreff: Re: nested queries with esql On 12.Mar.2003 -- 04:54 PM, Scherler, Thorsten wrote: Von: Christian Haul [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 16:51 An: [EMAIL PROTECTED] Betreff: Re: nested queries with esql On 12.Mar.2003 -- 04:23 PM, Scherler, Thorsten wrote: select * from ap_tab where ap_id = esql:parameter type=intesql:get-int column=id ancestor=1//esql:parameter Status = not working! I don't receive any error messages. It is just working without any result (besides CPU-usage 100%). I tried with 2 different db (big and small) but neither were working :( - thanks for the support, anyway. :) Just out of curiosity: what DBMSs are you using? Ok, promise you will not laugh: MS Access - I have to :( Could you try to run the following snippet with it? It's tested against HSQLDB, it needs the personnel connection with the appropriate content. You should be able to adjust it to your schema and data. esql:connection esql:poolpersonnel/esql:pool esql:execute-query esql:query SELECT name, id FROM department ORDER BY name /esql:query esql:results esql:row-results h2esql:get-string column='name'//h2 esql:execute-query esql:query SELECT name FROM employee WHERE department_id = esql:parameter type=intesql:get-int column=id ancestor=1//esql:parameter !-- note: no spaces between esql:parameter and esql:get-int -- /esql:query esql:results esql:row-results paraesql:get-string column='name'//para /esql:row-results /esql:results /esql:execute-query /esql:row-results /esql:results /esql:execute-query /esql:connection Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SQL RE: 2 (should be) easy questions
Thorsten, Ok, I got some results to come out, but as soon as add more to the XSL style sheet nothing appears from the database. Is it possible for you to have a look at my style sheet, and see if there are any obvious mistakes? Many Thanks, Richard. -Original Message- From: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 16:34 To: [EMAIL PROTECTED] Subject: AW: SQL RE: 2 (should be) easy questions Hello Richard, ok, i am still a whee bit confused but I try to answer. You don't need to declare it! If so the CDATA would be the best! You are using sql:... that tells me that you need a map:transform type=sql/ in your sitemap! Like that: map:match pattern=verkauf-cp map:generate src=""> map:transform type=sql/ map:serialize type=xml/ /map:match is that right? ...and is it working? King regards Thorsten -Ursprüngliche Nachricht- Von: Richard Cunliffe [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 17:07 An: [EMAIL PROTECTED] Betreff: SQL RE: 2 (should be) easy questions Thorsten, The second question is about the SQL statement I have in my XML document. I am unsure how to declare it in my DTD. Do you know if it is possible to define the SQL statement in my XML document in the DTD? I have everything defined, but I know that the SQL statement is defined wrongly. It is currently defined as data, so that means when a style sheet is applied, it only gives the SQL statement and not the results. Can you help? I have attached my DTD and XML files. Richard. -Original Message- From: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 15:52 To: [EMAIL PROTECTED] Subject: AW: 2 (should be) easy questions Hello Richard, to 1) yes you have to define the image in the sitemap (e.g. from my sitemap (will not work with your configuration)): !-- === Ressources -- map:pipeline !-- images gif -- map:match pattern=img/**.gif map:read src="" mime-type=images/gif/ /map:match !-- images jpg -- map:match pattern=img/**.jpg map:read src="" mime-type=images/jpeg/ /map:match map:match pattern=img/**.jpeg map:read src="" mime-type=images/jpeg/ /map:match /map:pipeline to 2) ??? don't understand the problem King regards Thorsten -Ursprüngliche Nachricht- Von: Richard Cunliffe [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. März 2003 18:49 An: [EMAIL PROTECTED] Betreff: 2 (should be) easy questions Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried img src=images\uktop10.gif/ this also doesnt work 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. Richard. ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:sql=http://apache.org/cocoon/SQL/2.0; xsl:template match=/ html head/ body img src=/soundpool/images/backgroundpda.jpg/ titlesoundpool/title xsl:for-each select=/ table border=0 width=99% xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td align=right xsl:for-each select=pda span style=color:#2B4E71; font-family:Verdana; font-size:8pt xsl:for-each select=title span style=color:#2B4E71; font-family:Verdana; font-size:8pt span style=color:#2B4E71; font-family:Verdana; font-size:8pt xsl:apply-templates/ /span /span /xsl:for-each /span /xsl:for-each /td /tr xsl:if test=position()=last() xsl:text disable-output-escaping=yeslt;/tbodygt;/xsl:text /xsl:if /table table border=0 width=99% xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td align=center width=33% a href=soundpool.html span
AW: nested queries with esql
-Ursprüngliche Nachricht- Von: Christian Haul [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 18:08 An: [EMAIL PROTECTED] Betreff: Re: nested queries with esql On 12.Mar.2003 -- 05:55 PM, Scherler, Thorsten wrote: that is actually working fine! Maybe a reason: The one we started the discussion with: The first query was based on a ACCESS query and the second was based on a table! The personnel is based on 2 tables! - I have put everything in an Access DB to see whether it is working! ...what do you thing? From the implementation point of view it should not make a difference. ESQL does not know about tables. All it knows about are queries and result sets. So, if it really depends on MS Access whether there are two or one table, I'd say either the jdbc driver or MS Access is broken. Following the discussions on this list, I'd say both are. Anyhow, I have not worked with these products, this is only hearsay. - Don't try to work with that product it is pain in the a...! But there might have slipped a typo into your sample and table count doesn't matter. - I had a similar problem before. After a query all the integer have been converted to string! ...anyway I will but it in the wiki. That way we can keep track with the problem! Thorsten Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XInclude-problems with Cocoon2.0.4
Uwe Gerger wrote: Hello, I would like to use xinclude-statements in my xml-file with Cocoon2.0.4 with my own tags for example rpt:data. Specifying such a tag as follows xi:include href=include.xml#xpointer(/p/rpt:data)/ doesn't work. Instead using xi:include href=include.xml#xpointer(/p/rpt)/ works! snip/ What's wrong? quoting from XIncludeTransformer javadoc: My first pass at an XInclude transformation The transformer does the basics correctly but stumbles with anything more complicated. It doesn't always handle absolute URLs, nested xinclude elements, nor apparently namspace prefixes in xpointers. You might consider modifiying the source to get the namespace support you would like and submitting a patch if it works. Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem writing a BetwixtTransformer
Title: Problem writing a BetwixtTransformer Hi Marco, I tried putting try / catch blocks round all of the code in the methods I have overridden but no exceptions were caught. Do you suggest any other ways to debug a transformer? Keith. -Original Message-From: Marco Rolappe [mailto:[EMAIL PROTECTED]Sent: 12 March 2003 14:43To: [EMAIL PROTECTED]Subject: AW: Problem writing a BetwixtTransformer hi keith, I didn't analyze the code and can't tell you directly where the bug is but... I also got a similar exception which seemed to be an XSLT/xalan exception but actually was an exception thrown from within a custom transformer. somehow the stack trace seems to have been lost. you might want to debug your trasformer to find the actual bug. -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Lyall, KeithGesendet: Mittwoch, 12. März 2003 14:16An: '[EMAIL PROTECTED]'Betreff: Problem writing a BetwixtTransformer Hi, I am trying to write a BetwixtTransformer based on CastorTransformer but have run into a problem. Everything appears to be working Ok according to my logging messages until the XML is serialized when I get this error: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231) at java.lang.Thread.run(Thread.java:536) This electronic mail system is used for information purposes and is not intended to form any legal contract or binding agreement. The content is confidential and may be legally privileged. Access by anyone other than the addressee(s) is unauthorised and any disclosure, copying, distribution or any other action taken in reliance on it is prohibited and maybe unlawful All incoming and outgoing e-mail communications and attachments are scanned automatically by software designed to detect and remove any material containing viruses or other unauthorised content. While we undertake best endeavours to ensure that this content checking software is up to date, recipients should take steps to assure themselves that e-mails received are secure.
AW: SQL RE: 2 (should be) easy questions
Hello Richard, your xsl is quite complex! To begin with, I prefer to nest my templates! So instead of: xsl:template match="/"htmlhead/bodyimg src=""/titlesoundpool/titlexsl:for-each select="/".../xsl:for-each select="/".../xsl:template I would do it like this: xsl:template match="/"htmlhead/bodyimg src=""/titlesoundpool/titlexsl:apply-templates//xsl:template xsl:template match="row|rowset" ... /xsl:template Besides that you have a xsl:apply-templates/ within a xsl:for-each That will result in an overflow (anybody correct me if I am wrong!). It will be called over and over again. What are you trying to do with, anyway: xsl:for-each select="query"xsl:for-each select="execute-query"xsl:apply-templates//xsl:for-each/xsl:for-each Ok, I got some results to come out, but as soon as add more to the XSL style sheet nothing appears from the database. - What do you mean? -Ursprüngliche Nachricht-Von: Richard Cunliffe [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 12. März 2003 18:19An: [EMAIL PROTECTED]Betreff: RE: SQL RE: 2 (should be) easy questions Thorsten, Ok, I got some results to come out, but as soon as add more to the XSL style sheet nothing appears from the database. Is it possible for you to have a look at my style sheet, and see if there are any obvious mistakes? Many Thanks, Richard. -Original Message-From: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 16:34To: [EMAIL PROTECTED]Subject: AW: SQL RE: 2 (should be) easy questions Hello Richard, ok, i am still a whee bit confused but I try to answer. You don't need to declare it! If so the CDATA would be the best! You are using sql:... that tells me that you need a map:transform type="sql"/ in your sitemap! Like that: map:match pattern="verkauf-cp"map:generate src=""/map:transform type="sql"/map:serialize type="xml"//map:match is that right? ...and is it working? King regards Thorsten -Ursprüngliche Nachricht-Von: Richard Cunliffe [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 12. März 2003 17:07An: [EMAIL PROTECTED]Betreff: SQL RE: 2 (should be) easy questions Thorsten, The second question is about the SQL statement I have in my XML document. I am unsure how to declare it in my DTD. Do you know if it is possible to define the SQL statement in my XML document in the DTD? I have everything defined, but I know that the SQL statement is defined wrongly. It is currently defined as data, so that means when a style sheet is applied, it only gives the SQL statement and not the results. Can you help? I have attached my DTD and XML files. Richard. -Original Message-From: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 15:52To: [EMAIL PROTECTED]Subject: AW: 2 (should be) easy questions Hello Richard, to 1) yes you have to define the image in the sitemap (e.g. from my sitemap (will not work with your configuration)): !-- === Ressources --map:pipeline!-- images gif --map:match pattern="img/**.gif"map:read src="" mime-type="images/gif"//map:match!-- images jpg --map:match pattern="img/**.jpg"map:read src="" mime-type="images/jpeg"//map:matchmap:match pattern="img/**.jpeg"map:read src="" mime-type="images/jpeg"//map:match/map:pipeline to 2) ??? don't understand the problem King regards Thorsten -Ursprüngliche Nachricht-Von: Richard Cunliffe [mailto:[EMAIL PROTECTED]Gesendet: Montag, 10. März 2003 18:49An: [EMAIL PROTECTED]Betreff: 2 (should be) easy questions Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src="C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif"/ - This is what XML Spy produced in its XSLT designer, I
Re: linux bug ?
Hello Nicolas, I don't know what's the difference between your linux and your windows system. But I can say that it has nothing to do with the serializers you think you use. A map:read/ is a complete pipeline and does not use any map:serialize/. They can completely be removed when using map:read/. If you want to really parse the files and serialize them at the end, you must use map:generate src={1}.xhtml/ or map:generate src={1}.html type=html/. Regards, Joerg zze-MORY Nicolas FTRD/DMI/REN wrote: hello, my problem is that with this syntax under linux server (tomcat+cocoon) i can have xhtml page but not html page. map:match pattern=*.xhtml map:read src={1}.xhtml/ map:serialize type=xml/ /map:match map:match pattern=*.html map:read src={1}.html/ map:serialize type=html/ /map:match with this syntax under linux server (tomcat+cocoon) i can have html page but not xhtml page. map:match pattern=*.html map:read src={1}.html/ map:serialize type=html/ /map:match map:match pattern=*.xhtml map:read src={1}.xhtml/ map:serialize type=xml/ /map:match but under windows with this same configuration i can have the both anyone know why - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SQL RE: 2 (should be) easy questions
Thorsten, Ok the following statement is trying to display the results of the query from the MySQL database in a table, I dont know if this is right. What are you trying to do with, anyway: xsl:for-each select=query xsl:for-each select=execute-query xsl:apply-templates/ /xsl:for-each /xsl:for-each The code looks complicated, because I am using XML Spy designer which allows you to put together your style sheet visually, with the aid of the DTD. The code above was the XML Spys way of trying to represent it from the DTD. I have attached my xml, xsl, and dtd for you to have a look at to get a better understanding. Many thanks, Richard. sql.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem writing a BetwixtTransformer
Lyall, Keith wrote: Hi Marco, I tried putting try / catch blocks round all of the code in the methods I have overridden but no exceptions were caught. Do you suggest any other ways to debug a transformer? If your Transformer extends AbstractLoggable (cocoon 2.0.4) or AbstractLogEnabled (2.1-dev) as the AbstractTransformers in the transformation package do, you can use the statement: getLogger().debug(here is a debugging message); in your transformer and the message will appear in the logs. ie you should extend AbstractSAXTransformer, AbstractDOMTransformer or AbstractTransformer. You can define what log the messages go in using the logger attribute in the map:transformer element in the sitemap. Something like logger=sitemap.transformer.betwixt will put it into the sitemap.log. Then you can 'grep sitemap.transformer.betwixt sitemap.log' and see all your debugging messages. Charles Keith. -Original Message- *From:* Marco Rolappe [mailto:[EMAIL PROTECTED] *Sent:* 12 March 2003 14:43 *To:* [EMAIL PROTECTED] *Subject:* AW: Problem writing a BetwixtTransformer hi keith, I didn't analyze the code and can't tell you directly where the bug is but... I also got a similar exception which seemed to be an XSLT/xalan exception but actually was an exception thrown from within a custom transformer. somehow the stack trace seems to have been lost. you might want to debug your trasformer to find the actual bug. -Ursprüngliche Nachricht- *Von:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von *Lyall, Keith *Gesendet:* Mittwoch, 12. März 2003 14:16 *An:* '[EMAIL PROTECTED]' *Betreff:* Problem writing a BetwixtTransformer Hi, I am trying to write a BetwixtTransformer based on CastorTransformer but have run into a problem. Everything appears to be working Ok according to my logging messages until the XML is serialized when I get this error: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231) at java.lang.Thread.run(Thread.java:536) This electronic mail system is used for information purposes and is not intended to form any legal contract or binding agreement. The content is confidential and may be legally privileged. Access by anyone other than the addressee(s) is unauthorised and any disclosure, copying, distribution or any other action taken in reliance on it is prohibited and maybe unlawful All incoming and outgoing e-mail communications and attachments are scanned automatically by software designed to detect and remove any material containing viruses or other unauthorised content. While we undertake best endeavours to ensure that this content checking software is up to date, recipients should take steps to assure themselves that e-mails received are secure. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tag inside xsl:attribute's value
I have an applet which takes an xml fragment as input, because it displays document by reading the underlying xml document model. I need to give this xml fragment to the applet by inserting it into an html param tag like this. PARAM name=text value=XMLSNIPPET/ Till now I did that inside an XSP with PARAM name=text xsp:attribute name=valuexsp:exprcontentObject.getXMLSnippet()/xsp:exprxsl:attribute /PARAM But now I need to do the same inside an XSL, and IT DOES NOT WORK. All Tags/XML-Element are stripped out. Nothing left than plain Text. Whats wrong here? Any idea? Thanks in advance. Rob ROBERT SÖSEMANN ([EMAIL PROTECTED]) schwärzlocherstr. 29/1 | 72070 tübingen tel : 07071 / 400 880 icq# : 100 467 870 pgp-keys : www.webspace-journey.de/pgp.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tag inside xsl:attribute's value
Hi Robert, Robert Sösemann wrote: I have an applet which takes an xml fragment as input, because it displays document by reading the underlying xml document model. I need to give this xml fragment to the applet by inserting it into an html param tag like this. PARAM name=text value=XMLSNIPPET/ Till now I did that inside an XSP with PARAM name=text xsp:attribute name=valuexsp:exprcontentObject.getXMLSnippet()/xsp:exprxsl:attribute /PARAM But now I need to do the same inside an XSL, and IT DOES NOT WORK. All Tags/XML-Element are stripped out. Nothing left than plain Text. Whats wrong here? Any idea? that's correct behaviour. You can't store an XML snippet in an attribute or as an attribute's value. It's different in XSP, where the XML elements and so xsp:attribute/ are converted into java first. Can you be a bit more specific what you want to reach. Bringing the XML fragment back to the client? Regards, Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Problem writing a BetwixtTransformer
Title: Problem writing a BetwixtTransformer hi keith, which exceptions did you catch? AFAIK NullPointerException and RuntimeException are unchecked exceptions, so they most probably inhreit from Throwable not from Exception. please make sure that you are catching those Throwables (for debugging purposes). other ways, well... I saw that you already have debug log statements; you can decorate the other methods (maybe even at multiple places; kind of checkpoints) with debug log statements. then after the exception(s) are thrown you should be able to estimate from the logs where approximately the exception is thrown in your code. but a better alternative maybe to just try to debug the transformer via jdb or your favourite IDE debugger; start tomcat (I assume tomcat as your servlet container) in debug/jpda mode, attach to that debug session with your debugger, set breakpoints in your transformer source (maybe do this as first step) and then trigger a transformation so your transformer gets called (setup details etc. may vary). then you should be able to quickly find the bug. -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Lyall, KeithGesendet: Mittwoch, 12. März 2003 18:24An: '[EMAIL PROTECTED]'Betreff: RE: Problem writing a BetwixtTransformer Hi Marco, I tried putting try / catch blocks round all of the code in the methods I have overridden but no exceptions were caught. Do you suggest any other ways to debug a transformer? Keith.
AW: SQL RE: 2 (should be) easy questions
I had a glance at your code, do you use the SPY as well to show the result? I guess not! I am using the SPY as well. Ok, correct me if I am wrong! I aspect your pipeline looks like that (because I guess you are using cocoon to transform): map:pipelinemap:match pattern="database" map:generate src=""/ map:transform type="sql"/ map:transform src=""/ map:serialize//map:match/map:pipeline Is that right? If not - it should look like that! Explanation: map:pipelinemap:match pattern="database" 1) map:generate src=""/ 2) map:transform type="sql"/ 3) map:transform src=""/ map:serialize//map:match/map:pipeline 1) take the database.xml 2) excecute the SQL Statement - that will produce XML 3) your transformation. BASED on everything before! Try the following: map:pipelinemap:match pattern="database" map:generate src=""/ map:transform type="sql"/!-- map:transform src=""/-- map:serialize//map:match/map:pipeline then you see what you have to transform! See the source code (browser right click) and copy it to the Spy. from there you can copy the XPath. ...and then you *just* have to go on! Hope that helps! Thorsten -Ursprüngliche Nachricht-Von: Richard Cunliffe [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 12. März 2003 18:47An: [EMAIL PROTECTED]Betreff: RE: SQL RE: 2 (should be) easy questions Thorsten, Ok the following statement is trying to display the results of the query from the MySQL database in a table, I dont know if this is right. What are you trying to do with, anyway: xsl:for-each select="query"xsl:for-each select="execute-query"xsl:apply-templates//xsl:for-each/xsl:for-each The code looks complicated, because I am using XML Spy designer which allows you to put together your style sheet visually, with the aid of the DTD. The code above was the XML Spys way of trying to represent it from the DTD. I have attached my xml, xsl, and dtd for you to have a look at to get a better understanding. Many thanks, Richard.
AW: SQL RE: 2 (should be) easy questions
Hello again, do you know the book "Cocoon: Building XML Applications" form Carsten Ziegeler Matthew Langham [ISBN of the book (0735712352)]? Here is an example as attachment (hope that is allright with you, CarstenMatthew) about SQL. King regards Thorsten -Ursprüngliche Nachricht-Von: Scherler, Thorsten Gesendet: Mittwoch, 12. März 2003 19:58An: [EMAIL PROTECTED]Betreff: AW: SQL RE: 2 (should be) easy questions I had a glance at your code, do you use the SPY as well to show the result? I guess not! I am using the SPY as well. Ok, correct me if I am wrong! I aspect your pipeline looks like that (because I guess you are using cocoon to transform): map:pipelinemap:match pattern="database" map:generate src=""/ map:transform type="sql"/ map:transform src=""/ map:serialize//map:match/map:pipeline Is that right? If not - it should look like that! Explanation: map:pipelinemap:match pattern="database" 1) map:generate src=""/ 2) map:transform type="sql"/ 3) map:transform src=""/ map:serialize//map:match/map:pipeline 1) take the database.xml 2) excecute the SQL Statement - that will produce XML 3) your transformation. BASED on everything before! Try the following: map:pipelinemap:match pattern="database" map:generate src=""/ map:transform type="sql"/!-- map:transform src=""/-- map:serialize//map:match/map:pipeline then you see what you have to transform! See the source code (browser right click) and copy it to the Spy. from there you can copy the XPath. ...and then you *just* have to go on! Hope that helps! Thorsten -Ursprüngliche Nachricht-Von: Richard Cunliffe [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 12. März 2003 18:47An: [EMAIL PROTECTED]Betreff: RE: SQL RE: 2 (should be) easy questions Thorsten, Ok the following statement is trying to display the results of the query from the MySQL database in a table, I dont know if this is right. What are you trying to do with, anyway: xsl:for-each select="query"xsl:for-each select="execute-query"xsl:apply-templates//xsl:for-each/xsl:for-each The code looks complicated, because I am using XML Spy designer which allows you to put together your style sheet visually, with the aid of the DTD. The code above was the XML Spys way of trying to represent it from the DTD. I have attached my xml, xsl, and dtd for you to have a look at to get a better understanding. Many thanks, Richard. example.zip Description: example.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: SQL RE: 2 (should be) easy questions
hi richard, well, what can I say... the xsl not only looks complicated, it looks like a mess ;-) you should really, really (really ;-) read up on the technologies you're trying to use. 1. what do you need the DTD for? 2. why are you trying to handle elements which are supposed to be handled by the sql transformer (which in this case couldn't even work because you're not matching the correspondig namespace)? 3. in which sequence are transformations applied? (sql transformer - your stylesheet, or vice versa?) just a guess; starting from your database.xml you want to have an sql query executed and the query results formatted by your database.xsl. then please do it like that. generate (database.xml) - transform (sql) - transform (database.xsl) - serialize (html?) you're not even trying to handle the query results (in database.xml I only see a query defined, but the results are handled nowhere). you seem to be assuming the results are coming from somewhere and are trying to handle them within your stylesheet. please read the accompanying docs; it would save you and those trying to help you time and struggles. just to get you started; to handle the results you would insert appropriate statements within the sql:execute-query element to generate e.g. elements which contain the data you want to transform/style/serialize; example (top off my head, based on esql logicsheet); ... sql:execute-query sql:query SELECT artistbandname, generalmusictitle FROM artistband /sql:query sql:results sql:row-results mydata namesql:get-string column="artistbandname"//name titlesql:get-string column="generalmusictitle"//title /mydata /sql:row-results /sql:results /sql:execute-query ... then after the sql transformer step the corresponding data will be available in the SAX event stream which you can then handle from within your stylesheet. ok, let's get to the stylesheet: ?xml version="1.0" encoding="UTF-8"? xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sql="http://apache.org/cocoon/SQL/2.0" xsl:template match="/" html head/ body img src=""/ titlesoundpool/title the title element should go into the head element. xsl:for-each select="/" what is this supposed to do? for each document root? there's only one document root. table border="0" width="99%" xsl:if test="position()=1" xsl:text disable-output-escaping="yes"lt;tbodygt;/xsl:text /xsl:if is that if test on the document root? why aren't you just creating the table body via tbody? tr td align="right" xsl:for-each select="pda" span xsl:for-each select="title" span span xsl:apply-templates/ /span /span /xsl:for-each /span /xsl:for-each /td /tr nesting mess, huh? ;-) xsl:if test="position()=last()" xsl:text disable-output-escaping="yes"lt;/tbodygt;/xsl:text /xsl:if /table again, why not /tbody? snip/ !-- MySQL Query -- here you would handle the data produced by the sql transformer step. snip/ my last advice; read the docs, please. -Ursprngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Richard CunliffeGesendet: Mittwoch, 12. Mrz 2003 18:47An: [EMAIL PROTECTED]Betreff: RE: SQL RE: 2 (should be) easy questions Thorsten, Ok the following statement is trying to display the results of the query from the MySQL database in a table, I dont know if this is right. What are you trying to do with, anyway: xsl:for-each select="query"xsl:for-each select="execute-query"xsl:apply-templates//xsl:for-each/xsl:for-each The code looks complicated, because I am using XML Spy designer which allows you to put together your style sheet visually, with the aid of the DTD. The code above was the XML Spys way of trying to represent it from the DTD. I have attached my xml, xsl, and dtd for you to have a look at to get a better understanding. Many thanks, Richard.
Re: FOP, inline SVG, fonts
Joerg Heinicke wrote: Hmm, maybe because we use JBoss + Tomcat + Cocoon. Do you know what changed between Fop 0.20.3 and 0.20.4, that prevents my old stuff from working? Or is it deep Fop interna? There were two changes: the switch from using Xerces native to JAXP for creating the XML parser for reading the config file and feeding the metrics-file name directly to the InputSource constructor instead of creating a File first (which means it is interpreted as URL rather than as filename, making Windows path names like C:\foo problematic). The new 0.20.5 release has some improvements, in particular you can supply a baseURL for images and a fontBaseURL for font related files. Documentation may be a bit sparse, you might have to blackmail Jeremias to get it :-) If you (or anybody else) are interested into looking at ideas for the FOP API redesign, look at http://nagoya.apache.org/wiki/apachewiki.cgi?FOPAvalonization Also, it's a Wiki, you *can* edit it to bring in your ideas. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XUpdate
When running this, I get Failed to update resource xmldb-object-id: 1 The sitemap log file says it cannot compile the query. What is the oid supposed to be? I don't have anything that seems to match up, or does that even matter? Irv Josema Alonso wrote: Irv, I remember I built the javadoc that came with the transformer and it was pretty easy to use starting there. I suggest you do the same. Anyway if you want a snippet I can give you this. The transformer is declared in the sitemap this way: map:transformer name=xmldb src=org.apache.cocoon.transformation.XMLDBTransformer driverorg.apache.xindice.client.xmldb.DatabaseImpl/driver basexmldb:xindice:///db/base /map:transformer Then is used on a pipeline like any other transformer. The syntax it uses for XUpdate queries for example is: xindice:query type=update oid=xmldb-object-id xu:modifications version=1.0 xmlns:xu=http://www.xmldb.org/xupdate; xu:remove select=/person/[EMAIL PROTECTED] = 'home']/ xu:update select=/person/[EMAIL PROTECTED] = 'work'] 480-300-3003 /xu:update /xu:modifications /xindice:query As I said is pretty straightforward. Hope it helps. - Original Message - From: Irving Salisbury To: [EMAIL PROTECTED] Sent: Sunday, March 09, 2003 5:38 AM Subject: Re: XUpdate This is great news. I don't suppose there are any preliminary docs on this as far as what type of XML it is looking for, etc? I can go rooting around in the source, but any docs or even any examples that make use of it would be a huge help. Thanks, Irv Josema Alonso wrote: Hey, Irv There's a XMLDBTransformer available. It was in Scratchpad but it was moved to a new xmldb block in the CVS repository. Please, checkout a fresh 2.1 from CVS and you'll foun it there or at its block: http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/blocks/xmldb/ I have used it succesfully quite a while ago. Best, Josema. - Original Message - From: Irving Salisbury [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 08, 2003 7:54 PM Subject: XUpdate I am interested in using xupdate commands to xindice from within Cocoon. First, is there something like an XUpdateTransformer that would allow me to do this within a pipeline? If not, are there any actions, etc that help out? If anyone has any links that would be helpful, that would be great. Thanks, Irv - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with indent
g[R]eK wrote: I have some problem with indents in HTML Serializer. ... I want to use UTF-8, I have this declaration in my sitemap: map:serializer name=html mime-type=text/html... indent1/indent Try indentyes/indent encodingUTF-8/encoding This should be the default. And in output I have some chars encoded as entities. How Can I force Cocoon to encode my language (polish) chars correctly? What is correctly? If you mean you don't want to have HTML entities: you can't (unless you are willing to pull some tricks which take some time to explain) Sorry about any mistakes, I speak little english... Writing long lines is a mistake independent of the native language... J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generator for OpenOffice
Hi all, I tested your suggestions and this is what I have ... map:pipeline map:match pattern=test/*/**.xml map:read src=jar:http://web/implements/{1}!/{2}.xml; mime-type=text/xml/ /map:match /map:pipeline map:pipeline map:match pattern=*.zip map:read src={1}.zip/ /map:match map:match pattern=*.sxw map:read src={1}.sxw mime-type=application/zip/ /map:match /map:pipeline This works !! I get to see the XML in my browser. HOWEVER ... When I replace the map:read with map:generate for the content.xml within my file, Cocoon give me an error. message File jar:http://web/implements/test.sxw!/office.dtd; not found. description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.xml.sax.SAXParseException: File jar:http://web/implements/test.sxw!/office.dtd; not found. When I open up the file with Ark, the DTD is indeed not in the file, but for generation within cocoon, it seems to have to be there Now, how can I bypass that, how can I tell cocoon to generate the file without parsing it with the DTD ?? Any help would be appreciated Good point, Upayavira! I've taken your suggestion and implemented an example: http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample Cheers! Con Basically, it's the ZipGenerator I need with some extras, but before writing the code myself, I was wondering whether someone had done it before me. Asking a similar question, I pointed someone at an example in the Langham/Ziegler book (a zip source). Someone else then made a point that the jar: protocol, built into the JDK, can read Zip files. So check out the accessing files with jar: in the JDK and let us know where you get to! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tag inside xsl:attribute's value
Hey Joerg, actually we solved the problem by a dirty quickhack using base64 encoding of the xml Fragment. The problem was the following. DB stores articles as xml fragment (kind of document model) to make it editable in our CMS we use an wysiwyglike applet which displays this article in its presentation form instead of xml. Therefore we need to send this xml fragment (read out of db by Generator ) to an applet in our html page. To produce this page we transform the generated xml by an xsl. Thats where the xml fragment is passed to the applet like I mentioned before. Maybe you have a better solution. Otherwise thanks for your help, anyway. Rob - Original Message - From: Joerg Heinicke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 7:20 PM Subject: Re: tag inside xsl:attribute's value Hi Robert, Robert Sösemann wrote: I have an applet which takes an xml fragment as input, because it displays document by reading the underlying xml document model. I need to give this xml fragment to the applet by inserting it into an html param tag like this. PARAM name=text value=XMLSNIPPET/ Till now I did that inside an XSP with PARAM name=text xsp:attribute name=valuexsp:exprcontentObject.getXMLSnippet()/xsp:exprxsl:attribute /PARAM But now I need to do the same inside an XSL, and IT DOES NOT WORK. All Tags/XML-Element are stripped out. Nothing left than plain Text. Whats wrong here? Any idea? that's correct behaviour. You can't store an XML snippet in an attribute or as an attribute's value. It's different in XSP, where the XML elements and so xsp:attribute/ are converted into java first. Can you be a bit more specific what you want to reach. Bringing the XML fragment back to the client? Regards, Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XUpdate
The oid is the unique identifier asigned to the document when you inserted in in the DB. I guess you have to make a search before updating it and get the oid. Then you could use it in your XUpdate query. Of course, you can also use the transformer for the former query. Best. ps: I only used the XMLDBTransformer with Xindice and haven't tried with 1.1 yet. If you're using that one, maybe you error could be due to another cause. - Original Message - From: Irv Salisbury III [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:52 PM Subject: Re: XUpdate When running this, I get Failed to update resource xmldb-object-id: 1 The sitemap log file says it cannot compile the query. What is the oid supposed to be? I don't have anything that seems to match up, or does that even matter? Irv Josema Alonso wrote: Irv, I remember I built the javadoc that came with the transformer and it was pretty easy to use starting there. I suggest you do the same. Anyway if you want a snippet I can give you this. The transformer is declared in the sitemap this way: map:transformer name=xmldb src=org.apache.cocoon.transformation.XMLDBTransformer driverorg.apache.xindice.client.xmldb.DatabaseImpl/driver basexmldb:xindice:///db/base /map:transformer Then is used on a pipeline like any other transformer. The syntax it uses for XUpdate queries for example is: xindice:query type=update oid=xmldb-object-id xu:modifications version=1.0 xmlns:xu=http://www.xmldb.org/xupdate; xu:remove select=/person/[EMAIL PROTECTED] = 'home']/ xu:update select=/person/[EMAIL PROTECTED] = 'work'] 480-300-3003 /xu:update /xu:modifications /xindice:query As I said is pretty straightforward. Hope it helps. - Original Message - From: Irving Salisbury To: [EMAIL PROTECTED] Sent: Sunday, March 09, 2003 5:38 AM Subject: Re: XUpdate This is great news. I don't suppose there are any preliminary docs on this as far as what type of XML it is looking for, etc? I can go rooting around in the source, but any docs or even any examples that make use of it would be a huge help. Thanks, Irv Josema Alonso wrote: Hey, Irv There's a XMLDBTransformer available. It was in Scratchpad but it was moved to a new xmldb block in the CVS repository. Please, checkout a fresh 2.1 from CVS and you'll foun it there or at its block: http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/blocks/xmldb/ I have used it succesfully quite a while ago. Best, Josema. - Original Message - From: Irving Salisbury [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 08, 2003 7:54 PM Subject: XUpdate I am interested in using xupdate commands to xindice from within Cocoon. First, is there something like an XUpdateTransformer that would allow me to do this within a pipeline? If not, are there any actions, etc that help out? If anyone has any links that would be helpful, that would be great. Thanks, Irv - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generator for OpenOffice
Hi Yves. You will need other pipelines to extract non-xml resources from the sxw file as well. (Presumably the sxw file contains the DTD?) e.g. map:match pattern=test/*/**.dtd map:read src=jar:http://web/implements/{1}!/{2}.dtd; mime-type=text/plain/ /map:match - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
parsing CSV
Does anyone have a grammar example that configures the TextParserGenerator to parse CSV files? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cache in logicsheet!!!!
Title: Cache in logicsheet Sorry i solved it!! -Original Message-From: Hong Gia Dinh Sent: 12 March 2003 11:33To: [EMAIL PROTECTED]Subject: Cache in logicsheet Hi All, Can somebody tell me how to remove cache in logicsheets??? because everytime i call a page having logicsheet access, change something , and call that page again (with submit action for eg.) it doesn't change , i must access other pages and then back to this page then this time it will change!!! how to remove cache in logicsheet? Thanks a lot in advance GD
Re: form and pdf
Hi Thomas Hamlin wrote: You can use FOP, which implements much of the W3C XSL-FO standard and comes with Cocoon. I'm not sure if FOP supports form generation, though.The XSLFO REC does not cover interactive forms. I'd suggest to useanother PDF library which either implements extensions or uses itsown input format to generate PDF with forms.J.Pietschmann do you know one ? thanks Xavier GIBOUINAXONIETel/Fax : 02.40.48.53.23[EMAIL PROTECTED] - Original Message - From: J.Pietschmann To: [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:38 PM Subject: Re: form and pdf Thomas Hamlin wrote: You can use FOP, which implements much of the W3C XSL-FO standard and comes with Cocoon. I'm not sure if FOP supports form generation, though.The XSLFO REC does not cover interactive forms. I'd suggest to useanother PDF library which either implements extensions or uses itsown input format to generate PDF with forms.J.Pietschmann-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
dynamically load an action in a resource?
i'm a newbie cocoon2 developer who is trying to create a map:resource for commonly-used pipelines for use with my XMLForms. apparently (here, my newbie status begins to show prominently ;-), you can send map:parameters to map:resources quite easily via map:call (i've done this quite a bit already). also, i think you can even use map:actions within a map:resource. however, i can not dynamically load a map:action (which is the controller bean) within my map:resource like so: map:resource name=my-xmlform ... map:act type={target} ... /map:act ... /map:resource do map:act types have to be declared statically (i.e., a static value for type)? or, is this a bug? or, is this a design choice (for security reasons, etc.)? perhaps, this is a bad way of going about this. i suppose i could write a more generic action and have it do what i want, but i thought it would be good to know why i can't do this. TIA, chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integrate javascript into xsp
Hi, I want to create a function on a button (OnClick action) that executes an SQL query. Is it possible to create a function (with xsp:logic) or something like that? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generator for OpenOffice
Well, That's the problem. The SXW file does not contain any DTD itself. They are all on my hard drive, from the installation of OpenOffice, but not in the files themselves. When I manually add all the DTDs (there are several) to the Zipped file, it works (at least, it gives another error in a DTD). But that is not really the solution. I cannot manually add all the files to my OpenOffice files. When I tried to add the DTD to my webdirectories and created pipelines for them, I still got the error that the Jar: protocol could not find anything within the zip. Appearantly, that protocol does not match itself again against the pipelines ... Hi Yves. You will need other pipelines to extract non-xml resources from the sxw file as well. (Presumably the sxw file contains the DTD?) e.g. map:match pattern=test/*/**.dtd map:read src=jar:http://web/implements/{1}!/{2}.dtd; mime-type=text/plain/ /map:match - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XInclude-problems with Cocoon2.0.4
Hello, the interesting thing is that in version 2.0.3 the use of namespaces works correctly! Should I use the XInclude-Transformer from this version? Thanks Uwe [EMAIL PROTECTED] schrieb: Uwe Gerger wrote: Hello, I would like to use xinclude-statements in my xml-file with Cocoon2.0.4 with my own tags for example rpt:data. Specifying such a tag as follows xi:include href=include.xml#xpointer(/p/rpt:data)/ doesn't work. Instead using xi:include href=include.xml#xpointer(/p/rpt)/ works! snip/ What's wrong? quoting from XIncludeTransformer javadoc: My first pass at an XInclude transformation The transformer does the basics correctly but stumbles with anything more complicated. It doesn't always handle absolute URLs, nested xinclude elements, nor apparently namspace prefixes in xpointers. You might consider modifiying the source to get the namespace support you would like and submitting a patch if it works. Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Uwe Gerger_/_/_/ _/_/ _/_/ BMW AG, TG-53 IT-Technologie _/ _/ _/_/_/_/ _/_/ 80788 Muenchen _/_/_/ _/ _/ _/ _/ _/ _/ Tel: +49 89 382 35687 _/ _/ _/_/ _/_/_/_/ Fax: +49 89 382 49040 _/_/_/ _/_/ _/_/ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generator for OpenOffice
Well, That's the problem. The SXW file does not contain any DTD itself. They are all on my hard drive, from the installation of OpenOffice, but not in the files themselves. So your pipeline should read the OpenOffice files from somewhere else. map:match pattern=test/*/**.dtd map:read src=open-office-dtd/{2}.dtd mime-type=text/plain/ /map:match When I tried to add the DTD to my webdirectories and created pipelines for them, I still got the error that the Jar: protocol could not find anything within the zip. Appearantly, that protocol does not match itself again against the pipelines ... I think this is the same as I suggested above ... what happens? Can you please post your pipelines and the error you receive? Thanks Con - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with 'request parameters'
Thank you Michael. Actually, I just need to write {../1}{requestQuery} instead of {1}{requestQuery} Thanks for your help. Anna - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:18 PM Subject: Re: Problem with 'request parameters' Hi ! I think you can try this : map:match pattern=testing/** map: act type=request map:generate src=http://{1}{requestQuery}; type=html/ map:transform src=ub/testing/test.xsl/ map:serialize type=xml/ /map:act /map:match if you have this in your sitemap map:actions map:action name=request src=org.apache.cocoon.acting.RequestParamAction/ /map:actions {requestQuery} will contain the string ?id=15. Michael Hi all I have a pipeline that processes some url. map:match pattern=testing/** map:generate src=http://{1} type=html/ map:transform src=ub/testing/test.xsl/ map:serialize type=xml/ /map:match I.e. I get some html page, generate it, run an xsl and serialize. Nothing complicated. I can make a request localhost:8080/cocoon/testing/www.cnn.com/search.html (or whatever) and it works fine. The problem arises when the requested URL contains question marks, as in www.some.com/index.asp?id=15 If I provide this URL for the above pipeline, it generates the URL www.some.com/index.asp, ignoring everything after the ?. I understand that this is because Cocoon treats everything after ? as request parameters to the pipeline, but this is not the case here. So my question is how can I define Cocoon to take into the generator the full URL including the ? and everything after it. Is it at all possible? I would appreciate any input. Thank you very much for help. Anna - 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]