ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Moffat <>
Subject Re: [PATCH] Patch for TraXLiaison to allow for easier overriding
Date Sun, 03 Nov 2002 23:07:59 GMT
Christian Wolfgang Hujer wrote:

> Hello Alex,
> Am Sonntag, 3. November 2002 22:01 schrieb Alex Moffat:
> >I maintain XSLTXT which is a compact form for encoding xslt stylesheets
> >( I want to extend the ant "style"


> But: How das XSLTXT detect the end of the para, the otherwise and the 
> choose
> section? By indention? Geee! People already hate make!

But people love Python :) Make's indentation is mainly hated because of 
the fact that it's the special invisible indentation of the tab 
character that's important.

> I'd rather like to write:

> Use {} for blocks and indention doesn't matter.

Discussions of indentation vs {} for marking blocks can go on for ever, 
some like python style and some like perl

> Using ; as simple statement delimiters allows to even omit {} if a block
> contains only one statement. This shortens further.
> "" would not have been neccessary, for what distinction? From Vars? 
> They are
> preceeded with $count already.

> So use "" only for strings as such, like "'blabla'" and  in XSLT or
> 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 = is used for assignment, and : is
> associated with namespaces.

Most of the decisions were made because of the desire to keep things as 
simple as possible for the implementation, and to require as little 
translation in going from xsltxt to xsl and vice versa as possible. 
Certainly other choices could have been made but they would have 
complicated the lexer beyond what I wanted to deal with. For my purposes 
what I have works reasonable well, perhaps I'll revisit the syntax in 
the future and make some of the changes you suggest.

> Anyway I can't use XSLTXT because I already use XSLT 2.0 (saxon 7.2).

I'll probably look at xslt 2.0 in the future.

> But the idea is great.
> Bye

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message