Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 56937 invoked from network); 22 Jun 2007 04:26:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2007 04:26:57 -0000 Received: (qmail 6524 invoked by uid 500); 22 Jun 2007 04:27:00 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 6340 invoked by uid 500); 22 Jun 2007 04:27:00 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 6329 invoked by uid 99); 22 Jun 2007 04:27:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2007 21:27:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [88.84.142.181] (HELO samaflost.de) (88.84.142.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2007 21:26:55 -0700 Received: from localhost (unknown [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 1059E1178460A for ; Fri, 22 Jun 2007 04:26:34 +0000 (UTC) Received: from samaflost.de ([127.0.0.1]) by localhost (v30161.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07736-02 for ; Fri, 22 Jun 2007 06:26:32 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 2525) id 679E511784626; Fri, 22 Jun 2007 06:26:32 +0200 (CEST) To: dev@ant.apache.org Subject: Re: xinclude for ant? X-Draft-From: ("nnfolder:mail.jakarta-ant" 81035) References: <255d8d690706201524l47057f8u47fd8d60fc9d7a19@mail.gmail.com> From: Stefan Bodewig Date: Fri, 22 Jun 2007 06:26:32 +0200 In-Reply-To: (Peter Reilly's message of "Wed, 20 Jun 2007 23:46:32 +0100") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at samaflost.de X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 20 Jun 2007, Peter Reilly wrote: > On 6/20/07, Dominique Devienne wrote: >> On 6/20/07, Peter Reilly wrote: >> > I have just realized that xinclude can be enabled easily using >> > JAXPUtils: >> > + nsParserFactory.setXIncludeAware(true); >> >> Cool, but the Javadoc says @since 1.5, so you'd have to use >> reflection. > > No problem. Alternatively, I think that we can use the feature > setting method to enable it: > http://xerces.apache.org/xerces2-j/features.html#xinclude Peter I don't think we should use the feature since other parsers are likely to not recognize it. +1 for reflection. >> > I can see problems :- the inclusion is at the xml level and ant >> > does not know about the included file (ant does not get SAX >> > events on about the inclusion), so that any errors in the >> > included file will be reported at the includer line. This means >> > that it is not user friendly. >> >> I don't think that's a big deal for whoever uses XInclude. +1. If you use xinclude you should be able to deal with it. We should document the issue, though. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org