From ant-dev-return-39012-qmlist-jakarta-archive-ant-dev=jakarta.apache.org@jakarta.apache.org Sun Nov 03 21:50:34 2002 Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 8085 invoked from network); 3 Nov 2002 21:50:33 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Nov 2002 21:50:33 -0000 Received: (qmail 21246 invoked by uid 97); 3 Nov 2002 21:51:31 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 21230 invoked by uid 97); 3 Nov 2002 21:51:30 -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 21218 invoked by uid 98); 3 Nov 2002 21:51:30 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Content-Type: text/plain; charset="iso-8859-1" From: Christian Wolfgang Hujer Organization: ITCQIS GmbH To: "Ant Developers List" Subject: Re: [PATCH] Patch for TraXLiaison to allow for easier overriding Date: Sun, 3 Nov 2002 22:49:46 +0100 User-Agent: KMail/1.4.3 References: <3DC58EA7.5040606@zanthan.com> In-Reply-To: <3DC58EA7.5040606@zanthan.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211032249.46580.Christian.Hujer@itcqis.com> X-Sender: 320027188944-0001@t-dialin.net X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Alex, Am Sonntag, 3. November 2002 22:01 schrieb Alex Moffat: > I maintain XSLTXT which is a compact form for encoding xslt stylesheets > (http://www.zanthan.com/ajm/xsltxt/). I want to extend the ant "style" I have taken a look at the site you cited. choose when .test "$count > 1" call "by-columns" ("column-count":"$count") otherwise "No columns" Basically, the idea is great. I see fewer sources for typos and not-wellformedness. But: How das XSLTXT detect the end of the para, the otherwise and the cho= ose=20 section? By indention? Geee! People already hate make! I'd rather like to write: if ($count > 1) { call by-columns(column-count=3D$count); } else { { "No columns"; } } or: if ($count > 1) call by-columns(column-count=3D$count); else "No columns"; Use {} for blocks and indention doesn't matter. Using ; as simple statement delimiters allows to even omit {} if a block=20 contains only one statement. This shortens further. "" would not have been neccessary, for what distinction? From Vars? They = are=20 preceeded with $count already. So use "" only for strings as such, like "'blabla'" and in XS= LT or=20 for literal result text nodes. whenever if has an else, choose when otherwise is used instead of if. test is always used for when or if, so it is superflous. Colon for parameters? Usually always =3D is used for assignment, and : is= =20 associated with namespaces. Anyway I can't use XSLTXT because I already use XSLT 2.0 (saxon 7.2). But the idea is great. Bye --=20 ITCQIS GmbH Christian Wolfgang Hujer Gesch=E4ftsf=FChrender Gesellschafter Telefon: +49 (0)89 27 37 04 37 Telefax: +49 (0)89 27 37 04 39 E-Mail: Christian.Hujer@itcqis.com WWW: http://www.itcqis.com/ -- To unsubscribe, e-mail: For additional commands, e-mail: