Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 96743 invoked by uid 500); 12 Jun 2001 05:41:01 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 96724 invoked from network); 12 Jun 2001 05:41:00 -0000 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: ant-user@jakarta.apache.org Subject: Re: antstructure task References: <3B1FFC59.B2C78456@milagrosoft.com> <3B20F582.2E1A2994@milagrosoft.com> <3B24E8D1.A9491C9E@milagrosoft.com> From: Stefan Bodewig Date: 12 Jun 2001 07:41:05 +0200 In-Reply-To: Eric Richardson's message of "Mon, 11 Jun 2001 08:50:41 -0700" Message-ID: Lines: 33 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Eric Richardson wrote: > I use emacs with psglms as an XML editor. XEmacs here, but otherwise I know what you are talking about. > That might be a very nice enhancement - just call the parser in > validating mode? The problem with the "DTD" antstructure generates is - it is not a DTD for valid build files. The extensibility of Ant renders this impossible, as DTDs are too restricted. The main problem is, that people writing tasks can define their own nested elements (which is good) and may choose names for these nested elements that have been used in some other context as well (which is not bad, but violates a possible DTD). Take for example. There is an optional task by that name with an element definition like this: and a nested child of which would be The real solution is to switch to XML Schema here. Extending antstructure to support XSD is on the agenda, but I guess it will take some time - as well as it will take time for the tools (including PSGML) to support XSD. Stefan