On Monday 17 November 2003 17:01, Dominique Devienne wrote:
> > From: peter reilly [mailto:[EMAIL PROTECTED]
> >
> > Yes, this is std xml (not visible from ant processing code):
> >
> > <project xmlns:antcontrib="antlib:net.sf.antcontrib"
> > xmlns:ant="antlib:org.apache.tools.ant"
> > xmlns:acme="antlib:org.acme.anttasks">
> > <target name="show">
> > <if xmlns="antlib:net.sf.antcontrib">
> > <or>
> > <equals arg1="yes" arg2="${prop}"/>
> > <acme:fileready file="${file}"/>
> > </or>
> > <then>
> > <ant:echo>The arguments are equal</ant:echo>
> > </then>
> > </if>
> > </target>
> > </project>
>
> So the NS for <project> and <target> does not matter?
> Conceptually they are part of the Ant XML dialect to me,
> so seeing them in no namespace at all seems weird??? --DD
If no namespace uri is picked for the empty prefix, it is up
to the processor to pick one, in ant's case this is
antlib:org.apache.tools.ant.
The above can also be written:
<ant:project xmlns:antcontrib="antlib:net.sf.antcontrib"
xmlns:ant="antlib:org.apache.tools.ant"
xmlns:acme="antlib:org.acme.anttasks">
<ant:target name="show">
<if xmlns="antlib:net.sf.antcontrib">
<or>
<equals arg1="yes" arg2="${prop}"/>
<acme:fileready file="${file}"/>
</or>
<then>
<ant:echo>The arguments are equal</ant:echo>
</then>
</if>
</ant:target>
</ant:project>
Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]