From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113684 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier via ntg-context Newsgroups: gmane.comp.tex.context Subject: xml processing: if elseif else / switch case Date: Thu, 9 Dec 2021 08:19:41 +0000 Message-ID: <5a99613cd1254cf296a97aa479ee740b@unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0192828370414308399==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37481"; mail-complaints-to="usenet@ciao.gmane.io" Cc: denis.maier@unibe.ch To: Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 09 09:20:17 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvEf2-0009ZI-Py for gctc-ntg-context-518@m.gmane-mx.org; Thu, 09 Dec 2021 09:20:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D697C2A1E08; Thu, 9 Dec 2021 09:19:48 +0100 (CET) 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 7dXh10XKU7pv; Thu, 9 Dec 2021 09:19:46 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 914BC2A1D87; Thu, 9 Dec 2021 09:19:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A66562A1D83 for ; Thu, 9 Dec 2021 09:19:44 +0100 (CET) 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 A8SGJwQE-m9e for ; Thu, 9 Dec 2021 09:19:43 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.83; helo=mailhub-lb2.unibe.ch; envelope-from=denis.maier@unibe.ch; receiver= Original-Received: from mailhub-lb2.unibe.ch (mailhub-lb2.unibe.ch [130.92.0.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 79D9A2A1832 for ; Thu, 9 Dec 2021 09:19:43 +0100 (CET) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id 15704500253 for ; Thu, 9 Dec 2021 09:19:42 +0100 (CET) Thread-Topic: xml processing: if elseif else / switch case Thread-Index: Adfs1L5i3TWx+5YjTfe672fZB4dJjw== Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] 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.io gmane.comp.tex.context:113684 Archived-At: --===============0192828370414308399== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_5a99613cd1254cf296a97aa479ee740bunibech_" --_000_5a99613cd1254cf296a97aa479ee740bunibech_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I was wondering whether we have tests similar to or in context's xml processing. (And even in context more general...)= I have found these doifelse tests, but elseif doesn't seem to exist. Is th= at correct? If yes, could that be added? Of course, you can always just nes= t doifelse-constructs, but that will become ugly quickly. Being able to spe= cify multiple branches would be handy. Best, Denis --_000_5a99613cd1254cf296a97aa479ee740bunibech_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I was wondering whether we have tests similar to &la= quo;if-else if-else» or «switch case» in context’s = xml processing. (And even in context more general...) I have found these do= ifelse tests, but elseif doesn’t seem to exist. Is that correct? If yes, could that be added? Of cours= e, you can always just nest doifelse-constructs, but that will become ugly = quickly. Being able to specify multiple branches would be handy.=

 

Best,

Denis

--_000_5a99613cd1254cf296a97aa479ee740bunibech_-- --===============0192828370414308399== 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== --===============0192828370414308399==--