|
Subject: Re: [xsl] Seek an XPath expression which concatenates an arbitrary number of strings From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 16 Mar 2024 15:19:47 -0000 |
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 <>)
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Seek an XPath expression , Liam R. E. Quin liam | Thread | Re: [xsl] Seek an XPath expression , Dimitre Novatchev dn |
| Re: [xsl] Seek an XPath expression , Liam R. E. Quin liam | Date | [xsl] Trying to Extract a node with, ohaya ohaya@xxxxxxxx |
| Month |