Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 79035 invoked from network); 6 Sep 2002 12:11:37 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Sep 2002 12:11:37 -0000 Received: (qmail 6696 invoked by uid 97); 6 Sep 2002 12:12:07 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 6678 invoked by uid 97); 6 Sep 2002 12:12:06 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 6666 invoked by uid 98); 6 Sep 2002 12:12:06 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <36E996B162DAD111B6AF0000F879AD1A76BF9A@nts_par1.paranor.ch> From: "Wannheden, Knut" To: 'Ant Developers List' Subject: RE: xml namespace support in ant2 Date: Fri, 6 Sep 2002 12:20:19 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2558F.0097786A" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2558F.0097786A Content-Type: text/plain; charset="iso-8859-1" > > Other than that you still have to decide on a schema > language to use. I > > would argue that RELAX NG would be the most suitable for > this kind of stuff. > > But I'm not an expert on this, so maybe someone will disagree. > > For this, DTD is not usable, Schema is possible, but many agree that > RELAX NG is the best... if only I knew what it is ;-) > Take a look at the excellent RELAX NG Tutorial (http://www.oasis-open.org/committees/relax-ng/tutorial-20011203.html). Just to give you an idea, here is the (complete?) grammar I wrote for (using an XML namespace): ant:include ant:includesfile ant:exclude ant:excludesfile Since RNG is very flexible you can write an equivalent grammar in many different ways. Just a matter of style and taste. To play around with RELAX NG I suggest you download Sun's MSV (http://wwws.sun.com/software/xml/developers/multischema/). Cheers, -- knut ------_=_NextPart_001_01C2558F.0097786A--