ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jano Kula <jano.kula@tiscali.cz>
To: ntg-context@ntg.nl
Subject: Re: XML ConTeXt
Date: Wed, 03 Nov 2010 01:09:11 +0100	[thread overview]
Message-ID: <iaq977$vrb$1@dough.gmane.org> (raw)
In-Reply-To: <C8F6479D.1F9B%daniel.grycman@rub.de>

On 11/02/2010 10:59 PM, Daniel Grycman wrote:
> Hi Wolfgang and list,
>
> I already used this multipage table. But the result showed a header for
> every entry of   the xml-source. Is there an option which I missed?

No option, you want to set up the header only once, hence you need to 
typeset it in the parent element of multiple <person> elements, here 
<personal>.

\startxmlsetups xml:personen:personal
\title{Personalverzeichnis}
\placelist[chapter]
\page
  % open table
  \bTABLE[split=yes,width=11em]
  \setupTABLE[row][*][width=\textwidth]
  \bTABLEhead
  \bTR \bTH Name \eTH \bTH Vorname \eTH \bTH Email-Adresse \eTH \bTH Raum
  \eTH \bTH Telefon \eTH \eTR
  \eTABLEhead
  \bTABLEbody
     % and now deeper to multiple persons (rows)
     \xmlflush{#1}
  % close table
  \eTABLEbody
  \eTABLE
\stopxmlsetups

\startxmlsetups xml:personen:person
   % here every person generates one row
   \bTR \bTD \xmltext{#1}{/Titel} \xmltext{#1}{/Name}  \eTD \bTD
   \xmltext{#1}{/Vorname} \eTD \bTD \xmltext{#1}{/Mail} \eTD \bTD
   \xmltext{#1}{/Raum} \eTD \bTD \xmltext{#1}{/Telefon} \eTD \eTR
\stopxmlsetups

Jano

> \startxmlsetups xml:personen:person % associate setups with elements
> \bTABLE[split=yes,width=11em]
> \setupTABLE[row][*][width=\textwidth]
> \bTABLEhead
> \bTR \bTH Name \eTH \bTH Vorname \eTH \bTH Email-Adresse \eTH \bTH Raum
> \eTH \bTH Telefon \eTH \eTR
> \eTABLEhead
> \bTABLEbody
> \bTR \bTD \xmltext{#1}{/Titel} \xmltext{#1}{/Name}  \eTD \bTD
> \xmltext{#1}{/Vorname} \eTD \bTD \xmltext{#1}{/Mail} \eTD \bTD
> \xmltext{#1}{/Raum} \eTD \bTD \xmltext{#1}{/Telefon} \eTD \eTR
> \eTABLEbody
> \eTABLE
> \stopxmlsetups
>
>
>
> Daniel
>
> Am 02.11.10 22:38 schrieb "Wolfgang Schuster" unter
> <schuster.wolfgang@googlemail.com>:
>
>>
>> Am 02.11.2010 um 22:17 schrieb Daniel Grycman:
>>
>>
>> Hi Jano and list,
>>
>> it works so far. But how can I set up a tablehead for the whole table?
>>
>>
>>
>>
>>
>> http://wiki.contextgarden.net/TABLE#Multipage_TABLEs
>>
>> Wolfgang
>>
>> __________________________________________________________________________
>> _________
>> 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
>> __________________________________________________________________________
>> _________
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>


___________________________________________________________________________________
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
___________________________________________________________________________________


      parent reply	other threads:[~2010-11-03  0:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02 19:50 Daniel Grycman
2010-11-02 20:22 ` Jano Kula
2010-11-02 21:17   ` Daniel Grycman
2010-11-02 21:38     ` Wolfgang Schuster
2010-11-02 21:59       ` Daniel Grycman
2010-11-02 22:07         ` Aditya Mahajan
2010-11-03  0:09         ` Jano Kula [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='iaq977$vrb$1@dough.gmane.org' \
    --to=jano.kula@tiscali.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).