From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73603 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: xml file inclusion Date: Wed, 4 Jan 2012 14:23:30 +0100 Message-ID: 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 1325683495 28438 80.91.229.12 (4 Jan 2012 13:24:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2012 13:24:55 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 04 14:24:51 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 1RiQpn-0008F6-93 for gctc-ntg-context-518@m.gmane.org; Wed, 04 Jan 2012 14:24:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8A1FDCB1B8; Wed, 4 Jan 2012 14:24:50 +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 B6r2MlG9+qbs; Wed, 4 Jan 2012 14:24:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E74BFCB1B4; Wed, 4 Jan 2012 14:24:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54685CB1B4 for ; Wed, 4 Jan 2012 14:24:46 +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 n2P50ib7TO3W for ; Wed, 4 Jan 2012 14:24:32 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 61F9DCB1B3 for ; Wed, 4 Jan 2012 14:24:32 +0100 (CET) Original-Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q04DOVw8004578 for ; Wed, 4 Jan 2012 14:24:31 +0100 Original-Received: from elhalyn-ethernet.fritz.box (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id q04DNVsX048490 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 4 Jan 2012 14:23:31 +0100 (CET) (envelope-from havdmeer@xs4all.nl) 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.29; 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: 0cGhpovSw - 1298edd49eba - 20120104 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:73603 Archived-At: 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 But this does not work and I get the following error message: ! LuaTeX error ...-new/tex/texmf-context/tex/context/base/lxml-aux.lua:368: attempt to index field '__p__' (a nil value) stack traceback: ...-new/tex/texmf-context/tex/context/base/lxml-aux.lua:368: in function 'include' ...-new/tex/texmf-context/tex/context/base/lxml-aux.lua:393: in function 'include' ...-new/tex/texmf-context/tex/context/base/lxml-tex.lua:430: in function 'include'
:1: in main chunk. What am I doing wrong? This is how I interprete the manual text "includes the file specified by attribute of the element located by lpath at node node. Hans van der Meer ___________________________________________________________________________________ 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 ___________________________________________________________________________________