From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92613 Path: news.gmane.org!not-for-mail From: massifr@fastwebnet.it Newsgroups: gmane.comp.tex.context Subject: Re: Ampersand followed by semicolon in XML: possible bug? Date: Tue, 29 Sep 2015 18:08:12 +0200 Message-ID: <2474696.FBmMJ1RqVm@max> References: <1752624.8RSupgTVVG@max> Reply-To: massifr@fastwebnet.it, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart11107052.imhXyvbcSN" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1443542968 22040 80.91.229.3 (29 Sep 2015 16:09:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2015 16:09:28 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 29 18:09:12 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZgxSp-0003II-SW for gctc-ntg-context-518@m.gmane.org; Tue, 29 Sep 2015 18:09:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E7DD1021C for ; Tue, 29 Sep 2015 18:09:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id remuso7zpkHD for ; Tue, 29 Sep 2015 18:09:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ACCC210237 for ; Tue, 29 Sep 2015 18:08:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27CD1101F9 for ; Tue, 29 Sep 2015 18:08:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qTO32RaqEUQQ for ; Tue, 29 Sep 2015 18:08:14 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id DDFD4101E8 for ; Tue, 29 Sep 2015 18:08:14 +0200 (CEST) Original-Received: from mr005msr.fastwebnet.it (mr005msr.fastwebnet.it [85.18.95.68]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t8TG8Dao008522 for ; Tue, 29 Sep 2015 18:08:13 +0200 Original-Received: from max.localnet (2.225.185.111) by mr005msr.fastwebnet.it (8.5.140.03) (authenticated as massifr) id 5523019B0A1DD3D1 for ntg-context@ntg.nl; Tue, 29 Sep 2015 18:08:12 +0200 User-Agent: KMail/4.14.10 (Linux/4.1.0-2-686-pae; KDE/4.14.10; i686; ; ) In-Reply-To: <1752624.8RSupgTVVG@max> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=85.18.95.68; country=IT; latitude=42.8333; longitude=12.8333; http://maps.google.com/maps?q=42.8333,12.8333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Pn48dTc - 3cf1488b010f - 20150929 Received-SPF: none (filter3-ams.mf.surf.net: domain of massifr@fastwebnet.it does not designate permitted sender hosts) receiver=filter3-ams.mf.surf.net; client-ip=85.18.95.68; envelope-from=; helo=mr005msr.fastwebnet.it; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:92613 Archived-At: This is a multi-part message in MIME format. --nextPart11107052.imhXyvbcSN Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" I've seen that the ampersand gets interpreted as HTML on the mailing list. I'm sending the example as an attachment. Here's a modified version to be seen on the mailing list site: \startbuffer[test]

Me &amp; my friends; you &amp; your friends.

Me &amp; my friends. You &amp; your friends.

Me &amp; my friends; you &amp; your friends.

\stopbuffer \startxmlsetups xml:somesetups \xmlsetsetup{#1}{text}{xml:text} \xmlsetsetup{#1}{p}{xml:p} \stopxmlsetups \xmlregistersetup{xml:somesetups} \startxmlsetups xml:text \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par\blank[line] \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \stoptext --nextPart11107052.imhXyvbcSN Content-Disposition: attachment; filename="ampersand-html.tex" Content-Transfer-Encoding: 7Bit Content-Type: text/x-tex; charset="UTF-8"; name="ampersand-html.tex" \startbuffer[test]

Me & my friends; you & your friends.

Me & my friends. You & your friends.

Me & my friends; you & your friends.

\stopbuffer \startxmlsetups xml:somesetups \xmlsetsetup{#1}{text}{xml:text} \xmlsetsetup{#1}{p}{xml:p} \stopxmlsetups \xmlregistersetup{xml:somesetups} \startxmlsetups xml:text \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par\blank[line] \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \stoptext --nextPart11107052.imhXyvbcSN 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= --nextPart11107052.imhXyvbcSN--