Project

Profile

Help

Bug #5673 ยป Re_ [SaxonJS - Bug #5673] (Resolved) ixsl_set-property and URLs in property names - 2022-09-08T09_24_11Z.eml

Martynas Jusevicius, 2022-09-08 11:24

 
X-He-Spam-Score: -1.9
Return-Path: <martynas@atomgraph.com>
Delivered-To: dropbox@plan.io
Received: from m.launch.gmbh ([127.0.0.1])
by m.launch.gmbh with LMTP id AGA3CaW0GWMyRwAAJzdhvw
for <dropbox@plan.io>; Thu, 08 Sep 2022 11:23:49 +0200
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on m.launch.gmbh
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DMARC_NONE,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,
URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Report:
* 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
* blocked. See
* http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
* for more information.
* [URIs: plan.io]
* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at
* https://www.dnswl.org/, no trust
* [209.85.166.49 listed in list.dnswl.org]
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
* [score: 0.0000]
* 0.1 DMARC_NONE DMARC record not found
* -0.1 SPF_PASS SPF check passed
* -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)
* [209.85.166.49 listed in wl.mailspike.net]
* 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
* 0.0 HTML_MESSAGE BODY: HTML included in message
* 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
* valid
* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
* -0.0 T_SCC_BODY_TEXT_LINE No description available.
X-Spam-Score: -1.9
Envelope-to: inbox+saxonica+f38e+saxon-js@plan.io
Authentication-Results: m.launch.gmbh; dmarc=none (p=none dis=none) header.from=atomgraph.com
Authentication-Results: m.launch.gmbh; spf=pass smtp.mailfrom=martynas@atomgraph.com
Authentication-Results: m.launch.gmbh;
dkim=pass (2048-bit key; unprotected) header.d=atomgraph-com.20210112.gappssmtp.com header.i=@atomgraph-com.20210112.gappssmtp.com header.b="E3WPH1mx";
dkim-atps=neutral
Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))
(No client certificate requested)
by m.launch.gmbh (Postfix) with ESMTPS id B3E5287AF2
for <inbox+saxonica+f38e+saxon-js@plan.io>; Thu, 8 Sep 2022 11:23:48 +0200 (CEST)
Received: by mail-io1-f49.google.com with SMTP id 10so13582486iou.2
for <inbox+saxonica+f38e+saxon-js@plan.io>; Thu, 08 Sep 2022 02:23:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=atomgraph-com.20210112.gappssmtp.com; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date;
bh=SKy+YTjhBT9hWlj1qHSImzn5fPjOK0leuU1p2BhUxGs=;
b=E3WPH1mxKNhMOqUuVRYQ4sOSTmRXZsiyC1oGHVZ8JJNX4+30CebK0x3ohuHrSRYcHt
JOCMR7IokMaf5qWS9WLHz4APeJIC7RAsVf/h3rzeN2Bfx2BkMNyU/UrVbqdKTkmIWkJe
X2hMJdvzow8qb0p4vsgRJ7tYNmciXIEIMozLi0tdabJPCwsC3AO2U6VpQCZStLUjN5Hp
3HNmQ7oj3juCWMcmryTHbhbpRiNCTuXwplET70/IVwCtO6TeThbqMdq8fZglzwaBBSig
powIRxfEJWghbKspF8k2qqzYkAvThvV/xCtYgtizrPSLa7TOOKjUMMA+AeQImQWkd76i
tcEw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date;
bh=SKy+YTjhBT9hWlj1qHSImzn5fPjOK0leuU1p2BhUxGs=;
b=Al+gUeX48tT7zIN2yYJclnPcInHkzoUpfB+Zcbdqg5KoU1qdm+IRTYmWg6Hre5omUF
aSeIjOt5cmAgingmoBradlRxkIkHv0ptRyssZPsDjowzvEeGNMCeExEHeHsFluwr0zsa
zsPEV1NbxR1cCzqzmv+W104zivib/V7nu9z56hgB4clLqsqoBuKUZ+PID4UdNITUhBnh
GUWL/DBHWb1RWmpJwGQPzwsa+dfZI7iwLujO44rvznuklKNEUTnVhmny5GPErkuESwdz
fCfs4ea1HqyqduR7lfXE4sJXw12zkTiBOTKSsDiJhQnQGNVd/nmu2VNqw1aPCDK7czPX
3VZA==
X-Gm-Message-State: ACgBeo0fju+vzYDnqwb88vBIE4ZQRfgRM4+Tya9/mK4kmOvpzyRSdfSk
WERpQyqf2Ml6/90urge7gi9GsgXxpXtm10IyDFJAKL5gR/4=
X-Google-Smtp-Source: AA6agR7kW1g469tc278JJHcIHPEiOhO4L9S7IXRyFrndkDwLz5Yawbwc1RWKfzDlWAHRSo6jAqRrvo4VZXZH9op57FQ=
X-Received: by 2002:a05:6638:1352:b0:352:1644:a4e1 with SMTP id
u18-20020a056638135200b003521644a4e1mr4420646jad.202.1662629026662; Thu, 08
Sep 2022 02:23:46 -0700 (PDT)
MIME-Version: 1.0
References: <redmine.issue-5673.20220831175452.3767@plan.io> <redmine.journal-21764.20220907164311.3767@plan.io>
In-Reply-To: <redmine.journal-21764.20220907164311.3767@plan.io>
From: =?UTF-8?Q?Martynas_Jusevi=C4=8Dius?= <martynas@atomgraph.com>
Date: Thu, 8 Sep 2022 11:23:36 +0200
Message-ID: <CAE35VmxxnQU=PUmAg_Zip4Au_6eKWAvqG9f3WMFLxkxZi-epmA@mail.gmail.com>
Subject: Re: [SaxonJS - Bug #5673] (Resolved) ixsl:set-property and URLs in
property names
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon-js@plan.io>
Content-Type: multipart/alternative; boundary="000000000000871d8b05e826fc54"

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

Does that mean a $variable with a property name will have to include
backticks? That=E2=80=99s also slightly awkward :)

