From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76071 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: \xmlcontext inoperative? Date: Wed, 9 May 2012 12:53:36 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1971649730==" X-Trace: dough.gmane.org 1336568031 12414 80.91.229.3 (9 May 2012 12:53:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 May 2012 12:53:51 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Wed May 09 14:53:48 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SS6Oo-0007Kw-5e for gctc-ntg-context-518@m.gmane.org; Wed, 09 May 2012 14:53:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20B35101E5; Wed, 9 May 2012 14:53:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 43SM2HkK6ff6; Wed, 9 May 2012 14:53:41 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E935101E2; Wed, 9 May 2012 14:53:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B7F19101E2 for ; Wed, 9 May 2012 14:53:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EgwpdpYyWfJ4 for ; Wed, 9 May 2012 14:53:39 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 114A7101CF for ; Wed, 9 May 2012 14:53:39 +0200 (CEST) Original-Received: from holleman.uva.nl (holleman.uva.nl [146.50.108.228]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q49CrcK3020976 for ; Wed, 9 May 2012 14:53:38 +0200 Original-Received: from vanthoff.uva.nl (146.50.108.242) by holleman.uva.nl (146.50.108.228) with Microsoft SMTP Server (TLS) id 14.1.355.2; Wed, 9 May 2012 14:53:37 +0200 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by vanthoff.uva.nl ([::1]) with mapi id 14.01.0355.002; Wed, 9 May 2012 14:53:37 +0200 Thread-Topic: \xmlcontext inoperative? Thread-Index: AQHNLeK/vsHvp7kDp0mGaFPI/7jH5A== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] X-Bayes-Prob: 0.0023 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.228; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QH7MRCyd - 54d9be756326 - 20120509 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76071 Archived-At: --===============1971649730== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_B3B88C45686A4F06A8CB940BC5F404D6uvanl_" --_000_B3B88C45686A4F06A8CB940BC5F404D6uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Loaded xml with: xmlinclude{problem}{include}{file} Then called up parts of its contents through a setup: \startxmlsetups xam:define:get % The definition is the one with content. \xmldoiftext{#1}{.}{ \foundtrue \xmlflush{#1} \xmlcontext{#1}{.} } \stopxmlsetups The strange thing is that the \xmlflush typesets verbatim the contents of t= he node called up: f(x) 1 x 4 x 7 but, to my surprise the \xmlcontext{#1}{.} lets it disappear completely. So= does \xmlflushcontext{#1}. In other parts of the program \xmlcontext does = what it should do, thus the mkvi format seems ok. What could have happened? Some detrimental effect of the \xmlinclude? Hans van der Meer --_000_B3B88C45686A4F06A8CB940BC5F404D6uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable Loaded xml with= : xmlinclude{problem}{include}{file}

Then calle= d up parts of its contents through a setup:
\startxmls= etups xam:define:get
% The defi= nition is the one with content.
\xmldoifte= xt{#1}{.}{
  \fo= undtrue
  \xm= lflush{#1}
  \xm= lcontext{#1}{.}
}
\stopxmlse= tups

The strang= e thing is that the \xmlflush typesets verbatim the contents of the node ca= lled up:

<math versio= n=3D"2.0" xmlns=3D"htt= p://www.w3c.org/mathml"> <apply> <eq/> <ci> f= (x) </ci> <apply> <plus/> <ci> 1 </ci> <ap= ply> <power/> <ci> x </ci> <ci> 4 </ci> &l= t;/apply> <apply> <power/> <ci> x </ci> <ci> 7 </ci= > </apply> </apply> </apply> </math>

but, to my surprise the \xmlcontext{#1}{.} lets it disappear co= mpletely. So does \xmlflushcontext{#1}. In other parts of the program \xmlc= ontext does what it should do, thus the mkvi format seems ok.

What could= have happened? Some detrimental effect of the \xmlinclude?

Hans van d= er Meer



--_000_B3B88C45686A4F06A8CB940BC5F404D6uvanl_-- --===============1971649730== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1971649730==--