From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94590 Path: news.gmane.org!not-for-mail From: "Meer, Hans van der" Newsgroups: gmane.comp.tex.context Subject: typesetting content of attribute Date: Sat, 30 Apr 2016 13:28:52 +0000 Message-ID: <0D322FC4-AA90-42BE-8E1C-6A59B98F4ED9@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4892452692272520944==" X-Trace: ger.gmane.org 1462023001 9893 80.91.229.3 (30 Apr 2016 13:30:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Apr 2016 13:30:01 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 30 15:29:48 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awUxt-00009Z-RO for gctc-ntg-context-518@m.gmane.org; Sat, 30 Apr 2016 15:29:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 30048B570; Sat, 30 Apr 2016 15:29:08 +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 308-gyBWqrRx; Sat, 30 Apr 2016 15:29:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id B681BB560; Sat, 30 Apr 2016 15:29:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C08EEB564 for ; Sat, 30 Apr 2016 15:29:04 +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 Er_oUQJ1CSNs for ; Sat, 30 Apr 2016 15:29:03 +0200 (CEST) Original-Received: from HUB02.uva.nl (hub02.uva.nl [146.50.108.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A78D3B55B for ; Sat, 30 Apr 2016 15:28:53 +0200 (CEST) Original-Received: from MBX02.uva.nl ([169.254.2.73]) by HUB02.uva.nl ([2002:9232:6ce7::9232:6ce7]) with mapi id 14.03.0266.001; Sat, 30 Apr 2016 15:28:53 +0200 Thread-Topic: typesetting content of attribute Thread-Index: AQHRouQ8hwXw+NE3Y0mYbv55l+nxuw== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [84.106.134.200] x-endpointsecurity-0xde81-ev: v:6.2.7.719, d:out, a:y, w:t, t:0, sv:1462002805, ts:1462022933 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:94590 Archived-At: --===============4892452692272520944== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_0D322FC4AA9042BE8E1C6A59B98F4ED9uvanl_" --_000_0D322FC4AA9042BE8E1C6A59B98F4ED9uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The aim is to typeset a TeX-command given in an attribute on an xml node. Example ... \xmlatt{#1}{style} ... where the node has The problem is that this produces the macrotext \bf and does not execute th= e \bf. I guess that the catcoderegime is not that of TeX here. With what (magical) incantation to do this? Nb. I know that here I could have coded 'bf" and called with \csname..\endc= sname, but this is but a simple example and would not work for '\it\bf', et= c. Hans van der Meer --_000_0D322FC4AA9042BE8E1C6A59B98F4ED9uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <529272CFB8129548B33D3E610521A941@uva.nl> Content-Transfer-Encoding: quoted-printable The aim is to typeset a TeX-command given in an attribute on an xml node.
Example
...
\xmlatt{#1}{style}
...
where the node has
<node style=3D"\bf"/>= ;

The problem is that this produces the macrotext \bf and does not execute the \bf.
I guess that the catcoderegime is not that of TeX here.
With what (magical) incantation to do this?

Nb. I know that here I could have coded 'bf" and calle= d with \csname..\endcsname, but this is but a simple example and would not = work for '\it\bf', etc.

Hans van der Meer




--_000_0D322FC4AA9042BE8E1C6A59B98F4ED9uvanl_-- --===============4892452692272520944== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4892452692272520944==--