Re: [xsl] Checking if a variable has a value

Subject: Re: [xsl] Checking if a variable has a value
From: "John Lumley john@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 31 Aug 2022 09:19:43 -0000
> On 31 Aug 2022, at 02:27, Mark Giffin m1879@xxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> When the variable has no value, the following is output instead of nothing:
> git hash: ${git-hash}

This suggests that the problem might lie upstream, as it looks as if youbre
using some exterior substitution mechanism which is leaving the interpolation
statement as the value of the parameter in the case when a value for
bgit-hashb isnbt available. Saxon certainly wouldnbt interpolate the
name of an XSLT variable into a message output unless it had been included
explicitlyb&.

John Lumley

Current Thread