On Tue, 2002-10-01 at 10:16, Peter Royal wrote: > On Tuesday, October 1, 2002, at 10:06 AM, Jason van Zyl wrote: > > Ok, I have something like this: > > > > <rendererConfiguration> > > <properties> > > <property name="x" value="y"/> > > <!-- Add more properties here --> > > </properties> > > </rendererConfiguration> > > > > I want to add more <property/> elements. Know off hand how to do that? > > You can use the ConfigurationMerger > (http://jakarta.apache.org/avalon/excalibur/configuration/ > configuration-merger.html). > > The "base" would be what you have there, and then you could merge in a > "layer" ala > > <rendererConfiguration excalibur-configuration:merge="true"> > <properties excalibur-configuration:merge="true" > > <property name="a" value="b"/> > <property name="c" value="d"/> > </properties> > </rendererConfiguration> > > and you would get > > <rendererConfiguration> > <properties> > <property name="x" value="y"/> > <property name="a" value="b"/> > <property name="c" value="d"/> > </properties> > </rendererConfiguration> > > > .... You could create the layer dynamically at runtime. The > excalibur-configuration attributes are metadata that the merger uses to > know whether or not to merge those elements from the base and layer, or > or include both.
If it wouldn't be too much to ask do you think you could give me a snippet of code? > -pete > -- > peter royal -> [EMAIL PROTECTED] > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- jvz. Jason van Zyl [EMAIL PROTECTED] http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>