File: README.config

package info (click to toggle)
jabberd2 2.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,016 kB
  • sloc: ansic: 37,099; sh: 1,108; perl: 656; xml: 561; makefile: 511; python: 238; ruby: 145; sql: 55
file content (32 lines) | stat: -rw-r--r-- 968 bytes parent folder | download | duplicates (5)
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

 *** Configuration values substitution ***

Node data in config is refernced as ${node.name}, for example ${id} wil be replaced with value of node <id>

- First occurence of node is used for substitution.
 For instance,value of 'asd' wil be 'value1', not 'value2' in following sample:

<sm>
    <qqq>value1</qqq>
    <qqq>value2</qqq>
    <asd>${qqq}</asd>
</sm>

- Multiple variable substitution is supported '${qqq}_${qqq}' from example above will be substituted as 'value1_value1'

- Nested substitution is supported. var3 will contain 'prefix_value-of-v_suffix' in sample below:

<sm>
    <var1>value-of-v</var1>
    <var2>prefix_${var1}_suffix</var2>
    <var3>${var2}</var3>
 </sm>

- ${..} is replaced with node's content defined above only.
 ${some.node} must be used after <some><node>val</node></some> otherwise warning will be logged.
 The following config will cause warning upon loading:

<sm>
    <var2>${var1}</var2>
    <var1>value-of-v</var1>
 </sm>