From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104325 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Test XML node registration Date: Fri, 17 May 2019 10:28:26 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Content-Type: multipart/mixed; boundary="===============8415765320649622269==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="213074"; mail-complaints-to="usenet@blaine.gmane.org" To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Fri May 17 10:29:11 2019 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hRYEo-000tIQ-V7 for gctc-ntg-context-518@m.gmane.org; Fri, 17 May 2019 10:29:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4B3D8139BE7; Fri, 17 May 2019 10:28:31 +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 hV9xA5o21lai; Fri, 17 May 2019 10:28:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 88307139BE4; Fri, 17 May 2019 10:28:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0CB21139BE3 for ; Fri, 17 May 2019 10:28:28 +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 MInt_5gkZv9H for ; Fri, 17 May 2019 10:28:27 +0200 (CEST) Original-Received: from smtpq4.mnd.mail.iss.as9143.net (smtpq4.mnd.mail.iss.as9143.net [212.54.34.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 77C2113936A for ; Fri, 17 May 2019 10:28:27 +0200 (CEST) Original-Received: from [212.54.34.114] (helo=smtp6.mnd.mail.iss.as9143.net) by smtpq4.mnd.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hRYE7-0005Yr-5K; Fri, 17 May 2019 10:28:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=ziggo.nl; s=201809corplgsmtpnl; h=To:Message-Id:Subject:Date:Mime-Version:From; bh=dxzZIGkxwmx6rNs9zDk0B2ERZVN1mqiRYZSaLI8Bmdo=; b=XRk+2DGUPcVJ1XrZL1sFysECyQ dDRgom/K/Yp6/4WCQlg2BNmU+8gQ8iZZDs2l7qljp1manC4tnbPXtZ5QdUjFj5w6CQb3S++LebaO2 Z6wsSuvXKSzV1VfGnjp3qpxUfufZsPBVdO2vDYlzgTTKT6Sei/cdNS0vHfKTVuGXdp6RQcCXAKUmB 9wpQ2jgyshdNv/ASnMVEHe7es/0jtGQApZFdnE2v+wt5iTY7c4rC0s+KWoJmXax+vhSAGD83XexjC 5/6ICuS2RD6AgkbxaxwB2eFDQb4G20KqNVBc35hQUEScNBJAaScEFVV4Y7aYfuOm6r2xtA8Y408DV xFSJ8gLg==; Original-Received: from 84-106-134-200.cable.dynamic.v4.ziggo.nl ([84.106.134.200] helo=[192.168.178.19]) by smtp6.mnd.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hRYE7-0001TR-0f; Fri, 17 May 2019 10:28:27 +0200 X-Mailer: Apple Mail (2.3445.104.8) 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=M94z1B4s c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=E5NmQfObTbMA:10 a=mUVJ0JYC1XRRAZVtyVgA:9 a=CjuIK1q_8ugA:10 a=1A1iLUlZ5jMV-_1WABQA:9 a=eBXeVcpcVtMpPUXw:21 a=_W_S_7VecoQA:10 X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:104325 Archived-At: --===============8415765320649622269== Content-Type: multipart/alternative; boundary="Apple-Mail=_E2D7BFEE-422E-4FB4-854E-0C92DAC2F804" --Apple-Mail=_E2D7BFEE-422E-4FB4-854E-0C92DAC2F804 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Having a series of nodes in setups in a helper module: \startxmlsetups xmlcommon:setups \xmlsetsetup{#1}{error|comment|... etcetera}{xmlcommon:*} \stopxmlsetups \xmlregistersetup{xmlcommon:setups} I would like to check if a certain node is in that series of nodes. For = example doing \doifelse{\xmltag{#1}}... where the true branch is taken = when \xmltag{#1} is one of those registered in the xmlcommon:setups. Is that possible? Then what macro has to be called? dr. Hans van der Meer --Apple-Mail=_E2D7BFEE-422E-4FB4-854E-0C92DAC2F804 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Having a series of nodes in setups in a helper module:
\startxmlsetups xmlcommon:setups
= \xmlsetsetup{#1}{error|comment|... etcetera}{xmlcommon:*}
\stopxmlsetups
\xmlregistersetup{xmlcommon:setups}

I would like to check if = a certain node is in that series of nodes. For example doing = \doifelse{\xmltag{#1}}... where the true branch is taken when = \xmltag{#1} is one of those registered in the = xmlcommon:setups.

Is that possible? Then what macro has to be called?

dr. Hans van der Meer


= --Apple-Mail=_E2D7BFEE-422E-4FB4-854E-0C92DAC2F804-- --===============8415765320649622269== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8415765320649622269==--