On Mon, Nov 12, 2001 at 08:52:47AM -0500, Berin Loritsch wrote: > Jeff Turner wrote: > > > > On Fri, Nov 09, 2001 at 05:56:08PM -0600, Michael McKibben wrote: > > > > > > I was under the impression after reading the w3 namespace spec that the > > > prefix is only used for selecting the namespace URI. The URI + localpart > > > is what determines equality, correct? > > > > I think so. In that case, m_validatePrefix ought to default to false, > > not true. > > > > Btw, I think DefaultConfiguration is missing two methods: > > > > public void setNamespace(Namespace ns); > > public void setAttribute(Namespace ns, String name, String value); > > > > Without these, one cannot add namespace-prefixed attributes. > > We decided that namespace prefixed attributes are not a good pattern for > configuration files. The reason is that the namespaced attribute does not > belong to the configuration tree in question.
Righto. Though I gather Peter wants to use Configurations to represent Ant2 build trees, and might need nsprefixed attributes for "aspects": <target name="namespace-test"> <!-- ant and doc are built in namespaces --> <echo ant:fail-on-error="true" message="Some random message"> <doc:description> Test case for aspects </doc:description> <ant:some-element some-attribute="blah"/> </echo> <!-- load facility for blee: namespace --> <facility namespace="blee"> <noop/> </facility> <echo blee:some-param="blah" message="Blee namespace test successful!"/> </target> (Taken from jakarta-ant/proposal/myrmidon/src/make/sample.ant) But I don't follow ant-dev closely, and I've likely misunderstood something. --Jeff -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>