From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116464 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier via ntg-context Newsgroups: gmane.comp.tex.context Subject: \xmldocument vs #1 in \xmlsetsetup Date: Mon, 14 Nov 2022 13:00:00 +0000 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1352562395707837926==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: denis.maier@unibe.ch To: Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 14 14:00:50 2022 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 1ouZ4y-0009Na-Ny for gctc-ntg-context-518@m.gmane-mx.org; Mon, 14 Nov 2022 14:00:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EDDF32A4BA5; Mon, 14 Nov 2022 14:00:07 +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 RVGnd5KmW897; Mon, 14 Nov 2022 14:00:06 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 090252A4BA6; Mon, 14 Nov 2022 14:00:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7424D2A4BA5 for ; Mon, 14 Nov 2022 14:00:04 +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 PpCTZ7SLCgE5 for ; Mon, 14 Nov 2022 14:00:02 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.84; helo=mailhub-lb3.unibe.ch; envelope-from=denis.maier@unibe.ch; receiver= Original-Received: from mailhub-lb3.unibe.ch (mailhub-lb3.unibe.ch [130.92.0.84]) (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 C19932A4B84 for ; Mon, 14 Nov 2022 14:00:02 +0100 (CET) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-02.campus.unibe.ch [130.92.13.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb3.unibe.ch (Postfix) with ESMTPS id 45E00500095 for ; Mon, 14 Nov 2022 14:00:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unibe.ch; s=mgwsel1; t=1668430801; bh=Slf879boZspco0y0Bq8dCUrHOtrEzWQEd6TK2i4O/88=; h=From:To:Subject:Date:From; b=Zm0RDTpkpBu8iMfRH2nj2+zb3zhz8w9Njc0RZsUv5zduBdCHk37PPSRDnaaA8uf0w Xcja/yvBy5Q+OigNCnDeh5nwDfKXjX1xEFXIamPSUXE1N7g1ac1gaU/LdbLj8rxbkX TD2SXb6jkCcAul/hMo6rEtAHJhEomdCiYrt2Oe+iVKWf5GVvEE36cdWUFRF32oTN9F y5pzIVkPVQNBQpUICwwhANYqtgHGsjb32AmCYVGkfAf+Y7XQXupoqJFA530PlFhlSL K7B0Yvm178Dkvkeu7XwWHfAPebDhwaMtuxq2CHGjx3oDRO5FprncjEob8jNf7lsfUJ mCRRADJxLq8eg== Original-Received: from aai-mail-02.campus.unibe.ch (130.92.13.168) by AAI-EDGE-02.campus.unibe.ch (130.92.13.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.16; Mon, 14 Nov 2022 13:59:54 +0100 Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by aai-mail-02.campus.unibe.ch (130.92.13.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.16; Mon, 14 Nov 2022 14:00:00 +0100 Original-Received: from aai-mail-03.campus.unibe.ch ([172.18.73.17]) by aai-mail-03.campus.unibe.ch ([172.18.73.17]) with mapi id 15.01.2507.016; Mon, 14 Nov 2022 14:00:00 +0100 Thread-Topic: \xmldocument vs #1 in \xmlsetsetup Thread-Index: Adj4KFxgeTrh8E2WQM+B1IcnDKWkQA== 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:116464 Archived-At: --===============1352562395707837926== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_b3c7fb72fd244242aeb2774772989311unibech_" --_000_b3c7fb72fd244242aeb2774772989311unibech_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, most examples in the mkiv-xml manual use #1 with \xmlsetsetup, e.g. \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p}{xml:demo:*} \stopxmlsetups However, in quite a few occasions I've noticed the usage of \xmldocument in= stead of #1. What exactly is the difference ? When should you prefer one over the other? Best, Denis --_000_b3c7fb72fd244242aeb2774772989311unibech_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

most examples in the mkiv-xml manual use #1 with \xm= lsetsetup, e.g.

 

\startxmlsetups xml:demo:base

  \xmlsetsetup{#1}{document|section|p}{xml:demo= :*}

\stopxmlsetups

 

However, in quite a few occasio= ns I’ve noticed the usage of \xmldocument instead of #1.

 

What exactly is the difference&= nbsp;?

 

When should you prefer one over the other?

 

Best,

Denis

 

--_000_b3c7fb72fd244242aeb2774772989311unibech_-- --===============1352562395707837926== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1352562395707837926==--