DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37286>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37286





------- Additional Comments From [EMAIL PROTECTED]  2005-10-28 21:57 -------
I've thought about this a little more:

1. First get macrodef and taskdef to actually propagate the namespace down to de
nova attributes and elements.

2. Allow the attributes and elements in the *def body to be able to referred to
with the namespace prefix that had been previously mapped.  For instance:

<project
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:foo="http://www.foo.com/ant"; >

...

<target name="-init-macrodef-javac" depends="-init">
        <macrodef name="javac" uri="http://www.foo.com/ant";>
                <attribute name="srcdir" default="${src.dir}"/>
                <attribute name="destdir" default="${build.classes.dir.real}"/>
                <attribute name="classpath"
default="${javac.classpath}:${j2ee.platform.classpath}"/>
                <attribute name="debug" default="${javac.debug}"/>
                <element name="customize" optional="true"/>
                <sequential>
                        <javac srcdir="@{srcdir}" destdir="@{destdir}" 
debug="@{debug}"
deprecation="${javac.deprecation}" source="${javac.source}"
target="${javac.target}" includeantruntime="false">
                                <classpath>
                                        <path path="@{classpath}"/>
                                </classpath>
                                <compilerarg line="${javac.compilerargs}"/>
                                <foo:customize/>
                        </javac>
                </sequential>
        </macrodef>
</target>

Not only does this help with schema development, but it also makes things a
little more readable (e.g., easily notice the difference between elements that
are there by original definition and those that were added).

If there is anything I can do (e.g., help code development) to make this happen
ASAP (that is, if is indeed a desirable feature) then I'll be glad to chip in.

Nicole Tedesco
[EMAIL PROTECTED]
[EMAIL PROTECTED]

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to