1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
%D \module
%D [ file=t-account,
%D version=2007.01.15, % last change: 2008.02.13
%D title=\CONTEXT\ User Module,
%D subtitle=Miscelaneous,
%D author=Wolfgang Schuster,
%D date=\currentdate,
%D copyright=Wolfgang Schuster,
%D email=schuster.wolfgang@googlemail.com,
%D license=Public Domain]
\unprotect
\startxmlsetups xml:account
\xmlsetsetup{\xmldocument}{account|debits|credits|debit|credit}{*}
\stopxmlsetups
\xmlregistersetup{xml:account}
\startxmlsetups account
\bgroup
\startcollecting
\startcollect\startACCOUNT\stopcollect
\doifelsenothing{\xmlatt{#1}{name}}
{\startcollect[TACCOUNT]\stopcollect}
{\startexpandedcollect[\xmlatt{#1}{name}]\stopexpandedcollect}
\startcollect[\stopcollect
\doifsomething{\xmlatt{#1}{background}}{\startexpandedcollect background=\xmlatt{#1}{background},\stopexpandedcollect}
\doifsomething{\xmlatt{#1}{backgroundcolor}}{\startexpandedcollect backgroundcolor=\xmlatt{#1}{backgroundcolor},\stopexpandedcollect}
\doifsomething{\xmlatt{#1}{backgroundoffset}}{\startexpandedcollect backgroundoffset=\xmlatt{#1}{backgroundoffset},\stopexpandedcollect}
\doifsomething{\xmlatt{#1}{backgroundscreen}}{\startexpandedcollect backgroundscreen=\xmlatt{#1}{backgroundscreen},\stopexpandedcollect}
\doifsomething{\xmlatt{#1}{frame}}{\startexpandedcollect frame=\xmlatt{#1}{frame},\stopexpandedcollect}
\doifsomething{\xmlatt{#1}{framecolor}}{\startexpandedcollect framecolor=\xmlatt{#1}{framecolor},\stopexpandedcollect}
\doifsomething{\xmlatt{#1}{offset}}{\startexpandedcollect offset=\xmlatt{#1}{offset},\stopexpandedcollect}
\doifsomething{\xmlatt{#1}{calculate}}{\startexpandedcollect calculate=\xmlatt{#1}{calculate},\stopexpandedcollect}
\doifsomething{\xmlatt{#1}{rule}}{\startexpandedcollect rule=\xmlatt{#1}{rule},\stopexpandedcollect}
\startcollect]\stopcollect
\xmlflush{#1}
\startcollect\stopACCOUNT\stopcollect
\stopcollecting
\egroup
\stopxmlsetups
\startxmlsetups debits
\startcollect\startDEBITS\stopcollect
\xmlflush{#1}
\startcollect\stopDEBITS\stopcollect
\stopxmlsetups
\startxmlsetups debit
\startexpandedcollect
\noexpand\debit[\xmlatt{#1}{text}]{\xmlatt{#1}{value}}
\stopexpandedcollect
\stopxmlsetups
\startxmlsetups credits
\startcollect\startCREDITS\stopcollect
\xmlflush{#1}
\startcollect\stopCREDITS\stopcollect
\stopxmlsetups
\startxmlsetups credit
\startexpandedcollect
\noexpand\credit[\xmlatt{#1}{text}]{\xmlatt{#1}{value}}
\stopexpandedcollect
\stopxmlsetups
\protect \endinput
|