Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 81785 invoked from network); 5 Mar 2000 22:02:09 -0000 Received: from adsl-63-198-47-229.dsl.snfc21.pacbell.net (HELO costin.dnt.ro) (63.198.47.229) by locus.apache.org with SMTP; 5 Mar 2000 22:02:09 -0000 Received: from localhost (costin [63.198.47.229]) by costin.dnt.ro (8.9.3+Sun/8.9.1) with ESMTP id OAA08791 for ; Sun, 5 Mar 2000 14:01:56 -0800 (PST) From: costin@eng.sun.com Date: Sun, 5 Mar 2000 14:04:02 -0800 (PST) X-Sender: costin@costin To: ant-dev@jakarta.apache.org Subject: Re: What flavour of scripting? In-Reply-To: <38C0925E.EE043EDE@apache.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > > 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... Yes, it may not be so easy, but I still think we should use the same rules and semantic for constants, with a different syntax. I was thinking of external entities used for command line parameters or java properties. Like: and using resolveEntity( pubId, systemId) to get the value. But we should listen the xml experts :-), do we have any other trick/magic we can use? Costin