Configuration Preproccesor - Nesting Defines

10 views
Skip to first unread message

jospeh

unread,
Jul 10, 2008, 1:16:58 PM7/10/08
to ccnet-user
Does the preprocessor support nesteing a definition in another
definition?

For example, say I have

<cb:define name="test">
<cb:define name="nested">
<foobar>foobar</foobar>
</cb:define>
</cb:define>

can i now do

<cb:test/>
<cb:nested/>

or will i get an error that nested is not defined?

i have a bizarre error and am wondering if it is because of this

thank you,
jospeh

Ross Patterson

unread,
Jul 11, 2008, 7:22:28 AM7/11/08
to ccnet...@googlegroups.com
Jospeh writes:
>Does the preprocessor support nesteing a definition in another
>definition?

No, it doesn't.

Ross
________________________________

Ross A. Patterson, CISSP
VP, Products
Office: (703) 390-0865
FAX: (703) 390-0899
RPatt...@qknow.com

Q.Know Technologies, Inc.
11600 Sunrise Valley Drive
Suite 300
Reston, VA 20191
www.qknow.com

Jeremy Lew

unread,
Jul 11, 2008, 8:06:11 AM7/11/08
to ccnet-user
It does support nesting, but not in the way Joseph wants. The scope of
the nested definition is limited to inside the outer definition. i.e.
this is legal:

<cb:define name="foo">
<cb:define name="bar">Hello</cb:define>
<cb:bar/> <!-- ok, bar is defined in this scope -->
</cb:define>

<cb:foo/> <!-- ok -->
<cb:bar/> <!-- undefined -->

On Jul 11, 7:22 am, "Ross Patterson" <RPatter...@qknow.com> wrote:
> Jospeh writes:
> >Does the preprocessor support nesteing a definition in another
> >definition?
>
> No, it doesn't.
>
> Ross
> ________________________________
>
> Ross A. Patterson, CISSP
> VP, Products
> Office:   (703) 390-0865
> FAX:  (703) 390-0899
> RPatter...@qknow.com

Ross Patterson

unread,
Jul 11, 2008, 3:19:15 PM7/11/08
to ccnet...@googlegroups.com
Jeremy Lew writes:
>It does support nesting, but not in the way Joseph wants. The scope of
>the nested definition is limited to inside the outer definition.

Good point. I thought of that after sending my answer, but I couldn't
come up with a good example of how it would be useful.

For those of you who don't follow the ccnet-devel list, Jeremy Lew is
the author of the Release 1.4 Configuration Preprocessor. He took an
interesting problem, produced a powerful solution, and contributed it
back to CCNET for the rest of us to use.

Thanks!

Ross
________________________________

Ross A. Patterson, CISSP
VP, Products
Office: (703) 390-0865
FAX: (703) 390-0899

RPatt...@qknow.com

Chris Howell

unread,
Jul 11, 2008, 4:37:42 PM7/11/08
to ccnet...@googlegroups.com
Just a quick question, Has anyone run CCNet on Linux/Unix and are
they're binaries currently built for such an animal or is that something
I'd have to do myself with the use of Mono or something.

Cheers
Chris

Daniel Hommel

unread,
Jul 11, 2008, 5:07:16 PM7/11/08
to ccnet...@googlegroups.com
Hi Chris,

you should be able to run the server and the webdashboard with the
standard builds (get the zip file).
I've been running it succesfully using mono + apache/mod_mono some time ago.
I might set up a wiki page for that if there is some demand for it.

I hope this helps.

regards,

Daniel

Reply all
Reply to author
Forward
0 new messages