Re: majix as generator
Hello I have a MajixGenerator, but it's not really a good job. I have deleted a lot of things that I don't understand, including all the online code, and there are no comments. If you still want it I'll send you all the code. --- [EMAIL PROTECTED] escribió: Hello, has anyone considered or implemented a cocoon majix RTF generator? Majix (http://tetrasys.dhs.org/majix.html) can transform RTF files to XML using a bunch of XML parsers (saxon, xalan, xt) so it should make sense using it an RTF Cocoon generator. regards, adrian. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic XSP resource
I think ( for my experience) you need to have map:match pattern=menu.xsp in another pipeline, not in the same thar the other match pattern. the cocoon:/ references to another pipeline in the same sitemap, not the same pipeline. Carles. --- Tuomo Lesonen [EMAIL PROTECTED] escribió: On Tue, 20 Aug 2002, Roger I Martin PhD wrote: Just from a quick look, the map:generate src for menu.html has cocoon: as a part of it relative path; do you have such a path and can such an animal be part of a url? I use cocoon:/ protocol to tell cocoon, that menu.xsp in not directly located on my hard drive, but it's a resource in the current sitemap. cocoon:// would mean the parent sitemap. Generators in Cocoon (including the serverpages generator) can use the new cocoon: protocol, right? -Tuomo --Roger - Original Message - From: Tuomo Lesonen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 4:57 AM Subject: Dynamic XSP resource Hi all! I have an XSP page which is extended with the Session Transformer before it is used as an resource for the serverpages generator. Here's my sitemap: map:match pattern=menu.xsp map:generate src=docs/menu.xsp/ map:transform type=session/ map:serialize type=xml/ /map:match map:match pattern=menu.html map:generate type=serverpages src=cocoon:/menu.xsp/ map:transform src=stylesheets/menu-html.xsl/ map:serialize type=html/ /map:match If I open menu.xsp in browser, everything looks ok. Session Transformers does the job and everything. But when opening menu.html Cocoon gives a NullPointerException. Seems like a bug, not sure though. Thanks in advance, -Tuomo org.apache.cocoon.ProcessingException: Exception during source resolving.: org.apache.excalibur.source.SourceException: Exception during processing of cocoon://intranet/menu.xsp: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException at org.apache.cocoon.components.source.SourceUtil.handle(SourceUtil.java:136) at org.apache.cocoon.components.source.SourceUtil.getInputSource(SourceUtil.jav a:161) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eSourcecode(ProgramGeneratorImpl.java:438) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:285) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator .java:209) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli ne(AbstractProcessingPipeline.java:368) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline .setupPipeline(AbstractCachingProcessingPipeline.java:297) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs tractProcessingPipeline.java:475) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp eNode.java:155) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at
Macros in velocity generator
Hello. I'm using a velocity generator in a internal pipeline on my sitemap in order to get a xsp file. My problem is that i want to use velocimacros to simplify the source vm file, but I don't know where cocoon is trying to find the VM_global_library.vm where I have defined the macros. the internal pipeline is: map:pipeline internal-only=yes type=caching map:match pattern=velocity/*/*/*.xsp map:generate src=plantillas/{1}.vm type=velocity map:parameter name=idioma value={2}/ map:parameter name=formato value={3}/ /map:generate map:serialize type=xml/ /map:match /map:pipeline The message in the sitemap.log is: INFO(2002-07-24) 10:57.05:695 [sitemap] (/cocoon/impresion/imprime) Thread-7/VelocityGenerator: Velocimacro : initialization starting. INFO(2002-07-24) 10:57.05:695 [sitemap] (/cocoon/impresion/imprime) Thread-7/VelocityGenerator: Velocimacro : adding VMs from VM library template : VM_global_library.vm ERROR (2002-07-24) 10:57.05:695 [sitemap] (/cocoon/impresion/imprime) Thread-7/VelocityGenerator: ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. INFO(2002-07-24) 10:57.05:695 [sitemap] (/cocoon/impresion/imprime) Thread-7/VelocityGenerator: Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' INFO(2002-07-24) 10:57.05:695 [sitemap] (/cocoon/impresion/imprime) Thread-7/VelocityGenerator: Velocimacro : VM library template macro registration complete. I have searched in the documentation and in the cocoon.xconf and I have found nothing about that issue. My java is not so good to find it in the source code. In wich path is cocoon trying to find these files? Can I change this path? How? Thanks in advance. Carles. ___ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://es.messenger.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]