On Wed, 7 Sep 2022 at 18.43, Saxonica Developer Community <
notifications@plan.io> wrote:

> --- In your reply, please do not write below this line ---
> Issue #5673 <https://saxonica.plan.io/issues/5673?pn=3D1#change-21764> ha=
s
> been updated by Norm Tovey-Walsh.
> ------------------------------
>
> - *Status* changed from *New* to *Resolved*
> - *Applies to JS Branch* *Trunk* added
> - *Fix Committed on JS Branch* *2, Trunk* added
>
> Any "." that appears in a (region of) the string that is delimited by bac=
k
> tick is not interpreted as a dividor. Use two back ticks in a row to get =
a
> back tick.
> ------------------------------
> Bug #5673: ixsl:set-property and URLs in property names
> <https://saxonica.plan.io/issues/5673?pn=3D1#change-21764> closed
>
> - *Author: *Martynas Jusevicius
> - *Status: *Resolved
> - *Priority: *Normal
> - *Category: *IXSL extensions
> - *Start date: *2022-08-31
> - *Applies to JS Branch: *2, Trunk
> - *Fix Committed on JS Branch: *2, Trunk
> - *Company: *
> - *Contact person: *
> - *Additional contact persons: *
>
> This is another manifestation of #5031
> <https://saxonica.plan.io/issues/5031>. How do I set a property which is
> a QName with a URL in it? I need to construct the following:
>
> SaxonJS.transform({
> "stylesheetParams": { "Q{https://www.w3.org/ns/ldt#}base": baseUri }
> });
>
> so I'm doing this:
>
> <xsl:variable name=3D"stylesheet-params" select=3D"ldh:new-object()"/>
> <ixsl:set-property name=3D"Q{{https://www.w3.org/ns/ldt#}}base" select=3D=
"$ldt:base" object=3D"$stylesheet-params"/>
>
> but of course I get an error:
>
> Encountered null or undefined in path to nested object for ixsl:set-prope=
rty: 'Q{https://www.w3'
>
> If you will not consider removing special meaning of . in
> ixsl:set-property/@name (I get it's problematic due to backwards
> compatibility), can we at least get an option where this behavior is
> disabled? Because in situations like this it's a PITA.
>
> Also welcoming suggestions for a workaround :)
> ------------------------------
>
> You have received this notification because you have either subscribed to
> or are involved in a project on Saxonica Developer Community site. To
> change your notification preferences, please click here:
> https://saxonica.plan.io/my/account?tour=3Dmail_preferences
>
> This notification was cheerfully delivered by <https://plan.io/>
> [image: Planio] <https://plan.io/>
>

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

