| Newsgroups |
gmane.text.xml.xsl.general.mulberrytech |
| Message-ID |
<[email protected]> |
I can't see what's wrong at this stage, but that's probably because I'm not=
sure exactly what your code looks like after a series of changes.
Clearly the "called" stylesheet isn't picking up the supplied value for the=
parameter. I can't see why, but I would look carefully at the rather weird=
namespace that it's using.
Michael Kay
Saxonica
> On 14 May 2021, at 14:28, Graydon [email protected] <xsl-list-service@lis=
ts.mulberrytech.com> wrote:
>=20
> On Fri, May 14, 2021 at 01:05:31PM -0000, Michael Kay [email protected] s=
cripsit:
>> You're calling <xsl:sequence select=3D"local:tiny('away')" />, but there=
is no function named local:tiny in scope. What there is is a variable (par=
ameter) named local:tiny, whose value is a function. So you need a dynamic =
call on the function held in the variable, not a static call on a function =
named local:tiny(). That is, you need=20
>>=20
>> <xsl:sequence select=3D"$local:tiny('away')" />
>=20
> I do, but that shifts the error to the xsl:param:
>=20
> <xsl:param as=3D"function(xs:string) as text()" name=3D"local:tiny" />
>=20
> give the error:
>=20
> A value must be supplied for parameter $local:tiny because there is no de=
fault value for the required type
>=20
> As noted to Martin, sticking an anonymous function in the select appears
> to override the function being passed. And would get really complicated
> if this was a real function, so I am still baffled.
>=20
> Static params -- $DEBUG -- allows setting "no" by default and having the
> passed value override it, so I'm surprised.
>=20
> --=20
> Graydon Saunders | [email protected]
> =C3=9E=C3=A6s ofer=C3=A9ode, =C3=B0isses sw=C3=A1 m=C3=A6g.
> -- Deor ("That passed, so may this.")
>=20
>=20
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--