I'm still really new at XML, so forgive me if this is a stupid suggestion: For entities defined 'externally', e.g. -Dname=value, is it possible for ant to create an XML document to be used in entity resolution and add those entities as external to the build document at runtime?
This seems to solve that small problem. I'd much rather stick to entities for constants, to keep standard XML practices. Is there anything from stopping that being made as a general recommendation in the docs? -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au NetRexx: http://www.multitask.com.au/NetRexx.nsf ----- Forwarded by dIon Gillard/Multitask Consulting/AU on 06/03/2000 09:16 ----- Re: What flavour of scripting? [EMAIL PROTECTED] wrote: > > > > What about this - we remove ${foo} and properties. Use &entity; which is a > > > standard XML construct and defined by W3C. > > > > That's one thing I wanted to change in "my" ant... Why properties when > > entities are soooo much nicer??? :) > > Yes, that's what I want too - I said that 3-4 times during this thread but > it seems there is too much noise. I'm glad I'm not alone ! Heheheheh :) > The only problem used to be that you can't have &java.home; or define new > entities with -Danme=value using normal DOM ( AFAIK ). With SAX is trivial > - DocumentHandler can resolve entities to anything. Nope... There's no standard way for resolving entity references outside the scope of the parser. Do remember that the EntityResolver interface does not resolve entity references, but entities themselves, translating Public+System IDs into InputSources. Probably it's better to stick with the current stuff... Pier -- -------------------------------------------------------------------- - P I E R - stable structure erected over water to allow the docking of seacraft <mailto:[EMAIL PROTECTED]> <http://www.betaversion.org/~pier/> -------------------------------------------------------------------- - ApacheCON Y2K: Come to the official Apache developers conference - -------------------- <http://www.apachecon.com> -------------------- Previous Document (Embe (Embe Next Document dded dded image image moved moved to to file: file: pic15 pic17 589.p 707.p cx) cx) Return to View (Embedded image moved to file: pic09933.pcx)
pic15589.pcx
Description: Paintbrush
pic17707.pcx
Description: Paintbrush
pic09933.pcx
Description: Paintbrush
