From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: DocBook probleempje
Date: Fri, 15 Feb 2002 08:46:16 +0100 [thread overview]
Message-ID: <5.1.0.14.1.20020215084156.0300edd8@server-1> (raw)
In-Reply-To: <20020214231323.A651@scaprea>
At 11:13 PM 2/14/2002 +0100, Simon Pepping wrote:
>Hans,
>
>This looks good. But it does not reproduce the order of the elements
>right if one of the elements does not occur in the first row, but does
>in one of the following: it comes last.
>
>I think it is too ambitious to dynamically determine the order in such
>cases. So I reworked your code for the case of a predetermined order.
>
>% first pass, header
>
>\unprotect
>
>% when the element occurs, register it
>\def\environmentSaveElement#1%
> {\defineXMLenvironmentsave[#1]
> {\@EA\gdef\csname used!#1\endcsname{1}} \donothing}
>
>% if the element is used,
>% typeset the TH cell and add element to the list of elements used
>\def\showElementTH#1{%
> \@EA\ifx\csname used!#1\endcsname\relax\else
> \bTD#1\eTD
> \doglobal\addtocommalist{#1}\ElementsUsed
> \fi
>}
There are \doifXMLdata and \doifelseXMLdata that can be used for that;
saves hash entries and looks cleaner
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
fall-back web server:
www.pragma-pod.nl
-------------------------------------------------------------------------
prev parent reply other threads:[~2002-02-15 7:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020208220553.B384@scaprea>
2002-02-10 21:04 ` Hans Hagen
2002-02-11 21:15 ` Simon Pepping
2002-02-13 20:15 ` Hans Hagen
2002-02-14 22:13 ` Simon Pepping
2002-02-15 7:46 ` Hans Hagen [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=5.1.0.14.1.20020215084156.0300edd8@server-1 \
--to=pragma@wxs.nl \
--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).