> > <macrodef name="macro"> > > <attribute name="one"/> > > <attribute name="two" default="${one}"/> > > </macrodef> > > <macro one="hello"/> > > I don't think we should need any special cludges just to support this > usecase. 8-) > > Give two a completely bogus, impossible to be used in any real world > usage value and check for that. Should be easier than comparing it to > a literal ${one} or @one or whathever. > > <macrodef name="macro"> > <attribute name="one"/> > <attribute name="two" > > default="nobody-with-a-sane-mind-would-ever-want-to-use-this-value"/> > </macrodef>
Nice idea - usually such nice words donīt come into my mind when Iīm programming :-) But the string comparison would be easier. Jan