From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80803 Path: news.gmane.org!not-for-mail From: "H. van der Meer" Newsgroups: gmane.comp.tex.context Subject: using different xml-tree's? Date: Wed, 13 Feb 2013 21:19:46 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: multipart/mixed; boundary="===============1692794517==" X-Trace: ger.gmane.org 1360786792 15055 80.91.229.3 (13 Feb 2013 20:19:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 20:19:52 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 13 21:20:14 2013 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 1U5ioO-0002sk-OX for gctc-ntg-context-518@m.gmane.org; Wed, 13 Feb 2013 21:20:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 011FB1022C; Wed, 13 Feb 2013 21:19:53 +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 8-aI1Sp5Xv06; Wed, 13 Feb 2013 21:19:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 170B4101FA; Wed, 13 Feb 2013 21:19:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 79724101FA for ; Wed, 13 Feb 2013 21:19:49 +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 GR7NmTxjrqXj for ; Wed, 13 Feb 2013 21:19:48 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 43C78101F0 for ; Wed, 13 Feb 2013 21:19:48 +0100 (CET) Original-Received: from ezel.ic.uva.nl (ezel.ic.uva.nl [146.50.108.158]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r1DKJlFn006578 for ; Wed, 13 Feb 2013 21:19:47 +0100 Original-Received: from elhalyn-ethernet.fritz.box (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by ezel.ic.uva.nl (8.13.8/8.13.8) with ESMTP id r1DKJkBv003297 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 13 Feb 2013 21:19:46 +0100 X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.158; 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: 0VIXUjLzX - ebd1c15eab17 - 20130213 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:80803 Archived-At: --===============1692794517== Content-Type: multipart/alternative; boundary="Apple-Mail=_CC0CFF05-8E68-42B9-BF04-D91402C2875C" --Apple-Mail=_CC0CFF05-8E68-42B9-BF04-D91402C2875C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I would like to process my nodes in more than one way but I am = stuck with the implementation. The trees could start in a different setup: \startxmlsetups xml:dvdfirst:dvd .. \stopxmlsetups \startxmlsetups xml:dvdfirst:setups \xmlsetsetup{\xmldocument} {error|setup|dvd .. and \startxmlsetups xml:dvdsecond:dvd .. \stopxmlsetups \startxmlsetups xml:dvdsecond:setups ..=20 I thought I could call the variants (data collected in a buffer) with: \xmlprocessbuffer{dvd}{data.xml}{xml:dvdfirst:dvd} en \xmlprocessbuffer{dvd}{data.xml}{xml:dvdsecond:dvd} But this does not work. Neither for example ..{xml:dvdfirst} Guess I am mistreating the 3rd parameter of = \xmlprocessbuffer{}{}{initial-xml-setup}. The manual says "process the = tree starting with initial-xml-setup. What am I doing wrong? Hans van der Meer --Apple-Mail=_CC0CFF05-8E68-42B9-BF04-D91402C2875C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I = would like to process my <dvd> nodes in more than one way but I am = stuck with the implementation.

The trees could start = in a different setup:
\startxmlsetups = xml:dvdfirst:setups
= \xmlsetsetup{\xmldocument}
{error|setup|dvd = ..

and

\startxmlsetups = xml:dvdsecond:dvd .. \stopxmlsetups

I thought I could call the variants (data collected = in a buffer) with:
= \xmlprocessbuffer{dvd}{data.xml}{xml:dvdfirst:dvd}
en
= \xmlprocessbuffer{dvd}{data.xml}{xml:dvdsecond:dvd}

<= /div>
But = this does not work. Neither for example ..{xml:dvdfirst}
Guess = I am mistreating the 3rd parameter of = \xmlprocessbuffer{}{}{initial-xml-setup}. The manual says "process the = tree starting with initial-xml-setup.

What am I doing wrong?

Hans van der Meer



= --Apple-Mail=_CC0CFF05-8E68-42B9-BF04-D91402C2875C-- --===============1692794517== 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 ___________________________________________________________________________________ --===============1692794517==--