ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Genter" <rgen...@silverlink.com>
Subject RE: <xmlproperty> intra-element attribute property resolution issue
Date Mon, 22 Jan 2007 23:22:10 GMT
> -----Original Message-----
> From: Jacob Kjome [mailto:hoju@visi.com] 
> Sent: Monday, January 22, 2007 3:13 PM
> To: Ant Users List
> Subject: Re: <xmlproperty> intra-element attribute property 
> resolution issue
> 
> 
> I think Brian is correct.  XML attributes have no defined 
> order other than the
> obvious alphabetical order, which might be an implementation 
> detail.  Even so,
> I wonder if logic could be written to maximize resolution.  
> If a property is
> found to not be resolved, it could be deferred until other 
> attributes are
> processed.  If after all attributes are processed, a property 
> is still not
> resolved, then so be it.  But it would make sense to try.  If 
> it were to pose a
> performance issue, it could be an option of XMLProperty 
> defaulting to 'false'. 
> I'm not sure how complex the logic might be, but I would 
> think it's doable.
> 
> Jake

It's not a solvable problem. How do you resolve this:

<element a="${element.b}" b="${element.a}"/>

?

--
Rick Genter
Principal Software Engineer
Silverlink Communications
<mailto:rgenter@silverlink.com> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message