ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Wolfgang Hujer <>
Subject Re: [PATCH] Patch for TraXLiaison to allow for easier overriding
Date Sun, 03 Nov 2002 21:49:46 GMT
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"
I have taken a look at the site you cited.

  when .test "$count > 1"
    call "by-columns" ("column-count":"$count")
      "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 choose 
section? By indention? Geee! People already hate make!

I'd rather like to write:

if ($count > 1) {
  call by-columns(column-count=$count);
} else {
  <para> {
    "No columns";


if ($count > 1)
  call by-columns(column-count=$count);
  <para>"No columns";

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

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 <xsl:text/> 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.

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

But the idea is great.

Christian Wolfgang Hujer
Geschäftsführender Gesellschafter
Telefon: +49  (0)89  27 37 04 37
Telefax: +49  (0)89  27 37 04 39

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

View raw message