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.wolfg...@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
___________________________________________________________________________________