From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75078 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: xml tree extension? Date: Wed, 14 Mar 2012 14:58:23 +0000 Message-ID: <2778694C-7F4A-47EE-B607-25D7199E1670@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1811682351==" X-Trace: dough.gmane.org 1331737127 23590 80.91.229.3 (14 Mar 2012 14:58:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 14:58:47 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 14 15:58:45 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 1S7pf1-0006bU-5J for gctc-ntg-context-518@m.gmane.org; Wed, 14 Mar 2012 15:58:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70FDDCB2A8; Wed, 14 Mar 2012 15:58:42 +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 wq6965XyklbS; Wed, 14 Mar 2012 15:58:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B00ECB299; Wed, 14 Mar 2012 15:58:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BF52CCB299 for ; Wed, 14 Mar 2012 15:58:38 +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 h88UV9T72lRJ for ; Wed, 14 Mar 2012 15:58:24 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id DA3BFCB291 for ; Wed, 14 Mar 2012 15:58:24 +0100 (CET) Original-Received: from jansen.uva.nl (jansen.uva.nl [146.50.108.229]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2EEwO6x023270 for ; Wed, 14 Mar 2012 15:58:24 +0100 Original-Received: from bijvoet.uva.nl (146.50.108.241) by jansen.uva.nl (146.50.108.229) with Microsoft SMTP Server (TLS) id 14.1.355.2; Wed, 14 Mar 2012 15:58:23 +0100 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by bijvoet.uva.nl ([::1]) with mapi id 14.01.0355.002; Wed, 14 Mar 2012 15:58:24 +0100 Thread-Topic: xml tree extension? Thread-Index: AQHNAfLnv3s33cjxNUug9HgC4V7Vfg== 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.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.229; 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: 0RGJqWo3y - c162e0144e5a - 20120314 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:75078 Archived-At: --===============1811682351== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_2778694C7F4A47EEB60725D7199E1670uvanl_" --_000_2778694C7F4A47EEB60725D7199E1670uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is it possible to have the following order of actions? .. The file contains an xml-tree starting at .. At the moment I am processing the files with \xmlprocessfile{fileroot}{file= name}{}, but this generate separate node-lists for and ; a= t least, that is my understanding of its workings. Can I change the processing in such a way that something akin the following= tree structure is processed, each time with a new file: .. .. .. Or is it impossible to accomplish? Hans van der Meer --_000_2778694C7F4A47EEB60725D7199E1670uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <6E3EFA9972F5604B8182105BECED3881@uva.nl> Content-Transfer-Encoding: quoted-printable
Is it possible to have the following order of actions?

<root>
  <file name=3D"filename1">
  <file name=3D"filename2">
  ..
</root>

The file contains an xml-tree starting at <fileroot>..

At the moment I am processing the files with \xmlprocessfile{fileroot}= {filename}{}, but this generate separate node-lists for <root> and &l= t;fileroot>; at least, that is my understanding of its workings.

Can I change the processing in such a way that something akin the foll= owing tree structure is processed, each time with a new file:

<root>
  <file name=3D"filename1"/>
    <fileroot>
    ..
    </fileroot>
  <file name=3D"filename2"/>
    <fileroot>
    ..
    </fileroot>
  ..
</root>

Or is it impossible to accomplish?

Hans van der Meer



--_000_2778694C7F4A47EEB60725D7199E1670uvanl_-- --===============1811682351== 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 ___________________________________________________________________________________ --===============1811682351==--