RE: FileWritingTransformer update

2002-02-24 Thread Jeremy Quinn
At 12:44 pm -0500 24/2/02, Vadim Gritsenko wrote: >> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] >> >> At 3:36 pm -0500 23/2/02, Peter Royal wrote: >> >On Saturday 23 February 2002 09:57 am, Jeremy Quinn wrote: >> >> One issue I KNOW exists. >> >> If you send out an HTML form, with XML tags insi

Re: FileWritingTransformer update

2002-02-24 Thread Peter Royal
On Sunday 24 February 2002 05:05 am, Jeremy Quinn wrote: > At 3:36 pm -0500 23/2/02, Peter Royal wrote: > >On Saturday 23 February 2002 09:57 am, Jeremy Quinn wrote: > >> One issue I KNOW exists. > >> If you send out an HTML form, with XML tags inside a form field that > >> resemble HTML tags (, ,

RE: FileWritingTransformer update

2002-02-24 Thread Vadim Gritsenko
> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] > > At 3:36 pm -0500 23/2/02, Peter Royal wrote: > >On Saturday 23 February 2002 09:57 am, Jeremy Quinn wrote: > >> One issue I KNOW exists. > >> If you send out an HTML form, with XML tags inside a form field that > >> resemble HTML tags (, , etc.)

Re: FileWritingTransformer update

2002-02-24 Thread Jeremy Quinn
At 3:36 pm -0500 23/2/02, Peter Royal wrote: >On Saturday 23 February 2002 09:57 am, Jeremy Quinn wrote: >> One issue I KNOW exists. >> If you send out an HTML form, with XML tags inside a form field that >> resemble HTML tags (, , etc.) then the HTMLSerializer breaks >> them!!! > >Use XHTML. We'r

Re: FileWritingTransformer update

2002-02-23 Thread Peter Royal
On Saturday 23 February 2002 09:57 am, Jeremy Quinn wrote: > One issue I KNOW exists. > If you send out an HTML form, with XML tags inside a form field that > resemble HTML tags (, , etc.) then the HTMLSerializer breaks > them!!! Use XHTML. We're sending that to both Mozilla-based browsers and IE

Re: FileWritingTransformer update

2002-02-23 Thread Jeremy Quinn
At 11:27 am +0100 23/2/02, Stefano Mazzocchi wrote: >Jeremy Quinn wrote: >> >> Dear All, >> >> I am almost ready to commit a new version of FileWritingTransformer. >> >> There is a new experimental/demo file-editor called . > >upload upload upload :) It's done, I was not subscribed to cvs list wi

Re: FileWritingTransformer update

2002-02-23 Thread Robert Koberg
- Original Message - From: "Stefano Mazzocchi" <[EMAIL PROTECTED]> > > > What I cannot work out is, would defective XML markup, passed down the > > stream as character data, then transformed into a form to re-edit and fix, > > be real tags or would they be Entities by then? > > Gosh, Je

Re: FileWritingTransformer update

2002-02-23 Thread Stefano Mazzocchi
Jeremy Quinn wrote: > > Dear All, > > I am almost ready to commit a new version of FileWritingTransformer. > > There is a new experimental/demo file-editor called . upload upload upload :) > I updated the transformer to try and stop it overwriting files when there > is an error. I now write i

RE: FileWritingTransformer and Windows

2002-02-20 Thread Jeremy Quinn
At 12:52 pm +0100 19/2/02, Carsten Ziegeler wrote: >Hi, > >I'm not sure, but I think windows needs two slashes after "file:" - the >backslashes are not required. > >How do you construct the whole file URI? Do you use the SourceResolver? >If you for example use the relative path "mount/editor/docs/

RE: FileWritingTransformer and Windows

2002-02-19 Thread Carsten Ziegeler
Hi, I'm not sure, but I think windows needs two slashes after "file:" - the backslashes are not required. How do you construct the whole file URI? Do you use the SourceResolver? If you for example use the relative path "mount/editor/docs/test1.xml" and put it into the SourceResolver.resolve meth

Re: FileWritingTransformer

2002-02-18 Thread Sylvain Wallez
Stefano Mazzocchi wrote: >Jeremy Quinn wrote: > >>>Question 1#: how hard would it be do to >>> >>> >>> >>> ... >>> >>> >>> >>Currently there is a load of code in FileWritingTransformer that is File >>specific, I check for a 'file:' prefix on resolved sources. >> >>I think we would want Sylvain

Re: FileWritingTransformer

2002-02-18 Thread Michael Hartle
Bert Van Kets wrote: > I can't get the FileWriterTransformer to work in Win2K. Cocoon is > giving me an Internal Server Error: _Could not read resource > file:/C:/tomcat/webapps/cocoon/mount/editor/docs/test1.xml > _. The amount of slashes (file:/ vs. file://) might be of relevance; have yo

Re: FileWritingTransformer

2002-02-18 Thread Bert Van Kets
I can't get the FileWriterTransformer to work in Win2K.  Cocoon is giving me an Internal Server Error: Could not read resource file:/C:/tomcat/webapps/cocoon/mount/editor/docs/test1.xml. The same Cocoon configuration works fine in SuSE Linux 7.3. Does anybody have any idea what could be wrong? Ber

Re: FileWritingTransformer

2002-02-18 Thread Jeremy Quinn
At 12:12 pm +0100 18/2/02, Stefano Mazzocchi wrote: >Jeremy Quinn wrote: >> Whatever generates the 'child' document (the part of the 'parent' document >> that gets written out) will issue the appropriate StartPrefixMapping calls >> for that Fragment, no? >> >> Therefore it is the responsibility of

