From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110803 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Re: arbitrary context commands in xml file Date: Mon, 8 Mar 2021 11:48:53 +0000 Message-ID: References: <4589b684d40e4e4c9ce7634187c310f4@ub.unibe.ch> <425d284dcd0e414aaec4a8ef72d928a2@ub.unibe.ch> <9c7c4e6468f0457b8dddcfc491971e9c@ub.unibe.ch> <98438acc-41a9-7159-fc83-fdae27cf473c@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3417377914210250940==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30099"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 08 12:49:35 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 1lJEOF-0007k7-L3 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 08 Mar 2021 12:49:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B904228149D; Mon, 8 Mar 2021 12:49:15 +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 YKz-IiqVBIfQ; Mon, 8 Mar 2021 12:49:13 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6EE2428149F; Mon, 8 Mar 2021 12:49:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 129EB28149C for ; Mon, 8 Mar 2021 12:49:12 +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 IlPyNLwG2Lx6 for ; Mon, 8 Mar 2021 12:49:11 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.51; helo=mail-lf1-f51.google.com; envelope-from=dh@capdm.com; receiver= Original-Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5F6AC280F27 for ; Mon, 8 Mar 2021 12:49:11 +0100 (CET) Original-Received: by mail-lf1-f51.google.com with SMTP id p21so20466836lfu.11 for ; Mon, 08 Mar 2021 03:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capdm.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=XSb+GzxCakR/qGc5hSouJGndnymnln4tDynY6M4mJ98=; b=XuQ+FSpb6qxty9VD/5vHG08UEr2rbj18SEqsouaxI+Boe5xJy8HR4x0sbdthplRlpZ G2mwrtvLftLWJcRdERu7yMxr80HP1KrUc9grV5gYw3YeizL1yTfVwc8fGjUD/oe8Yg/R nM3k8RRDyrE+aM5k+3itONAOpiIgJlTPv0WnQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=XSb+GzxCakR/qGc5hSouJGndnymnln4tDynY6M4mJ98=; b=tKMuGfw8QVX/oxIsnNDBKbFGSxauo255Lxr/102UGrghNb3M9XGMR6YXGbVzAQ8p3D b9HQtvUE52YRBHaMFMw9ejd3X8j+qH3L6MmioHC2R/1oGZGnIphW7eM3YwQgzScIZ1VI LZ/l/mLfGJXyi2GZdGVsONKM6pYBsJ//DFgPI9t/MW2ZWRAm8K+yiTTo1A2UP8WlsEw9 FGZoWZhvaQcSj23sJEs3t9WBV9nMqE1KEToWvnFfyqRilUm8heHVA3a3P+V4du0RHar7 THlAUQ2+NYIfrxLr41hO8lW/P4o4VDHlfD0Fx/IG5NUr8Oei/xGqkfl8ZH1S9mR5wKBP STPQ== X-Gm-Message-State: AOAM533fnMtVNYyjaX8DemYPxJRu3gsjR0bI5iv7LIP/XsA0h9iBlCWF PI7sL2JQVUPZn+hRvA3UxL4JnjX2pyhuLkL09166tFBr0rBodg== X-Google-Smtp-Source: ABdhPJyElcK9i9lCQL+Ecd8WRrMTX/TqkIv1oVK5ssWW1lsyO1oUfvP9Zg7Y5Ba7o5eDGZSHo23zUhLRIVlp0X6cz3I= X-Received: by 2002:a19:c14d:: with SMTP id r74mr14595732lff.456.1615204150485; Mon, 08 Mar 2021 03:49:10 -0800 (PST) In-Reply-To: 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:110803 Archived-At: --===============3417377914210250940== Content-Type: multipart/alternative; boundary="000000000000a1381005bd050572" --000000000000a1381005bd050572 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 8 Mar 2021 at 10:21, wrote: > > -----Urspr=C3=BCngliche Nachricht----- > > Von: Hans Hagen > > Gesendet: Freitag, 5. M=C3=A4rz 2021 23:17 > > An: mailing list for ConTeXt users ; Maier, Denis > > Christian (UB) ; > > wolfgang.schuster.lists@gmail.com > > Betreff: Re: [NTG-context] arbitrary context commands in xml file > > > [...] > > > > > > > Here, I was thinking if something like this could be easier: > > > > > > > > you can also do this: > > > > > > > > \startxmlsetups xml:testpage > > \testpage[\xmlatt{#1}{n}] > > \stopxmlsetup > > > > and register that one (as in previous examples) > > Thanks,. That's a good idea, but it will also make the XML invalid. > > Denis > I'd like to second Denis' request for support for XML processing instructions to execute ConTeXt code, rather than elements which can cause big problems if one is working to a fixed schema. It would be a boon to be able to drop in in an XML source. Duncan --000000000000a1381005bd050572 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, 8 Mar 2021 at 10:21, <denis.maier@ub.unibe.ch> wrot= e:
> -----Urs= pr=C3=BCngliche Nachricht-----
> Von: Hans Hagen <j.hagen@xs4all.nl>
> Gesendet: Freitag, 5. M=C3=A4rz 2021 23:17
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>; Maier, Denis
> Christian (UB) <denis.maier@ub.unibe.ch>;
> wolfgang.schuster.lists@gmail.com
> Betreff: Re: [NTG-context] arbitrary context commands in xml file


[...]

> >
> > Here, I was thinking if something like this could be easier:
> >
> > <?context-directive raw-tex-injector \testpage[4]?>
> you can also do this:
>
> <testpage n=3D"4"/>
>
> \startxmlsetups xml:testpage
>=C2=A0 =C2=A0 \testpage[\xmlatt{#1}{n}]
> \stopxmlsetup
>
> and register that one (as in previous examples)

Thanks,. That's a good idea, but it will also make the XML invalid.

Denis
=C2=A0
I'd like to second Denis= 9; request for support for XML processing instructions to execute ConTeXt c= ode, rather than elements which can cause big problems if one is working to= a fixed schema. It would be a boon to be able to drop in <?context \wha= tever{fdfd}?> in an XML source.

Duncan=C2=A0
<= div dir=3D"ltr">
--000000000000a1381005bd050572-- --===============3417377914210250940== 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== --===============3417377914210250940==--