<div dir=3D"auto">Does that mean a $variable with a property name will have=
to include backticks? That=E2=80=99s also slightly awkward :)</div><div><b=
r><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, =
7 Sep 2022 at 18.43, Saxonica Developer Community &lt;<a href=3D"mailto:not=
ifications@plan.io">notifications@plan.io</a>&gt; wrote:<br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><u></u>







<div style=3D"font-family:&quot;ProximaNova-Regular&quot;,Helvetica,Arial,s=
ans-serif;font-size:14px;line-height:1.4em;color:#333434">
<table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0" style=3D"border-c=
ollapse:collapse;margin-bottom:1em;border:1px solid #bbb;padding:4px;border=
-spacing:0;margin-bottom:0;width:100%;border:none;padding:0">
<tbody><tr><td style=3D"border:1px solid #bbb;padding:4px;text-align:center=
;width:100%;font-family:MarketWeb,Helvetica,Arial,sans-serif;font-size:0.8e=
m;color:#d7d7d7;border:none;padding:0"><p>--- In your reply, please do not =
write below this line ---</p></td></tr>
<tr><td style=3D"border:1px solid #bbb;padding:4px;border:none;padding:0">I=
ssue <a href=3D"https://saxonica.plan.io/issues/5673?pn=3D1#change-21764" s=
tyle=3D"color:#0088b7" target=3D"_blank">#5673</a> has been updated by Norm=
Tovey-Walsh.
<hr style=3D"width:100%;height:1px;background:#ccc;border:0;margin:1.2em 0"=
>

<ul style=3D"color:#959595;margin-bottom:1.5em">
<li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></l=
i>
<li><strong>Applies to JS Branch</strong> <i>Trunk</i> added</li>
<li><strong>Fix Committed on JS Branch</strong> <i>2, Trunk</i> added</li=
>
</ul>

<p>Any &quot;.&quot; that appears in a (region of) the string that is delim=
ited by back tick is not interpreted as a dividor. Use two back ticks in a =
row to get a back tick.</p>
<hr style=3D"width:100%;height:1px;background:#ccc;border:0;margin:1.2em 0"=
>
<h1 style=3D"font-family:&quot;ProximaNova-Bold&quot;,Helvetica,Arial,sans-=
serif;font-weight:normal;margin:0px;font-size:1.3em;line-height:1.4em">
<a href=3D"https://saxonica.plan.io/issues/5673?pn=3D1#change-21764" styl=
e=3D"color:#0088b7;text-decoration:none" target=3D"_blank">Bug #5673: ixsl:=
set-property and URLs in property names</a>
<span style=3D"font-weight:bold;font-size:10px;padding:1px 3px;margin-rig=
ht:2px;margin-left:2px;border-radius:2px;text-transform:uppercase;text-deco=
ration:none;color:#1d781d;border:1px solid #1d781d">closed</span>
</h1>

<ul style=3D"color:#959595;margin-bottom:1.5em"><li><strong>Author: </stron=
g>Martynas Jusevicius</li>
<li><strong>Status: </strong>Resolved</li>
<li><strong>Priority: </strong>Normal</li>
<li><strong>Category: </strong>IXSL extensions</li>
<li><strong>Start date: </strong>2022-08-31</li>
<li><strong>Applies to JS Branch: </strong>2, Trunk</li>
<li><strong>Fix Committed on JS Branch: </strong>2, Trunk</li>
<li><strong>Company: </strong></li>
<li><strong>Contact person: </strong></li>
<li><strong>Additional contact persons: </strong></li></ul>

