From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97807 Path: news.gmane.org!.POSTED!not-for-mail From: "Meer, Hans van der" Newsgroups: gmane.comp.tex.context Subject: Re: XML inclusion Date: Wed, 12 Apr 2017 14:51:46 +0000 Message-ID: References: <1D5C46C4-90F4-47C8-A097-E60B28069301@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4090920459511921579==" X-Trace: blaine.gmane.org 1492008741 21524 195.159.176.226 (12 Apr 2017 14:52:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Apr 2017 14:52:21 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 12 16:52:17 2017 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyJd2-0005Sc-O3 for gctc-ntg-context-518@m.gmane.org; Wed, 12 Apr 2017 16:52:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3026284D7F; Wed, 12 Apr 2017 16:51:50 +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 Hi3xlftrlrbl; Wed, 12 Apr 2017 16:51:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C069384D6B; Wed, 12 Apr 2017 16:51:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AA65084D69 for ; Wed, 12 Apr 2017 16:51:47 +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 cmi8HpNH5AO4 for ; Wed, 12 Apr 2017 16:51:47 +0200 (CEST) Original-Received: from out25-ams.mf.surf.net (out25-ams.mf.surf.net [145.0.1.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2ACAE84D61 for ; Wed, 12 Apr 2017 16:51:36 +0200 (CEST) Original-Received: from HUB02.uva.nl (hub02.uva.nl [146.50.108.231]) by outgoing1-ams.mf.surf.net (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v3CEpaag027095 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Wed, 12 Apr 2017 16:51:36 +0200 Original-Received: from MBX02.uva.nl ([169.254.2.23]) by HUB02.uva.nl ([2002:9232:6738::9232:6738]) with mapi id 14.03.0319.002; Wed, 12 Apr 2017 16:51:46 +0200 Thread-Topic: [NTG-context] XML inclusion Thread-Index: AQHSr5QH90F1VIu670GEdyDE/VpQmqG8/niAgAS5aIA= In-Reply-To: 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:1492001758, ts:1492008706 X-Bayes-Prob: 0.0001 (Score 0, tokens from: uva-out:default, uva:default, base:default, @@RPTN) X-CanIt-Geo: ip=146.50.108.231; country=NL; region=North Holland; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uva-out:default (inherits from uva:default,base:default) X-Canit-Stats-ID: 0uT7qPAU1 - 99dba98f369b - 20170412 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:97807 Archived-At: --===============4090920459511921579== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_E3ACB47456ED42959915A9FE5967D9B6uvanl_" --_000_E3ACB47456ED42959915A9FE5967D9B6uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On 9 Apr 2017, at 16:42, Hans Hagen > w= rote: On 4/7/2017 1:42 PM, Meer, Hans van der wrote: The command \xmlinclude{}{}{} includes the file specified by attribute IDEN= TIFIER of the element located by LPATH at NODE. What I would like to do is including a bunch of .xml files where the direct= ory to load from is given. Is this a possibility or could this be a feature added to the ConTeXt XML-p= rocessing in a new beta? can you be more explicit Current setup is as follows: And called in with: \xmlinclude{#1}{include}{file} The question is: how can this be generalized to include not one file, but b= y giving a directory on the node including all xml files inside t= hat directory (or more generally files given by a pattern like *.xml). Hans van der Meer --_000_E3ACB47456ED42959915A9FE5967D9B6uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <37A752F948B3E34CA2F776F1DCAA038C@uva.nl> Content-Transfer-Encoding: quoted-printable


On 9 Apr 2017, at 16:42, Hans Hagen <pragma@wxs.nl> wrote:

On 4/7/2017 1:42 PM, Meer, Hans van der wrote:
The command \xmlinclude{}{}{} includes= the file specified by attribute IDENTIFIER of the element located by LPATH= at NODE.
What I would like to do is including a bunch of .xml files where the direct= ory to load from is given.

Is this a possibility or could this be a feature added to the ConTeXt XML-p= rocessing in a new beta?

can you be more explicit

Current setup is as follows:

<root>
  <include file= =3D"inputdata.xml"/> <!-- process this xml file -->
</root>

And called in with: \xmli= nclude{#1}{include}{file}

The question is: how can this be generalized to include not= one file, but by giving a directory on the <include> node including = all xml files inside that directory (or more generally files given by a pat= tern like *.xml).

Hans van der Meer

--_000_E3ACB47456ED42959915A9FE5967D9B6uvanl_-- --===============4090920459511921579== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4090920459511921579==--