xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: alternating tags in a list?


Subject: Re: alternating tags in a list?
From: Paul_Tihansky@xxxxxxxxxxxx
Date: Fri, 11 Dec 1998 09:25:16 -0500

--- Guy Murphy wrote: ---
> So you don't need to track state, just obtain index, evaluate a
condition,
> and perform basic arithmetic. You could do this without resorting to
> script, but it would probably be more concise with script. It would IMHO
be
> a pity not to include script for these matters as it would mean bending
the
> simple XSL out of shape to occomodate these rare occurences. Such matters
> are best expressed in a procedural language sniper, ie. a piece of
script.
>
> I've used this method many times when transforming data to HTML via ASP.
>
> Personaly, if W3C doesn't include ECMAScript support in the final Rec
I'll
> be using the non-compliant variety of parser that does :)
>

     I strongly agree!  When the original XSL proposal came out I was using
XSL to create tables with alternating colors for each row by embedding
ECMAScript.  Sadly, the latest XSL does not permit this.  Fortunately,
Microsoft realized the usefulness of this in MSIE5b2.
     I would not propose to add basic arithmetic or evaluation of
conditions to XSL, since it can be done quite elegantly now with
ECMAScript.  So I'll join you in pleading for ECMAScript support in the
final Rec.

Paul



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xsl
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor