In particular a uri is not a namespace prefix. One needs
to map a prefix to a uri using the xmlns attribute.
<project name="test" xmlns:me="x.y.z">
<macrodef name="sample" uri="x.y.z">
<sequential>
<echo>Hello world</echo>
</sequential>
</macrodef>
<me:sample/>
</project>
Peter
On 6/8/06, Scot P. Floess <floess@mindspring.com> wrote:
>
> OK, someone feel free to kick me and call me a newbie!
>
> I found my problem... I didn't define the namespace in the <project>
>
> Regardless...disregard!
>
> Scot P. Floess wrote:
> > I am trying to find some examples using a uri on macrodef...
> >
> > My assumption was, if I used a uri, I could use that to prefix using
> > the macrodef itself...
> >
> > For instance:
> >
> > <macrodef name = "foo" uri = "bar">
> > ...
> > </macrodef>
> >
> > ...
> >
> > <bar:foo/>
> >
> > But that does not seem to work (as in I get an error)...
> >
> > I found a link regarding this as being a bug but couldn't find any
> > additional information.
> >
> > I am guessing that (hopefully), I am using the uri attribute
> > incorrectly. Again, I did some searching but did not find any real
> > examples regarding macrodef.
> >
> > Any and all help is -greatly- appreciated!
> >
> > Scot
> >
>
> --
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC 27549
>
> 252-478-8087 (Home)
> 919-754-4592 (Work)
>
> Chief Architect JPlate http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
|