Re: FileWritingTransformer, locking

2002-02-18 Thread Stefano Mazzocchi
Bertrand Delacretaz wrote: > > On Saturday 16 February 2002 14:27, Jeremy Quinn wrote: > >. . . > > I suspect I ought to be Serialising into a temporary file and > > replacing the original only after everything has worked. > > Makes sense, AFAIK renaming a file is an atomic operation on all > cu

Re: FileWritingTransformer

2002-02-18 Thread Stefano Mazzocchi
Jeremy Quinn wrote: > >I would filter them out before saving and forget about it. > > I think there could be a simple solution . > > At the moment, I cache StartPrefixMapping calls from the 'parent' document, > so I can send them to the 'child' document when it starts up. > > I think this

Re: FileWritingTransformer, locking

2002-02-18 Thread Bertrand Delacretaz
On Monday 18 February 2002 11:37, Jeremy Quinn wrote: >. . . > While I am working out how to do this the right way, I'll fix the > Transformer so that it writes to a temporary file as above, and if > another person attempts to simultaneously overwrite, I can just throw > an Excpetion and have them

Re: FileWritingTransformer, locking

2002-02-18 Thread Jeremy Quinn
At 8:15 am +0100 18/2/02, Bertrand Delacretaz wrote: Thanks for your reply, Bertrand, >On Saturday 16 February 2002 14:27, Jeremy Quinn wrote: >>. . . >> I suspect I ought to be Serialising into a temporary file and >> replacing the original only after everything has worked. > >Makes sense, AFAI

Re: FileWritingTransformer, locking

2002-02-17 Thread Bertrand Delacretaz
On Saturday 16 February 2002 14:27, Jeremy Quinn wrote: >. . . > I suspect I ought to be Serialising into a temporary file and > replacing the original only after everything has worked. Makes sense, AFAIK renaming a file is an atomic operation on all current OSes. >. . . > How do I block the pr

Re: FileWritingTransformer

2002-02-16 Thread Jeremy Quinn
At 6:44 pm + 15/2/02, Jeremy Quinn wrote: >At 6:24 pm +0100 15/2/02, Stefano Mazzocchi wrote: >>Jeremy Quinn wrote: >Currently there is a load of code in FileWritingTransformer that is File >specific. I just though of a potential problem with my file handling code. Maybe someone could advis

Re: FileWritingTransformer

2002-02-16 Thread Jeremy Quinn
At 11:53 pm +0100 15/2/02, Stefano Mazzocchi wrote: >Jeremy Quinn wrote: >> Two other issues >> >> I need to make sure the Transformer does not emit more than one 'copy' of >> each namespace prefix, currently multiple sources (FileGenerator & >> XInclude) with multiple copies of the same n

Re: FileWritingTransformer

2002-02-16 Thread Jeremy Quinn
At 11:53 pm +0100 15/2/02, Stefano Mazzocchi wrote: >Jeremy Quinn wrote: > >> >Question 1#: how hard would it be do to >> > >> > >> > >> > ... >> > >> > >> >> Currently there is a load of code in FileWritingTransformer that is File >> specific, I check for a 'file:' prefix on resolved sour

Re: FileWritingTransformer

2002-02-15 Thread Stefano Mazzocchi
Jeremy Quinn wrote: > >Question 1#: how hard would it be do to > > > > > > > > ... > > > > > > Currently there is a load of code in FileWritingTransformer that is File > specific, I check for a 'file:' prefix on resolved sources. > > I think we would want Sylvain's WriteableSource would

RE: FileWritingTransformer

2002-02-15 Thread Vadim Gritsenko
> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] > > At 2:00 pm -0500 15/2/02, Vadim Gritsenko wrote: > >> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] > > > > > > > >> >Question #2: do you check if the element includes *one* > >> >and > >> >only *one* nested element? If not, we could end up wit

RE: FileWritingTransformer

2002-02-15 Thread Jeremy Quinn
At 2:00 pm -0500 15/2/02, Vadim Gritsenko wrote: >> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] > > > >> >Question #2: do you check if the element includes *one* >and >> >only *one* nested element? If not, we could end up with problems >later >> >on. > >Wait, why such a limitation? What if you

RE: FileWritingTransformer

2002-02-15 Thread Vadim Gritsenko
> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] > >Question #2: do you check if the element includes *one* and > >only *one* nested element? If not, we could end up with problems later > >on. Wait, why such a limitation? What if you want to write few files, not one? The result modes of the tr

Re: FileWritingTransformer

2002-02-15 Thread Jeremy Quinn
At 6:24 pm +0100 15/2/02, Stefano Mazzocchi wrote: >Jeremy Quinn wrote: >> >> Dear All, >> >> I reckon I have the FileWritingTransformer and some samples ready for >> others to test. >> >> Would anyone have any objection to me adding them to the scratchpad? > >Absolutely not! I would use it instan

Re: FileWritingTransformer

2002-02-15 Thread Stefano Mazzocchi
Jeremy Quinn wrote: > > Dear All, > > I reckon I have the FileWritingTransformer and some samples ready for > others to test. > > Would anyone have any objection to me adding them to the scratchpad? Absolutely not! I would use it instanstly! > I have chosen an Apache Namespace for it: > >

RE: FileWritingTransformer

2002-02-15 Thread Vadim Gritsenko
> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] > > Dear All, > > I reckon I have the FileWritingTransformer and some samples ready for > others to test. > > Would anyone have any objection to me adding them to the scratchpad? > > I have chosen an Apache Namespace for it: > > xmlns:xfwt