Gmail Calendar Documents Web Reader more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Preprocessor
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vsevolod  
View profile  
 More options Feb 5, 5:46 pm
From: Vsevolod <seva....@gmail.com>
Date: Fri, 5 Feb 2010 13:46:32 -0800 (PST)
Local: Fri, Feb 5 2010 5:46 pm
Subject: Preprocessor
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.

Simple example:

<cb:define name="block1">
     <someArgument1>
         <someArgument2>
              someValue
         </someArgument2>
     </someArgument1>
</cb:define>

<cb:define name="someXmlBlock">
    <tasks>
             <someTask>
                   <cb:variable1/>
             </someTask>
    </tasks>
</cb:define>

<cb:scope variable1="$(block1)">
    <cb:someXmlBlock/>
</cb:scope>

<cb:scope variable1="someOtherBlock">
    <cb:someXmlBlock/>
</cb:scope>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jeremy lew  
View profile  
 More options Feb 8, 9:11 am
From: jeremy lew <jeremy....@gmail.com>
Date: Mon, 8 Feb 2010 08:11:50 -0500
Local: Mon, Feb 8 2010 9:11 am
Subject: Re: [ccnet-devel] Preprocessor

Have you tried the following syntax alternatives?

<cb:someXmlBlock variable1="someotherBlock />
(this may have the same problem, I'm not sure)

and

<cb:scope>
    <cb:define name="variable1"><cb:someXmlBlock /></cb:define>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jeremy lew  
View profile  
 More options Feb 8, 9:14 am
From: jeremy lew <jeremy....@gmail.com>
Date: Mon, 8 Feb 2010 08:14:01 -0500
Local: Mon, Feb 8 2010 9:14 am
Subject: Re: [ccnet-devel] Preprocessor

Whoops,  I hit send prematurely.

The 2nd alternative is:
<cb:scope>
   <cb:define name="variable1"><cb:block1/></cb:define>
   <cb:someXmlBlock/>
</cb:scope>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vsevolod Ivanov  
View profile  
 More options Feb 8, 5:55 pm
From: "Vsevolod Ivanov" <seva....@gmail.com>
Date: Tue, 9 Feb 2010 00:55:06 +0300
Local: Mon, Feb 8 2010 5:55 pm
Subject: RE: [ccnet-devel] Preprocessor

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

Whoops,  I hit send prematurely.

The 2nd alternative is:

<cb:scope>

   <cb:define name="variable1"><cb:block1/></cb:define>

   <cb:someXmlBlock/>

</cb:scope>

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.

Simple example:

<cb:define name="block1">
    <someArgument1>
        <someArgument2>
             someValue
        </someArgument2>
    </someArgument1>
</cb:define>

<cb:define name="someXmlBlock">
   <tasks>
            <someTask>
                  <cb:variable1/>
            </someTask>
   </tasks>
</cb:define>

<cb:scope variable1="$(block1)">
   <cb:someXmlBlock/>
</cb:scope>

<cb:scope variable1="someOtherBlock">
   <cb:someXmlBlock/>
</cb:scope>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christophe Planty  
View profile  
 More options Feb 8, 5:37 am
From: Christophe Planty <christophe.pla...@gmail.com>
Date: Mon, 8 Feb 2010 10:37:00 +0100
Subject: Re: [ccnet-devel] Preprocessor

Would be a nice feature,
I needed to define blocks also , and used this workaround :

save blocks in different files ( ex block1.xml , block2.xml)
then include them, their name is defined by a variable :

<cb:include href="$(BlockNameVariable).xml" />

Then i could switch blocks using variable:

<cb:scope BlockNameVariable="block1" > ...

The constraint is it makes lots of small files containing blocks.
/Chris


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jeremy lew  
View profile  
 More options Feb 12, 9:41 am
From: jeremy lew <jeremy....@gmail.com>
Date: Fri, 12 Feb 2010 08:41:33 -0500
Local: Fri, Feb 12 2010 9:41 am
Subject: Re: [ccnet-devel] Preprocessor

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.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Schmitt  
View profile  
 More options Feb 12, 10:19 am
From: David Schmitt <da...@dasz.at>
Date: Fri, 12 Feb 2010 15:19:25 +0100
Local: Fri, Feb 12 2010 10:19 am
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!

Regards, David Schmitt

--
dasz.at OG              Tel: +43 (0)664 2602670     Web: http://dasz.at
Klosterneuburg                                         UID: ATU64260999

        FB-Nr.: FN 309285 g          FB-Gericht: LG Korneuburg


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Lew  
View profile  
 More options Feb 12, 10:25 am
From: "Jeremy Lew" <jeremy....@gmail.com>
Date: Fri, 12 Feb 2010 09:25:58 -0500
Local: Fri, Feb 12 2010 10:25 am
Subject: RE: [ccnet-devel] Preprocessor
I haven't looked lately, but last I knew, it was not permitted to use things
like System.Xml.Linq, which were introduced in .NET 3.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google