peter reilly wrote:

\>> > example:
>> >     <typedef myfileset mypath anttest etc ..>
>> >     <copy todir="output">
>> >       <fileset ant-type="myfileset" dir="src"
>> >                   newattribute="MyFileSet attribute"/>
>> >     </copy>
>> >
>> >     <anttest>
>> >       <path ant-type="mypath" path="build.xml"
>> >                 newattribute="MyPath attribute"/>
>> >     </anttest>
>>
>> I assume you meant to write "ant:type" instead of "ant-type"...
> 
> No...
> Ant does not have the infrastructure at the moment to support XML
> namespaces, and their associated contexts.

AFAIK ant _does_ have now the infrastructure to support and use 
XML namespaces.

It is not using it - because we don't know yet what's the best way 
to do it, but AFAIK the infrastructure exists.

ProjectHelper2 uses SAX2, it preserves namespaces in UnknownElement and
the code for creation of tasks/types (ComponentHelper) receives the
namespace and the name. CH allows plugins - i.e. any task can hook 
into the component creation and provide it's own mechanism, so you 
should be able to implement whatever namespace policy you want.
 

Costin

Reply via email to