From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76944 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: problem with xtable Date: Sat, 16 Jun 2012 10:24:23 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1495930101==" X-Trace: dough.gmane.org 1339842286 18049 80.91.229.3 (16 Jun 2012 10:24:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2012 10:24:46 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 16 12:24:46 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 1SfqBQ-0004yt-Fm for gctc-ntg-context-518@m.gmane.org; Sat, 16 Jun 2012 12:24:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28151101E5; Sat, 16 Jun 2012 12:24:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JNFW8NtAzWyw; Sat, 16 Jun 2012 12:24:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B9CC101E0; Sat, 16 Jun 2012 12:24:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2240C101E0 for ; Sat, 16 Jun 2012 12:24:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 67UezmOVkcR4 for ; Sat, 16 Jun 2012 12:24:41 +0200 (CEST) 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 0794E101DD for ; Sat, 16 Jun 2012 12:24:40 +0200 (CEST) Original-Received: from jansen.uva.nl (jansen.uva.nl [146.50.108.229]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5GAONvF008595 for ; Sat, 16 Jun 2012 12:24:24 +0200 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by jansen.uva.nl ([146.50.108.229]) with mapi id 14.01.0355.002; Sat, 16 Jun 2012 12:24:23 +0200 Thread-Topic: problem with xtable Thread-Index: AQHNS6oyCAYJfDDz3063A5K3s/xcDg== 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: 0QHmWonC4 - 3f4960c0fca5 - 20120616 (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.13 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:76944 Archived-At: --===============1495930101== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BC8A6132C7224559B5F426A4CDE72243uvanl_" --_000_BC8A6132C7224559B5F426A4CDE72243uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Using \startxtable gives an error, whereas \startembeddedxtable does not. W= hat is the cause, what is the difference? Hans van der Meer Error: Runaway argument? \xmlflush {test::4}\stopxtable \endgroup \stoptext ! File ended while scanning use of \buff_gobble. Working: \startxmlsetups xmlcommon:table \startembeddedxtable[ \xmlflush{#1} \stopembeddedxtable \stopxmlsetups Not working: \startxmlsetups xmlcommon:table \startxtable \xmlflush{#1} \stopxtable \stopxmlsetups Calling this with: \usemodule[hvdm-xml] % contains simple definitions for
th= rough \startxcell etc. \startxmlsetups test \xmlsetsetup{\xmldocument}{test}{test:*} \stopxmlsetups\xmlregistersetup{test} \startxmlsetups test:test \xmlflush{#1} \stopxmlsetups \startbuffer[test-1]
one two
\stopbuffer \starttext \xmlprocessbuffer{test}{test-1}{} \stoptext --_000_BC8A6132C7224559B5F426A4CDE72243uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <5C26163E33016142A2A0439192D93949@uva.nl> Content-Transfer-Encoding: quoted-printable Using \startxtable gives an error, whereas \startembeddedxtable does not. W= hat is the cause, what is the difference?

Hans van der Meer


Error: Ru= naway argument?
\xmlflush {test::4}\stopxtable  \endgroup 
\stoptext
! File ended while scanning use of \buff_gobble.

Working:
\startxmlsetups xmlcommon:table 
\start= embeddedxtable[
\xmlfl= ush{#1}
\stope= mbeddedxtable
\stopxmlsetups

Not working:
\startxmlsetups xmlcommon:table
\st= artxtable
\xm= lflush{#1}
\st= opxtable
\stopxmlsetups

Calling this with:
\usemodule[hvdm-xml] % contains simple definitions for <table> &= lt;tr> <td> through \startxcell etc.

\startxmlsetups test
\xmlse= tsetup{\xmldocument}{test}{test:*}
\stopxmlsetups\xmlregistersetup{test}

\startxmlsetups test:test
\xmlfl= ush{#1}
\stopxmlsetups

\startbuffer[test-1]
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<test>
<table>
<tr= >
<td= >one</td>
<td= >two</td>
</t= r>
</table>
</test>
\stopbuffer

\starttext
\xmlprocessbuffer{test}{test-1}{}
\stoptext

--_000_BC8A6132C7224559B5F426A4CDE72243uvanl_-- --===============1495930101== 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 ___________________________________________________________________________________ --===============1495930101==--