List of stylesheet parameters?

Graydon Saunders <[email protected]> Wed, 17 Nov 2021 14:15:03 -0500
Newsgroups gmane.text.xml.saxon.help
Message-ID <CAO3ciQGSxXcMrrDni32PiDE3Y8xeeGwC1eGqrPLWNHV_B7cOPA@mail.gmail.com>
--===============7328319531443884663==
Content-Type: multipart/alternative; boundary="00000000000096982905d100dc2f"

--00000000000096982905d100dc2f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello!

I am pretty sure there isn't a way to do this, but maybe I'm wrong.

In current Saxon -- 10.* -- using XSLT 3.0, is there some way to get a list
of the stylesheet parameters?

The intent is to then check that they all have values assigned, since one
of the ways the "call this stylesheet" step of the processing chain fails
is "oops, that needs a value".  There's an extension function,
saxon:tunnel-params(), that would be just the thing if it were
saxon:in-scope-params().

(If not, an explicit list of parameters will work.  I am hoping for a more
elegant solution.)

Thanks!

---
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.")

--00000000000096982905d100dc2f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">Hel=
lo!<br></div><div class=3D"gmail_default" style=3D"font-size:small"><br></d=
iv><div class=3D"gmail_default" style=3D"font-size:small">I am pretty sure =
there isn&#39;t a way to do this, but maybe I&#39;m wrong.</div><div class=
=3D"gmail_default" style=3D"font-size:small"><br></div><div class=3D"gmail_=
default" style=3D"font-size:small">In current Saxon -- 10.* -- using XSLT 3=
.0, is there some way to get a list of the stylesheet parameters?=C2=A0=C2=
=A0</div><div class=3D"gmail_default" style=3D"font-size:small"><br></div><=
div class=3D"gmail_default" style=3D"font-size:small">The intent is to then=
 check that they all have values assigned, since one of the ways the &quot;=
call this stylesheet&quot; step of the processing chain fails is &quot;oops=
, that needs a value&quot;.=C2=A0 There&#39;s an extension function, saxon:=
tunnel-params(), that would be just the thing if it were saxon:in-scope-par=
ams().</div><div class=3D"gmail_default" style=3D"font-size:small"><br></di=
v><div class=3D"gmail_default" style=3D"font-size:small">(If not, an explic=
it list of parameters will work.=C2=A0 I am hoping for a more elegant solut=
ion.)</div><div class=3D"gmail_default" style=3D"font-size:small"><br></div=
><div class=3D"gmail_default" style=3D"font-size:small">Thanks!</div><div c=
lass=3D"gmail_default" style=3D"font-size:small"><br></div><div class=3D"gm=
ail_default" style=3D"font-size:small">---<br>Graydon Saunders =C2=A0| <a h=
ref=3D"mailto:[email protected]">[email protected]</a><br>=C3=9E=C3=
=A6s ofer=C3=A9ode, =C3=B0isses sw=C3=A1 m=C3=A6g.<br>-- Deor =C2=A0(&quot;=
That passed, so may this.&quot;)<br></div></div>

--00000000000096982905d100dc2f--


--===============7328319531443884663==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7328319531443884663==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
--===============7328319531443884663==--