ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: antlibs/namespaces
Date Wed, 05 Nov 2003 16:35:29 GMT
On Wed, 5 Nov 2003, Dominique Devienne <DDevienne@lgc.com> wrote:

> This means that if I declare all my namespace prefixes at the top
> level like I do now, I'd have to prefix all nested elements of my
> tasks with the NS prefix?

All except for those that belong to the default namespace (the one
withou a colon after xmlns).

> And what about tasks that takes Ant nested element, like filesets? 

Depends on what your default namespace is.  Unless you change it, Ant
will use it's own namespace as default, so you don't have to prefix
it.

> And what about an Ant task (say <dummy>) with a AddXyz(Xyz xyz)
> method, and I have an <my:xyz> in my AntLib that extends Xyz? Should
> I be able to say:
> 
> <dummy>
>   <my:xyz ... />
> </dummy>
> 
> And thus get limited polymorphism?

Yes.

Stefan
-- 
http://stefanbodewig.blogger.de/

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


Mime
View raw message