From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100524 Path: news.gmane.org!.POSTED!not-for-mail From: "dr. Hans van der Meer" Newsgroups: gmane.comp.tex.context Subject: xmlrefatt Date: Tue, 10 Apr 2018 15:33:01 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: multipart/mixed; boundary="===============2272889665835159513==" X-Trace: blaine.gmane.org 1523367126 10372 195.159.176.226 (10 Apr 2018 13:32:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2018 13:32:06 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 10 15:32:02 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5tNS-0002bi-3o for gctc-ntg-context-518@m.gmane.org; Tue, 10 Apr 2018 15:32:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CECBA625BDC; Tue, 10 Apr 2018 15:33:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ujk36quhg-po; Tue, 10 Apr 2018 15:33:16 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id CD03C625BDF; Tue, 10 Apr 2018 15:33:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4CCBE625BDF for ; Tue, 10 Apr 2018 15:33:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KOK7YkJipjLx for ; Tue, 10 Apr 2018 15:33:12 +0200 (CEST) Original-Received: from smtpq3.mnd.mail.iss.as9143.net (smtpq3.mnd.mail.iss.as9143.net [212.54.34.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D50BD625BDC for ; Tue, 10 Apr 2018 15:33:02 +0200 (CEST) Original-Received: from [212.54.34.114] (helo=smtp6.mnd.mail.iss.as9143.net) by smtpq3.mnd.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1f5tOQ-0007aA-1Z for ntg-context@ntg.nl; Tue, 10 Apr 2018 15:33:02 +0200 Original-Received: from 546a86c8.cm-12-3c.dynamic.ziggo.nl ([84.106.134.200] helo=[192.168.178.10]) by smtp6.mnd.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1f5tOP-0007vz-W2 for ntg-context@ntg.nl; Tue, 10 Apr 2018 15:33:02 +0200 X-Mailer: Apple Mail (2.3445.5.20) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=HPnt6Llv c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=Kd1tUaAdevIA:10 a=7cKS7Lt_8wK4kJU7w8sA:9 a=QEXdDO2ut3YA:10 a=rvW_yqYFoE9opf4R:21 a=_W_S_7VecoQA:10 none X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:100524 Archived-At: --===============2272889665835159513== Content-Type: multipart/alternative; boundary="Apple-Mail=_27EDD53A-BFFA-4888-BCC9-3A87D37A374B" --Apple-Mail=_27EDD53A-BFFA-4888-BCC9-3A87D37A374B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 There is a slight restriction on \xmlrefatt that makes its use = problematic, because it does not differentiate between an absent = attribute and an attribute consisting of an empty string. The use for \xmlrefatt I had in mind was (a) do nothing if the attribute = is absent, and (b) reset some value to its default value when the = attribute is present but an empty string. Is it an option that its implementation is changed? A boolean return = value will be fine, because false then can signify the attribute=E2=80=99s= absence and true its presence. In the latter case it is safe to = retrieve the attribute which then might be an empty string. Summarizing: the fact that \xmlrefatt tries to do two different things = at the same time (signalling presence/absence) and returning an = attribute, in a certain sense cripples its use. dr. Hans van der Meer --Apple-Mail=_27EDD53A-BFFA-4888-BCC9-3A87D37A374B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 There= is a slight restriction on \xmlrefatt that makes its use problematic, = because it does not differentiate between an absent attribute and an = attribute consisting of an empty string.
The use for = \xmlrefatt I had in mind was (a) do nothing if the attribute is absent, = and (b) reset some value to its default value when the attribute is = present but an empty string.

Is it an option that its implementation = is changed? A boolean return value will be fine, because false then can = signify the attribute=E2=80=99s absence and true its presence. In the = latter case it is safe to retrieve the attribute which then might be an = empty string.

Summarizing: the fact that \xmlrefatt tries to do two = different things at the same time (signalling presence/absence) and = returning an attribute, in a certain sense cripples its use.

dr. Hans van der Meer


= --Apple-Mail=_27EDD53A-BFFA-4888-BCC9-3A87D37A374B-- --===============2272889665835159513== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2272889665835159513==--