Can now parse the following expressions - a mix of bkeeping, xml and xpath:
[Bookkeeping.git] / xml / bookkeeping.2.users.xml
blob71c82407762350f1b830019cdf15376aade031d9
1 <?xml version='1.0' encoding='UTF-8'?>  
2 <system xmlns='com/interrupt/bookkeeping' 
3                 xmlns:users='com/interrupt/bookkeeping/users' 
4                 xmlns:bkell='com/interrupt/bookkeeping/cc/bkell' 
5                 xmlns:command='com/interrupt/bookkeeping/cc/bkell/command'              xmlns:aauth='com/interrupt/bookkeeping/cc/bkell/aauth'          id='' >         
6         <!-- Authentication & Authorization information will not be given at this time.
7                 Should use an open, tested system for A & A. This is just an interface to that system.
8         -->
9         <users:users id="" >            <users:user id="" username="" password="" />
10         </users:users>  
11         
12         <!-- The main bookkeeping system 
13         -->     <bookkeeping />
14         
15         
16         <!-- The bkell(shell) sub-system
17         -->
18         <bkell:bkell id='bkell.main' >
19                 
20                 
21                 
22                 <!-- command results are put into a generic XML root -->
23                 <command:result />
24                 
25                 
26                 <!-- the memory sub-system, a list of user inputs -->
27                 <command:memory id='main.memory' >
28                         
29                         <command:variable name="" />
30                 </command:memory>
31                 
32                 
33                 <!-- these are the commands and all the tokens that command can use -->
34                 <command:commands id='commands.def' >
35                 
36                         <command:command name='create' >
37                                 
38                                 <command:tokens id='create.tokens' >
39                                         
40                                         <command:token name='debit' />
41                                         <command:token name='credit' />
42                                         <command:token name='entry' />
43                                         <command:token name='entries' />
44                                         <command:token name='journal' />
45                                         <command:token name='journals' />
46                                         <command:token name='transaction' />
47                                         <command:token name='account' />
48                                         <command:token name='accounts' />
49                                         
50                                 </command:tokens>
51                                 <command:tokenLiterals id='input.tokens' />
52                         </command:command>
53                         
54                         
55                         <command:command name='add' />
56                         <command:command name='remove' />
57                         <command:command name='reverse' />
58                         
59                         <command:command name='find' >
60                                 
61                                 <command:tokens id='find.tokens' >
62                                         
63                                         <command:token name='debit' />
64                                         <command:token name='credit' />
65                                         <command:token name='entry' />
66                                         <command:token name='entries' />
67                                         <command:token name='journal' />
68                                         <command:token name='journals' />
69                                         <command:token name='transaction' />
70                                         <command:token name='account' />
71                                         <command:token name='accounts' />
72                                 </command:tokens>
73                         </command:command>
74                         <command:command name='load' >
75                                 
76                                 <command:tokens id='load.tokens' >
77                                         
78                                         <command:token name='debit' />
79                                         <command:token name='credit' />
80                                         <command:token name='entry' />
81                                         <command:token name='entries' />
82                                         <command:token name='journal' />
83                                         <command:token name='journals' />
84                                         <command:token name='transaction' />
85                                         <command:token name='account' />
86                                         <command:token name='accounts' />
87                                         
88                                 </command:tokens>
89                         </command:command>
90                         <command:command name='list' >
91                                 
92                                 <command:tokens id='list.tokens' >
93                                         
94                                         <command:token name='debit' />
95                                         <command:token name='credit' />
96                                         <command:token name='entry' />
97                                         <command:token name='entries' />
98                                         <command:token name='journal' />
99                                         <command:token name='journals' />
100                                         <command:token name='transaction' />
101                                         <command:token name='account' />
102                                         <command:token name='accounts' />
103                                         
104                                 </command:tokens>
105                         </command:command>
106                         <command:command name='login' />
107                         <command:command name='logout' />
108                         <command:command name='exit' />
109                         
110                                                 
111                 </command:commands>
112                 
113                 
114                 
115                 
116                 
117                 <!-- The definitions of all the tokens and thier possible options
118                 -->
119                 <command:tokens id='tokens.def' >
120                         
121                         
122                         <command:token name='debit' optionRequired='false' >
123                                 
124                                 <command:optionSet id='oset' >
125                                         
126                                         <command:options id='entry.option' >
127                                                 <command:option name='entryid' value='0876-42356523-2456' />
128                                                 <command:option name='accountid' value='tims-34577143' />
129                                                 <command:option name='amount' value='155000.00' />
130                                         </command:options>
131                                         <command:options id='entryid.single.option' >
132                                                 <command:option name='entryid' value='' />
133                                         </command:options>
134                                         <command:options id='accountid.single.option' >
135                                                 <command:option name='accountid' value='' />
136                                         </command:options>
137                                         <command:options id='amount.single.option' >
138                                                 <command:option name='amount' value='' />
139                                         </command:options>
140                                         <command:options id='id.single.option' >
141                                                 <command:option name='id' value='' />
142                                         </command:options>
143                                         
144                                 </command:optionSet>
145                         </command:token>
146                         
147                         
148                         <command:token name='credit' optionRequired='false' >
149                                 
150                                 <command:optionSet id='oset' >
151                                         
152                                         <command:options id='entry.option' >
153                                                 <command:option name='entryid' value='' />
154                                                 <command:option name='accountid' value='' />
155                                                 <command:option name='amount' value='' />
156                                         </command:options>
157                                         <command:options id='entryid.single.option' >
158                                                 <command:option name='entryid' value='' />
159                                         </command:options>
160                                         <command:options id='accountid.single.option' >
161                                                 <command:option name='accountid' value='' />
162                                         </command:options>
163                                         <command:options id='amount.single.option' >
164                                                 <command:option name='amount' value='' />
165                                         </command:options>
166                                         <command:options id='id.option' >
167                                                 <command:option name='id' value='' />
168                                         </command:options>
169                                         
170                                 </command:optionSet>
171                         </command:token>
172                         
173                         
174                         <command:token name='entry' optionRequired='false' >
175                                 
176                                 <command:optionSet id='oset' >
177                                         
178                                         <command:options id='entrynum.option' >
179                                                 <command:option name='entrynum' value='' />
180                                                 <command:option name='journal' value='' />
181                                                 <command:option name='date' value='' />
182                                         </command:options>
183                                         <command:options id='entrynum.single.option' >
184                                                 <command:option name='entrynum' value='' />
185                                         </command:options>
186                                         <command:options id='journal.single.option' >
187                                                 <command:option name='journal' value='' />
188                                         </command:options>
189                                         <command:options id='date.single.option' >
190                                                 <command:option name='date' value='' />
191                                         </command:options>
192                                         <command:options id='id.single.option' >
193                                                 <command:option name='id' value='' />
194                                         </command:options>
195                                         
196                                 </command:optionSet>
197                         </command:token>
198                         
200                         <command:token name='journal' optionRequired='false' >
201                                 
202                                 <command:optionSet id='oset' >
203                                         
204                                         <command:options id='name.option' >
205                                                 <command:option name='name' value='' />
206                                         </command:options>
207                                         <command:options id='id.option' >
208                                                 <command:option name='id' value='' />
209                                         </command:options>
210                                         
211                                 </command:optionSet>
212                         </command:token>
213                         
214                         
215                         
216                         <command:token name='transaction' optionRequired='false' >
217                                 
218                                 <command:optionSet id='oset' >
219                                         
220                                         <command:options id='name.option' >
221                                                 <command:option name='name' value='' />
222                                         </command:options>
223                                         <command:options id='id.option' >
224                                                 <command:option name='id' value='' />
225                                         </command:options>
226                                         
227                                 </command:optionSet>
228                         </command:token>
229                         
230                         
231                         
232                         <command:token name='account' optionRequired='false' >
233                                 
234                                 <command:optionSet id='oset' >
235                                         
236                                         <command:options id='cweight.option' >
237                                                 <command:option name='name' value='' />
238                                                 <command:option name='type' value='' />
239                                                 <command:option name='counterWeight' value='' />
240                                                 
241                                         </command:options>
242                                         <command:options id='name.single.option' >
243                                                 <command:option name='name' value='' />
244                                         </command:options>
245                                         <command:options id='id.single.option' >
246                                                 <command:option name='id' value='' />
247                                         </command:options>
248                                         
249                                 </command:optionSet>
250                         </command:token>
251                         
252                         
253                 </command:tokens>
254                 
255         </bkell:bkell>
256         
257         
258 </system>