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
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
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
: 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
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
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
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
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
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
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]
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
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
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
__
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
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
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
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
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
, 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
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
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
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
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
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
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
} /
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
:[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
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]
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
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
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
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
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
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
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
-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
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
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
--- 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
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
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
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
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
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
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
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
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
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
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
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
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
51 matches
Mail list logo