From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79949 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: here is ae Date: Mon, 17 Dec 2012 10:15:47 +0100 Message-ID: <50CEE2C3.9030107@wxs.nl> References: <50CCA053.5020706@uni-bonn.de> <50CDD0CB.5020402@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355735757 22794 80.91.229.3 (17 Dec 2012 09:15:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2012 09:15:57 +0000 (UTC) Cc: "Schmitz Thomas A." To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 17 10:16:12 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 1TkWnx-0001q5-My for gctc-ntg-context-518@m.gmane.org; Mon, 17 Dec 2012 10:16:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2CC0F10255; Mon, 17 Dec 2012 10:15:56 +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 br3fxZfvl6BN; Mon, 17 Dec 2012 10:15:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id F17BD1023C; Mon, 17 Dec 2012 10:15:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3E1F21023C for ; Mon, 17 Dec 2012 10:15:48 +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 K2yANOvUqALd for ; Mon, 17 Dec 2012 10:15:43 +0100 (CET) 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 2C47C10232 for ; Mon, 17 Dec 2012 10:15:43 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qBH9FfYE005626 for ; Mon, 17 Dec 2012 10:15:41 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 8182-1713362 for multiple; Mon, 17 Dec 2012 10:15:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=16; city=Zeewolde; latitude=52.3302; longitude=5.5364; http://maps.google.com/maps?q=52.3302,5.5364&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIAxfFor - 70116303f1ae - 20121217 (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.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79949 Archived-At: On 12/16/2012 10:07 PM, Schmitz Thomas A. wrote: > > On Dec 16, 2012, at 2:46 PM, Hans Hagen wrote: > >> Using xml sounds ok to me (esp as you know how to do it) ... with xinclude you mean combining multiple files into one? It's what we do in all xml related projects here. There is actually an \xmlinclude command >> >> \xmlinclude{main}{include}{filename|href|name} >> >> this will include from elements with tags 'include' and one of the attributes mentioned. Do this as one of the first steps as it merges xml trees. >> >> Hans > > Hi Hans, > > thanks for your suggestion. Yes, I mean combining multiple files into one document. Sorry that I didn't see \xmlinclude, that's of course just what I was looking for. But after searching the list, I saw a couple old messages by Hans dan der Meer which made me realise I have no idea yet how to use it. Something like this? > > file chapter_1.xml > > text > > > file > text > > > and then > > file master.xml > > > > > Would translate to > > \startxmlsetups xml:xi:include > \startchapter > \xmltext{#1}{chapter} > \stopchapter > \stopchapter > > Is that the basic structure, or am I misunderstanding the way this could be used? well, that bit of code is *not* going so save the world (1) master tex file \startxmlsetups xml:setups \xmlinclude{#1}{xi:include}{href} \xmlsetsetup{#1}{document|chapter}{xml:*} \stopxmlsetups \xmlregistersetup{xml:setups} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:chapter \startchapter[title=\xmltext{#1}{title}] \xmlall{#1}{content} \stopchapter \stopxmlsetups \starttext \xmlprocessfile{main}{master.xml}{} \stoptext (2) master xml file (with balanced quotes) (3) proper chapters: one text and two text Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________