|
Subject: Re: [xsl] testing parameter type From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 10 Aug 2026 12:40:42 -0000 |
On Sun, Aug 09, 2026 at 02:44:13AM +0000, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx scripsit:
> On Sat, 8 Aug 2026 23:38:59 -0000
> "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
> wrote:
> [...]
> > will work; the string doesn't default to being a document node now
> > that the param is typed.
>
> In XQuery you could use typeswitch. In XSLT/XPath, i think instance of
> is about the best you can do, and is at least reasonably clear.
>
> I think iC"BBd be more likely to have a separate param used only if the
> first one is not supplied, though.
Separate parameters hadn't occurred to me, but of course every parameter
to a stylesheet does not need to be supplied.
Thank you!
--
Graydon Saunders | graydonish@xxxxxxxxxxxx
CBCB&s oferCB)ode, CB0isses swCB! mCB&g.
-- Deor ("That passed, so may this.")
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] testing parameter type, Graydon graydon@xxxx | Thread | [xsl] An international organization, Wendell Piez wapiez@ |
| [xsl] An international organization, Wendell Piez wapiez@ | Date | Re: [xsl] testing parameter type, Graydon graydon@xxxx |
| Month |