Frank-Michael B�hle wrote:
>
>  --- Steve Brewin <[EMAIL PROTECTED]> schrieb: > >
> --->
> > Given...
> > <!ENTITY parm1 "red">
> > <!ENTITY parm2 "blue">
> > ...you can use &parm1; anywhere you would have coded
> > "red" and &parm2;
> > anywhere you would have coded "blue".
> >
> > In fact, can do anything that XML allows! See
> > http://www.w3.org/TR/REC-xml#sec-entity-decl and
> > http://www.w3.org/TR/REC-xml#NT-EntityRef for more.
> >
> > -- Steve
> >
> Steve, we misunderstood each other:
> I want to provide every mailet with access to a global
> parameter section. Something like
> <myconf>
>   <parm1>red</parm1>
>   <parm2>blue</parm2>
> </myconf>
>
> Every mailet should gain access to that parms _AND_ I
> want to code it _ONCE_ in the James-config-xml. How
> and where?
> If I use mailet's getInitParameter(parm1), in my
> opinion I have to provide that parms within every
> mailetsection again.

XML allows this. You can define any legal XML string in the entity
declaration. In the case of your parameter section you will have to deal
with escaping < and > as they are parsed as XML tokens without. The link I
included references this, albeit in the obscure language of a specification
document.

Perhaps visiting http://wwww.w3.org and locating a quick tutorial to get up
to speed with XML, using James' config.xml as a test case would help?

-- Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to