Chaining transforms in SourceWritingTransformer?

2006-01-05 Thread Lincoln
Can I chain another transform to my SourceWritingTransformer sitemap pipeline? I imagine it would look like this. But the resulting png is not effected by another.xsl. --- map:pipeline map:match pattern=write/** map:generate type=request/ map:transform src=request2doc.xsl

Re: Chaining transforms in SourceWritingTransformer?

2006-01-05 Thread Jason Johnston
Lincoln wrote: Can I chain another transform to my SourceWritingTransformer sitemap pipeline? Yes, you can add as many transformers as you like in any order. This is the whole idea behind pipelines! :-) I imagine it would look like this. But the resulting png is not effected

RE: Chaining transforms in SourceWritingTransformer?

2006-01-05 Thread Lincoln
height=100 g id=myRect rect width=165 height=126 fill=green/ /g /svg --- -Original Message- From: Jason Johnston [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 1:24 PM To: users@cocoon.apache.org Subject: Re: Chaining transforms in SourceWritingTransformer? Lincoln

RE: Chaining transforms in SourceWritingTransformer?

2006-01-05 Thread Lincoln
: Lincoln [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 1:39 PM To: users@cocoon.apache.org Subject: RE: Chaining transforms in SourceWritingTransformer? Here's Another.xsl --- ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform

Re: SourceWritingTransformer

2005-04-11 Thread Geert Josten
Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy-source action. is there a more concrete example on this? I second this question, Sylvain. A big advantage of transformers is that they can take a dynamically-generated list of

Re: SourceWritingTransformer

2005-04-08 Thread Lars Huttar
Lars Huttar wrote: Michael Wechner wrote: Antonio Gallardo wrote: On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy-source action. is there a more concrete example on

Re: SourceWritingTransformer

2005-04-07 Thread Michael Wechner
Antonio Gallardo wrote: On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: David Merrilees wrote: Has anyone got a working example of SourceWritingTransformer? I can't get a peep out of it. Apache Lenya uses it for saving the content of the various editors (at least within 1.2

Re: SourceWritingTransformer

2005-04-07 Thread Michael Wechner
Michael Wechner wrote: Antonio Gallardo wrote: On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: David Merrilees wrote: Has anyone got a working example of SourceWritingTransformer? I can't get a peep out of it. Apache Lenya uses it for saving the content of the various editors

Re: SourceWritingTransformer

2005-04-07 Thread Lars Huttar
Michael Wechner wrote: Antonio Gallardo wrote: On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy-source action. is there a more concrete example on this? I second this

SourceWritingTransformer

2005-04-06 Thread David Merrilees
Has anyone got a working example of SourceWritingTransformer? I can't get a peep out of it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SourceWritingTransformer

2005-04-06 Thread Sylvain Wallez
David Merrilees wrote: Has anyone got a working example of SourceWritingTransformer? I can't get a peep out of it. Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy-source action. Pipelines are meant to producing content

Re: SourceWritingTransformer

2005-04-06 Thread Jens Reufsteck
the sessionid again plus the output of the sourceWritingTransformer for further usage. the sitemap fragment: map:match pattern=writePHPSession map:generate src=content/writePHPSession.xml/ map:transform type=session/ map:transform type=write-source/ map:transform src=stylesheets

Re: SourceWritingTransformer

2005-04-06 Thread Antonio Gallardo
On Mie, 6 de Abril de 2005, 9:43, Sylvain Wallez dijo: David Merrilees wrote: Has anyone got a working example of SourceWritingTransformer? I can't get a peep out of it. Rather than using a transformer, you really should consider using the flowscript and the PipelineUtil class, or the copy

AW: SourceWritingTransformer

2005-04-06 Thread Claus Straube
__ Claus Straube Francéstrasse 31 80997 München +49 (089) 14 16 682 = -Ursprüngliche Nachricht- = Von: David Merrilees [mailto:[EMAIL PROTECTED] = Gesendet: Mittwoch, 6. April 2005 17:24 = An: users@cocoon.apache.org = Betreff: SourceWritingTransformer = = Has anyone got

Using SourceWritingTransformer with WebDAV

2004-09-23 Thread Corin Moss
Hi All, My interpretation of the SourceWritingTransformer documentation (here: http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-transfo rmer.html) is that I should be able to write to a webdav repository. I've tried specifying my repository (as the source eg webdav://repos:9090

RE: Using SourceWritingTransformer with WebDAV

2004-09-23 Thread Corin Moss
class=org.apache.cocoon.components.source.impl.WebDAVSourceFactory name=webdav/ Thanks, Corin -Original Message- From: Corin Moss Sent: Friday, 24 September 2004 2:02 p.m. To: [EMAIL PROTECTED] Subject: Using SourceWritingTransformer with WebDAV Hi All, My interpretation

SourceWritingTransformer Problem

2004-08-25 Thread JACOB, ERIC
Hi, It seems that I cannot use the SourceWritingTransformer to write document that is in use by the pipeline. I get the following error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Could not process your

Re: SourceWritingTransformer Problem

2004-08-25 Thread Andreas Hartmann
JACOB, ERIC wrote: Hi, It seems that I cannot use the SourceWritingTransformer to write document that is in use by the pipeline. I get the following error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Could

Re: SourceWritingTransformer Problem

2004-08-25 Thread Jorg Heymans
, outputstream); resolver.release(source); outputstream.close(); JACOB, ERIC wrote: Hi, It seems that I cannot use the SourceWritingTransformer to write document that is in use by the pipeline. I get the following error: org.apache.cocoon.ProcessingException: Failed to execute pipeline

SourceWritingTransformer, replacing more than 1 node

2004-06-23 Thread Stephanie Zohner
Hi all, I'm using cocoon 2.1.3 and I have a question regarding the source:insert tag of the SourceWritingTransformer. Is it possible to replace not only one node, but a whole set of nodes with one source:insert block? Here is an example to explain, what I mean: source:insert create=false

Re: Conditional replace / reinsert with SourceWritingTransformer

2004-05-14 Thread laurent_rorive
Hi , I think that you can easily do that with a simple XSL Transformer and not a SourceWritingTransformer Generate your XML Pass it to XSL transformer (in your XSL you will do some xsl:if test=b/@flag='true' ... ) Serialize it Hope it could help Laurent Stephanie Zohner [EMAIL PROTECTED

Conditional replace / reinsert with SourceWritingTransformer

2004-05-12 Thread Stephanie Zohner
Hi specialists in SourceWritingTransformer usage ;-), Here is my problem: I want to replace and reinsert certain elements in an xml-filem if they have set an attribute to a certain value: For example: My xml file looks like this page a b flag=true1/b b flag=false2/b b flag=true3/b

Applying SourceWritingTransformer to file used in pipeline

2004-02-27 Thread Remmerie Bart
Title: Applying SourceWritingTransformer to file used in pipeline It appears to be impossible to use the SourceWriting transformer to a file that is in use by the pipeline. Does anyone have a workaroud / alternative for this ? A bit more details: Below is my code (which is not working

indents SourceWritingTransformer ?

2004-01-20 Thread Stephanie Zohner
Hi, I generate an XML File with cocoon with no indents. Like pageheader/headercontent/content Then I would like to save this file with indents with the SourceWritingTransformer. How can I do this? I already tried this (in vain): 1. I added indentyes/indent to the configuration

Re: SourceWritingTransformer

2004-01-13 Thread Upayavira
Huttar [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 3:04 PM To: [EMAIL PROTECTED] Cc: Varalakshmi Kollipara Subject: RE: SourceWritingTransformer I assume you have looked at the examples at cocoon/docs/userdocs/components/transformers/sourcewriting-transformer.html Here's what we use

RE: SourceWritingTransformer

2004-01-12 Thread Lars Huttar
} / map:parameter name=state value={2} / /map:transform map:serialize type=html/ /map:match So if the parameter ?cocoon-view=source is included on the request URL, the output of the transform labeled here goes to the SourceWritingTransformer; otherwise it goes to a different transformer

RE: SourceWritingTransformer

2004-01-12 Thread Varalakshmi Kollipara
:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 3:04 PM To: [EMAIL PROTECTED] Cc: Varalakshmi Kollipara Subject: RE: SourceWritingTransformer I assume you have looked at the examples at cocoon/docs/userdocs/components/transformers/sourcewriting-transformer.html Here's what we use (under Cocoon

SourceWritingTransformer

2004-01-09 Thread Varalakshmi Kollipara
Hello everyone can anyone send me some SourceWritingTansformer examples. Thanks in advance, Lakshmi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Writing plain text files with SourceWritingTransformer?

2003-12-16 Thread Stephanie Zohner
Hi, Is there a way to write plain text files with the SourceWritingTrnasformer? I don't want to have the xml-declaration tag or the root tag in the written file, only the text. How can I do this? I tried to overwite the sourceWrintingTransformer in my subsitemap and set the parameter serializer

Re: Writing plain text files with SourceWritingTransformer?

2003-12-16 Thread Upayavira
Stephanie Zohner wrote: Hi, Is there a way to write plain text files with the SourceWritingTrnasformer? I don't want to have the xml-declaration tag or the root tag in the written file, only the text. How can I do this? I tried to overwite the sourceWrintingTransformer in my subsitemap and set

Re: Writing plain text files with SourceWritingTransformer?

2003-12-16 Thread Stephanie Zohner
This does not work in my case, no idea why. I still have the xml declaration tag and the root tag in my output file. Any ideas? Are there other parameters I was't aware of? Thanks, Stephanie Stephanie Zohner wrote: Hi, Is there a way to write plain text files with the

SourceWritingTransformer problem giving INVALID_CHARACTER_ERR

2003-12-10 Thread Hugh Field-Richards
Hi I am using Cocoon 2.1.3 and am having trouble with, I think, the SourceWritingTransformer. My sitemap fragment is map:match pattern=updateDoc.html> map:generate type=jxt src=updateDoc-en.xml /> map:act type=auth-protect> map:parameter name=handler value=adminHandler/> map:pa

SourceWritingTransformer not creating file until end of pipeline?

2003-12-01 Thread Hugh Field-Richards
type=html/> /map:act> /map:match> I have found that file that is created by the write-source does not exist for my add2DB transformer until the pipeline has run its course. I have put in the following in add2DB to force a delay to ensure that a simple delay is not the probl

Re: SourceWritingTransformer not creating file until end of pipeline?

2003-12-01 Thread Upayavira
found that file that is created by the write-source does not exist for my add2DB transformer until the pipeline has run its course. I have put in the following in add2DB to force a delay to ensure that a simple delay is not the problem with SourceWritingTransformer: long st = System.currentTimeMillis

Re: SourceWritingTransformer not creating file until end of pipeline?

2003-12-01 Thread Hugh Field-Richards
Many thanks for this ... mea culpa as I had the write-source after the bit that does the updating DB in the generated file. Hugh F-R On Monday, December 1, 2003, at 12:05 pm, Upayavira wrote: Hugh, Looking into the source of the SWT, I can see that the source is written as soon as the

RE: SourceWritingTransformer to save jpeg/png to filesystem

2003-12-01 Thread jim basilakis
-Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Saturday, 29 November 2003 6:46 PM To: [EMAIL PROTECTED] Subject: Re: SourceWritingTransformer to save jpeg/png to filesystem jim basilakis wrote: Hi, Does anyone know how to save a png/jpg generated by .svg file onto

Re: SourceWritingTransformer to save jpeg/png to filesystem

2003-11-29 Thread Upayavira
jim basilakis wrote: Hi, Does anyone know how to save a png/jpg generated by .svg file onto the file system. I have been hinted before to use SourceWritingTransformer but does this apply to images as well as simple files? If so, what would I need to do? Would something like this work

Re: SourceWritingTransformer results in NPE!

2003-11-09 Thread Joerg Heinicke
don't know about the SourceWritingTransformer and its usage, but a NPE is never the users fault in general. If you can provide more info like a stack trace, it will be easier for us to investigate. Joerg David Geleyn wrote: Hi, I'm trying to replace an attribute with the source writing

Re: SourceWritingTransformer results in NPE!

2003-11-08 Thread David Geleyn
--- Joerg Heinicke [EMAIL PROTECTED] wrote: I don't know about the SourceWritingTransformer and its usage, but a NPE is never the users fault in general. If you can provide more info like a stack trace, it will be easier for us to investigate. Joerg David Geleyn wrote: Hi

SourceWritingTransformer problem!!

2003-11-07 Thread Mustafa Ali, Halgurt
Description element like this rdf:Description ID=Usertype prf:component .. /prf:component /rdf:Description I am using the SourceWritingTransformer like that: source:write source:sourcefile.xml/source:source source:pathRDFsource:path source:fragment . . source:fragment

DOCTYPE and write-source (SourceWritingTransformer)

2003-11-07 Thread Michael Wechner
I read a file (generate), send it through an XSLT (transform) and then use the type=write-source transformer, e.g. map:generate src=index.xml/ map:transform src=xslt/foo.xsl/ map:transform type=write-source/ the problem is that during the first

Re: SourceWritingTransformer results in NullPointerException... My mistake?

2003-11-07 Thread Joerg Heinicke
I don't know about the SourceWritingTransformer and its usage, but a NPE is never the users fault in general. If you can provide more info like a stack trace, it will be easier for us to investigate. Joerg David Geleyn wrote: Hi, I'm trying to replace an attribute with the source writing

Re: [HELP]: How to set xml encoding? SourceWritingTransformer

2003-11-06 Thread Gianluca Morello
encoding is correct! map:generate src=""/map:transform src=""/map:serialize type="xml-iso"/ Thank you for your help. I still have problems with encoding because i have to writexml to file system: I'm using SourceWritingTransformer and my real pipeline is like the

RE: [HELP]: How to set xml encoding for SourceWritingTransformer -

2003-11-06 Thread Alten, Jelle Paul (sds-sp)
Sorry, I don't know enough about the SourceWritingTransformer to tell you how to set the encoding for the SourceWritingTransformer. Anybody else? -Oorspronkelijk bericht-Van: Gianluca Morello [mailto:[EMAIL PROTECTED]Verzonden: donderdag 6 november 2003 18:07Aan: [EMAIL

SourceWritingTransformer results in NullPointerException... My mistake?

2003-11-06 Thread David Geleyn
Hi, I'm trying to replace an attribute with the source writing transformer and I can't get it done. I'm trying something like: source:insert source:source/users/jef/account.xml/source:source source:path/account-info[1]/source:path source:replace./@disabled/source:replace

Why doesn't delete the SourceWritingTransformer non-empty directories??

2003-11-05 Thread David Geleyn
ableSource in SourceWritingTransformer). The delete function of this class is called. This function uses the File.delete function (which doesn't delete non-empty directories). This is standard java behaviour, I assume? Shouldn't FileSource check whether the source is a directory and act properly? Examples of

RE: Why doesn't delete the SourceWritingTransformer non-empty directories??

2003-11-05 Thread Unico Hommes
delete the SourceWritingTransformer non-empty directories?? Hi all, I'm trying to delete a non-empty directory with the source writing transformer. This results in "Could not delete blahblah (unknown reason)". I took the liberty tosearch for the cause of this. The

SourceWritingTransformer doesn't delete non-empty directories.

2003-11-03 Thread David Geleyn
ableSource in SourceWritingTransformer). The delete function of this class is called. This function uses the File.delete function (which doesn't delete non-empty directories). This is standard java behaviour, I assume? Shouldn't FileSource check whether the source is a directory and act properly? Examples of

SourceWritingTransformer modifying the file used in generate

2003-10-21 Thread Oleg Dulin
I have a very simple pipeline: generate src=foo.xml / transform src=apply some complex changes.xslt / !-- uses full path to foo.xml as source -- transform type=tofile / serialize type=xml / Now, it appears to be able to write to anything but foo.xml . Either way, however, it appears to

Re: SourceWritingTransformer error

2003-08-22 Thread Matthieu
xmlns:source=http://apache.org/cocoon/source/1.0; overwrite=true xsl:copy-of select=/*/ /source:write Regards, Upayavira On 12 Aug 2003 at 12:22, Ferenc Kiraly wrote: Hi! I'm trying to use the SourceWritingTransformer to generate a file, but I consistently get

SourceWritingTransformer error

2003-08-12 Thread Ferenc Kiraly
Hi! I'm trying to use the SourceWritingTransformer to generate a file, but I consistently get the following error: java.lang.RuntimeException: Errors in XSLT transformation: Fatal: org.apache.cocoon.ProcessingException: Cannot get 'xml' serializer The error occures if I specify a serializer