equal
deleted
inserted
replaced
3 |
3 |
4 // HMI Tree computed from VARIABLES.CSV in svghmi.py |
4 // HMI Tree computed from VARIABLES.CSV in svghmi.py |
5 const "hmitree", "ns:GetHMITree()"; |
5 const "hmitree", "ns:GetHMITree()"; |
6 |
6 |
7 const "_categories" { |
7 const "_categories" { |
8 noindex > HMI_ROOT |
|
9 noindex > HMI_PLC_STATUS |
8 noindex > HMI_PLC_STATUS |
10 noindex > HMI_CURRENT_PAGE |
9 noindex > HMI_CURRENT_PAGE |
11 } |
10 } |
12 const "categories", "exsl:node-set($_categories)"; |
11 const "categories", "exsl:node-set($_categories)"; |
13 |
12 |
19 param "index", "0"; |
18 param "index", "0"; |
20 param "parentpath", "''"; |
19 param "parentpath", "''"; |
21 const "content" { |
20 const "content" { |
22 const "path" |
21 const "path" |
23 choose { |
22 choose { |
24 when "local-name() = 'HMI_ROOT'" > «$parentpath» |
23 when "count(ancestor::*)=0" > / |
|
24 when "count(ancestor::*)=1" > /«@name» |
25 otherwise > «$parentpath»/«@name» |
25 otherwise > «$parentpath»/«@name» |
26 } |
26 } |
27 choose { |
27 choose { |
28 when "not(local-name() = $categories/noindex)" { |
28 when "not(local-name() = $categories/noindex)" { |
29 xsl:copy { |
29 xsl:copy { |