[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Seek an XPath expression which concatenates an ar
In 4.0 you can use `{$a}{$b}` as an alternative. Michael Kay Saxonica > On 16 Mar 2024, at 02:05, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > On Fri, 2024-03-15 at 14:12 +0000, Martin Honnen martin.honnen@xxxxxx <mailto:martin.honnen@xxxxxx> wrote: >> fold-left(//binary-value, '', function($a, $b) { $a || $b }) >> > A very minor note on this - i usually caution people in the classes i run to include a literal string whenever they use || > > $a || $b || "" > > The reason is human - in JavaScript, C, C++, Perl, Python, bash, awk, many other > languages, || is a boolean operation that mirrors &&, and if you look quickly at an expression you can get very confused. > > liam > > -- > Liam Quin, https://www.delightfulcomputing.com/ > Available for XML/Document/Information Architecture/XSLT/ > XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. > Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org <http://www.fromoldbooks.org/> > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509> (by email <>)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|