From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94426 Path: news.gmane.org!not-for-mail From: "Meer, Hans van der" Newsgroups: gmane.comp.tex.context Subject: Re: xml input Date: Wed, 13 Apr 2016 15:35:45 +0000 Message-ID: <4CE99A8B-602B-4D54-8981-2595409FF4EF@uva.nl> References: <8ACED9AF-31FB-4C80-9D4C-6A545EA13634@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1184942737495773299==" X-Trace: ger.gmane.org 1460561784 25693 80.91.229.3 (13 Apr 2016 15:36:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Apr 2016 15:36:24 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 13 17:36:11 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 1aqMps-0008Vw-5f for gctc-ntg-context-518@m.gmane.org; Wed, 13 Apr 2016 17:36:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D159EA6A1; Wed, 13 Apr 2016 17:35:59 +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 vxis5hAIyjTI; Wed, 13 Apr 2016 17:35:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2453BA6A2; Wed, 13 Apr 2016 17:35:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E1373A6A0 for ; Wed, 13 Apr 2016 17:35:57 +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 IJ18zvBd58Bq for ; Wed, 13 Apr 2016 17:35:56 +0200 (CEST) Original-Received: from HUB01.uva.nl (hub01.uva.nl [146.50.108.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E848CA69F for ; Wed, 13 Apr 2016 17:35:46 +0200 (CEST) Original-Received: from MBX02.uva.nl ([169.254.2.167]) by HUB01.uva.nl ([::1]) with mapi id 14.03.0266.001; Wed, 13 Apr 2016 17:35:46 +0200 Thread-Topic: [NTG-context] xml input Thread-Index: AQHRlY/I4dTLZ/GwMUWPLa/OBLWcZJ+H56OA In-Reply-To: <8ACED9AF-31FB-4C80-9D4C-6A545EA13634@uva.nl> 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:15, sv:1460541319, ts:1460561746 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:94426 Archived-At: --===============1184942737495773299== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_4CE99A8B602B4D5489812595409FF4EFuvanl_" --_000_4CE99A8B602B4D5489812595409FF4EFuvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Just a thought. \xmlprocessbuffer and \xmlprocessfile{id}... register the tree they read un= der id. Is there a way to merge several id's to one tree? Hans van der Meer On 13 Apr 2016, at 16:21, Meer, Hans van der > wrote: I would like to process several input sources as one xml tree. Like this: with the sources having the structure ... ... and the code for containing: read from all sources given on -notes afterwards process all content at once Thus the content of the various source should be read into one tree to be p= rocessed, but I cannot get this done. How to amalgam this separate sources into one? Hans van der Meer --_000_4CE99A8B602B4D5489812595409FF4EFuvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <530525A33E578C42BD5C3C984B348FAA@uva.nl> Content-Transfer-Encoding: quoted-printable Just a thought.

\xmlprocessbuffer and \xmlprocessfile{id}... register the t= ree they read under id. Is there a way to merge several id's to one tree?

Hans van der Meer

On 13 Apr 2016, at 16:21, Meer, Hans van der <H.vanderMeer@uva.nl> wrote:<= /div>
I would like to process several input sou= rces as one xml tree. Like this:

<?xml version=3D"= 1.0" encoding=3D"UTF-8"?>
<takenotes><= /div>
<include buffer=3D&quo= t;notes-example"/>
<include file=3D"= notes-example.xml"/>
</takenotes>=

with the sources having t= he structure
<notes>
<note>...</note&= gt;
...
</notes>

and the code for <take= notes> containing:
read from all sources giv= en on <include>-notes
afterwards process all co= ntent at once

Thus the content of the v= arious source should be read into one tree to be processed, but I cannot ge= t this done.
How to amalgam this separ= ate sources into one?

Hans van der Meer





--_000_4CE99A8B602B4D5489812595409FF4EFuvanl_-- --===============1184942737495773299== 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= --===============1184942737495773299==--