Hello! I have some problem with preprocessor. I have defined some xml block (someXmlBlock), in which I use a variable (variable1). I need to use this block several times, but I need to replace a variable by different xml blocks. So I need to use scope-tag, but it can only define text constants, not xml blocks. I don't know how to describe xml block inside scope-tag, so i used define before (for "block1"). CCValidator failes on this with an Exception, that "block1" is not a text constant. So I have written a small patch, which allows for scope-tag to define xml blocks. I have attached this patch file (scope.patch). Please check this patch and I hope that it will be accepted. Please write me some answer. Best regards, Vsevolod.
On Fri, Feb 5, 2010 at 4:46 PM, Vsevolod <seva....@gmail.com> wrote: > Hello! > I have some problem with preprocessor. I have defined some xml block > (someXmlBlock), in which I use a variable (variable1). > I need to use this block several times, but I need to replace a > variable by different xml blocks. > So I need to use scope-tag, but it can only define text constants, not > xml blocks. > I don't know how to describe xml block inside scope-tag, so i used > define before (for "block1"). > CCValidator failes on this with an Exception, that "block1" is not a > text constant. > So I have written a small patch, which allows for scope-tag to define > xml blocks. I have attached this patch file (scope.patch). > Please check this patch and I hope that it will be accepted. Please > write me some answer. > Best regards, Vsevolod.
On Fri, Feb 5, 2010 at 4:46 PM, Vsevolod <seva....@gmail.com> wrote: > Hello! > I have some problem with preprocessor. I have defined some xml block > (someXmlBlock), in which I use a variable (variable1). > I need to use this block several times, but I need to replace a > variable by different xml blocks. > So I need to use scope-tag, but it can only define text constants, not > xml blocks. > I don't know how to describe xml block inside scope-tag, so i used > define before (for "block1"). > CCValidator failes on this with an Exception, that "block1" is not a > text constant. > So I have written a small patch, which allows for scope-tag to define > xml blocks. I have attached this patch file (scope.patch). > Please check this patch and I hope that it will be accepted. Please > write me some answer. > Best regards, Vsevolod.
The first alternative failes with the same exception, but the second is working. Thank you very much.
But I think that this bug should be fixed because of exception, which is not normal behavior of an application. I think that my patch can be useful.
From: ccnet-devel@googlegroups.com [mailto:ccnet-devel@googlegroups.com] On Behalf Of jeremy lew Sent: Monday, February 08, 2010 4:14 PM To: ccnet-devel@googlegroups.com Subject: Re: [ccnet-devel] Preprocessor
On Fri, Feb 5, 2010 at 4:46 PM, Vsevolod <seva....@gmail.com> wrote:
Hello! I have some problem with preprocessor. I have defined some xml block (someXmlBlock), in which I use a variable (variable1). I need to use this block several times, but I need to replace a variable by different xml blocks. So I need to use scope-tag, but it can only define text constants, not xml blocks. I don't know how to describe xml block inside scope-tag, so i used define before (for "block1"). CCValidator failes on this with an Exception, that "block1" is not a text constant. So I have written a small patch, which allows for scope-tag to define xml blocks. I have attached this patch file (scope.patch). Please check this patch and I hope that it will be accepted. Please write me some answer. Best regards, Vsevolod.
On Fri, Feb 5, 2010 at 10:46 PM, Vsevolod <seva....@gmail.com> wrote: > Hello! > I have some problem with preprocessor. I have defined some xml block > (someXmlBlock), in which I use a variable (variable1). > I need to use this block several times, but I need to replace a > variable by different xml blocks. > So I need to use scope-tag, but it can only define text constants, not > xml blocks. > I don't know how to describe xml block inside scope-tag, so i used > define before (for "block1"). > CCValidator failes on this with an Exception, that "block1" is not a > text constant. > So I have written a small patch, which allows for scope-tag to define > xml blocks. I have attached this patch file (scope.patch). > Please check this patch and I hope that it will be accepted. Please > write me some answer. > Best regards, Vsevolod.
I agree, and my curren version of the preprocessor (which I maintain outside of CCNET) doesn't have this problem and adds a bunch of new features besides. Unfortunately, I have moved on to VS2008/.NET 3.X, and I don't think the current CCNET codebase has made it that far yet.
On Mon, Feb 8, 2010 at 4:55 PM, Vsevolod Ivanov <seva....@gmail.com> wrote: > The first alternative failes with the same exception, but the second is > working. Thank you very much.
> But I think that this bug should be fixed because of exception, which is > not normal behavior of an application. I think that my patch can be useful.
> On Fri, Feb 5, 2010 at 4:46 PM, Vsevolod <seva....@gmail.com> wrote:
> Hello! > I have some problem with preprocessor. I have defined some xml block > (someXmlBlock), in which I use a variable (variable1). > I need to use this block several times, but I need to replace a > variable by different xml blocks. > So I need to use scope-tag, but it can only define text constants, not > xml blocks. > I don't know how to describe xml block inside scope-tag, so i used > define before (for "block1"). > CCValidator failes on this with an Exception, that "block1" is not a > text constant. > So I have written a small patch, which allows for scope-tag to define > xml blocks. I have attached this patch file (scope.patch). > Please check this patch and I hope that it will be accepted. Please > write me some answer. > Best regards, Vsevolod.
> I agree, and my curren version of the preprocessor (which I maintain > outside of CCNET) doesn't have this problem and adds a bunch of new > features besides. Unfortunately, I have moved on to VS2008/.NET 3.X, > and I don't think the current CCNET codebase has made it that far yet.
I happily implemented my last patch for CCNET with vs2008, please specify the problems you ran into!
-----Original Message----- From: ccnet-devel@googlegroups.com [mailto:ccnet-devel@googlegroups.com] On
Behalf Of David Schmitt Sent: Friday, February 12, 2010 9:19 AM To: ccnet-devel@googlegroups.com Subject: Re: [ccnet-devel] Preprocessor
Am 12.02.2010 14:41, schrieb jeremy lew: > I agree, and my curren version of the preprocessor (which I maintain > outside of CCNET) doesn't have this problem and adds a bunch of new > features besides. Unfortunately, I have moved on to VS2008/.NET 3.X, > and I don't think the current CCNET codebase has made it that far yet.
I happily implemented my last patch for CCNET with vs2008, please specify the problems you ran into!