<p>This is another manifestation of <a href=3D"https://saxonica.plan.io/iss=
ues/5031" style=3D"color:#0088b7" target=3D"_blank">#5031</a>. How do I set=
a property which is a QName with a URL in it? I need to construct the foll=
owing:</p>
<pre style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mono&quot;,C=
ourier,monospace;font-size:85%;background-color:#ececec;word-wrap:break-wor=
d;margin:1em 0;padding:8px;border:none;border-radius:3px;width:auto;overflo=
w-x:auto;overflow-y:hidden"><code style=3D"font-family:Hack,Consolas,Menlo,=
&quot;Liberation Mono&quot;,Courier,monospace;font-size:85%;background-colo=
r:#ececec;word-wrap:break-word;border-radius:3px;padding:0.2em;margin:0;pad=
ding:0">SaxonJS.transform({
&quot;stylesheetParams&quot;: { &quot;Q{<a href=3D"https://www.w3.org/n=
s/ldt#%7Dbase" target=3D"_blank">https://www.w3.org/ns/ldt#}base</a>&quot;:=
baseUri }
});
</code></pre>
<p>so I&#39;m doing this:</p>
<pre style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mono&quot;,C=
ourier,monospace;font-size:85%;background-color:#ececec;word-wrap:break-wor=
d;margin:1em 0;padding:8px;border:none;border-radius:3px;width:auto;overflo=
w-x:auto;overflow-y:hidden"><code style=3D"font-family:Hack,Consolas,Menlo,=
&quot;Liberation Mono&quot;,Courier,monospace;font-size:85%;background-colo=
r:#ececec;word-wrap:break-word;border-radius:3px;padding:0.2em;margin:0;pad=
ding:0">&lt;xsl:variable name=3D&quot;stylesheet-params&quot; select=3D&quo=
t;ldh:new-object()&quot;/&gt;
&lt;ixsl:set-property name=3D&quot;Q{{<a href=3D"https://www.w3.org/ns/ldt#=
%7D%7Dbase" target=3D"_blank">https://www.w3.org/ns/ldt#}}base</a>&quot; se=
lect=3D&quot;$ldt:base&quot; object=3D&quot;$stylesheet-params&quot;/&gt;
</code></pre>
<p>but of course I get an error:</p>
<pre style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mono&quot;,C=
ourier,monospace;font-size:85%;background-color:#ececec;word-wrap:break-wor=
d;margin:1em 0;padding:8px;border:none;border-radius:3px;width:auto;overflo=
w-x:auto;overflow-y:hidden"><code style=3D"font-family:Hack,Consolas,Menlo,=
&quot;Liberation Mono&quot;,Courier,monospace;font-size:85%;background-colo=
r:#ececec;word-wrap:break-word;border-radius:3px;padding:0.2em;margin:0;pad=
ding:0">Encountered null or undefined in path to nested object for ixsl:set=
-property: &#39;Q{<a href=3D"https://www.w3" target=3D"_blank">https://www.=
w3</a>&#39;
</code></pre>
<p>If you will not consider removing special meaning of <code style=3D"font=
-family:Hack,Consolas,Menlo,&quot;Liberation Mono&quot;,Courier,monospace;f=
ont-size:85%;background-color:#ececec;word-wrap:break-word;border-radius:3p=
x;padding:0.2em;margin:0">.</code> in ixsl:set-property/@name (I get it&#39=
;s problematic due to backwards compatibility), can we at least get an opti=
on where this behavior is disabled? Because in situations like this it&#39;=
s a PITA.</p>
<p>Also welcoming suggestions for a workaround :)</p>


<div><div></div></div>

</td></tr>
<tr><td style=3D"border:1px solid #bbb;padding:4px;font-size:0.8em;width:10=
0%;border:none;padding:0"><hr style=3D"width:100%;height:1px;background:#cc=
c;border:0;margin:1.2em 0"><p>You have received this notification because y=
ou have either subscribed to or are involved in a project on Saxonica Devel=
oper Community site.
To change your notification preferences, please click here: <a href=3D"http=
s://saxonica.plan.io/my/account?tour=3Dmail_preferences" style=3D"color:#00=
88b7" target=3D"_blank">https://saxonica.plan.io/my/account?tour=3Dmail_pre=
ferences</a></p></td></tr>
<tr><td style=3D"border:1px solid #bbb;padding:4px;text-align:center;width:=
100%;font-family:MarketWeb,Helvetica,Arial,sans-serif;font-size:1.2em;color=
:#d7d7d7;border:none;padding:0"><br><div><a href=3D"https://plan.io/" style=
=3D"color:#0088b7;color:#d7d7d7;text-decoration:none" target=3D"_blank">Thi=
s notification was cheerfully delivered by</a></div></td></tr>
<tr><td style=3D"border:1px solid #bbb;padding:4px;text-align:center;width:=
100%;border:none;padding:0"><a href=3D"https://plan.io/" title=3D"Planio" s=
tyle=3D"color:#0088b7" target=3D"_blank"><img src=3D"https://assets.plan.io=
/images/planio_logo_gray_204x50.png" height=3D"25" width=3D"102" border=3D"=
0" alt=3D"Planio" style=3D"vertical-align:middle;border:none"></a></td></tr=
>
</tbody></table>
</div>

</blockquote></div></div>

--000000000000871d8b05e826fc54--
    (1-1/1)