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 24306 invoked from network); 13 Dec 2000 18:54:27 -0000 Received: from femail4.sdc1.sfba.home.com (24.0.95.84) by locus.apache.org with SMTP; 13 Dec 2000 18:54:27 -0000 Received: from alsatian ([24.18.23.12]) by femail4.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20001213185238.OLMQ8175.femail4.sdc1.sfba.home.com@alsatian> for ; Wed, 13 Dec 2000 10:52:38 -0800 Message-ID: <0dcd01c06536$1ab765c0$020a0a0a@alsatian> From: "Jason Rosenberg" To: References: <0ce601c064e1$f906de50$020a0a0a@alsatian><0d2301c064fa$ed6143b0$020a0a0a@alsatian> Subject: Re: Expanding ${} constructs for all attributes Date: Wed, 13 Dec 2000 13:52:33 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Forgive me. Perhaps at this point I am not yet ready to participate on ant-dev, and should limit myself to ant-user... But, I am not clear on what I should look into exactly based on your suggestions there. Is this something I alternately configure with respect to the sax parser jars I am using? Where is the ProjectHelper.RootHandler code located, and are you suggesting that this would be code that I should modify? Are you talking about modifying Ant itself, or are you talking about modifying my use of Ant on a configuration level? Jason ----- Original Message ----- From: "Stefan Bodewig" To: Sent: Wednesday, December 13, 2000 7:31 AM Subject: Re: Expanding ${} constructs for all attributes > Jason Rosenberg wrote: > > > Can you describe this EntityResolver. At the very least, > > I'd like to know if this is something I can use.... > > An EntityResolver is responsible for finding an external entity based > on the public or system ID the user has specified - see the SAX API. > > ProjectHelper.RootHandler implements an EntityResolver that resolves > relative file:// URLs as being relative to the project's basedir > instead of the current working directory of the JVM (which is the > parser's default). > > One could plug property expansion in there, basically by invoking > replaceProperties on the systemId before using it. > > > In general, it would be good if the entity would just be > > inserted as CDATA, and then it would parse the inserted > > data as if it were there initially. > > This is what the parser does, all Ant does is pointing the parser to > the right file. Ant doesn't know the difference between XML data from > the original document and data coming from an external entity. > > Stefan