xsl-list
[Top] [All Lists]

Re: [xsl] XSLT 2.0 courses?

2020-09-21 02:02:45
Having been confronted with the terseness of C and Perl, I must confess that I like if ($a) then $a else $b better, even though it may look somewhat silly.

Being verbose sometimes helps readers of your code more than being clever.

Pieter

On 9/21/20 3:34 AM, Pieter Lamers pieter(_dot_)lamers(_at_)benjamins(_dot_)nl 
wrote:
On 19/09/2020 01:54, Liam R. E. Quin liam(_at_)fromoldbooks(_dot_)org wrote:
For those wondering, ($a, $b, $c, ...)[1] returns the first non-empty
non-false item out of $a, $b and $c, so it's a shortcut for
     <xsl:sequence select="if ($a) then $a else $b" />
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>