From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73609 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: xml file inclusion Date: Wed, 4 Jan 2012 20:32:17 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1325705622 4805 80.91.229.12 (4 Jan 2012 19:33:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2012 19:33:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 04 20:33:38 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RiWad-00030K-HU for gctc-ntg-context-518@m.gmane.org; Wed, 04 Jan 2012 20:33:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DB0ACB1C8; Wed, 4 Jan 2012 20:33:34 +0100 (CET) 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 jBgoPHVcbEEw; Wed, 4 Jan 2012 20:33:31 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62B8FCB1B7; Wed, 4 Jan 2012 20:33:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84BADCB1B7 for ; Wed, 4 Jan 2012 20:33:29 +0100 (CET) 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 pbbpF1azRHmx for ; Wed, 4 Jan 2012 20:33:18 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 895FACB1A2 for ; Wed, 4 Jan 2012 20:33:18 +0100 (CET) Original-Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q04JXHbZ024818 for ; Wed, 4 Jan 2012 20:33:18 +0100 Original-Received: from elhalyn-ethernet.fritz.box (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id q04JWHBm067252 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 4 Jan 2012 20:32:17 +0100 (CET) (envelope-from havdmeer@xs4all.nl) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.109.24.36; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0HGhvxhTr - 67c2f1d686ff - 20120104 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:73609 Archived-At: After a lot of experimenting I finally succeeded including a file with thw \xmlinclude macro. The next hurdle is how to extend the xml tree with its xml contents (if that is possibl, of course). Thus the main file being:
..
I would like to extend the tree starting with node
with subnodes coming from included xml-files: .. Then execute \xmlall on the subtree's. Of course another route (I have already explored) is to call \xmlprocessfile for the subtree's. But then I found I cannot retrieve other elements from
while processing the independent subtree. And that is just what I aimed for. I would appreciate your help. Hans van der Meer On 4 jan. 2012, at 14:23, Hans van der Meer wrote: > I would like to include files with the following input xml-file > > > > > > In the xmlsetup for I thought to place a call to \xmlinclude: > > \startxmlsetups xml:file > \xmlinclude{#1}{.}{location} > \stopxmlsetups > ___________________________________________________________________________________ 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 ___________________________________________________________________________________