equal
deleted
inserted
replaced
31 template "@* | node()" { |
31 template "@* | node()" { |
32 /* use real xsl:copy instead copy-of alias from yslt.yml2 */ |
32 /* use real xsl:copy instead copy-of alias from yslt.yml2 */ |
33 xsl:copy apply "@* | node()"; |
33 xsl:copy apply "@* | node()"; |
34 } |
34 } |
35 |
35 |
|
36 variable "mark" > =HMI=\n |
|
37 |
36 /* copy root node and add geometry as comment for a test */ |
38 /* copy root node and add geometry as comment for a test */ |
37 template "/" |
39 template "/" |
38 html xmlns="http://www.w3.org/1999/xhtml" { |
40 html xmlns="http://www.w3.org/1999/xhtml" { |
39 head; |
41 head; |
40 body style="margin:0;" { |
42 body style="margin:0;" { |
46 apply "$hmitree", mode="testtree"; |
48 apply "$hmitree", mode="testtree"; |
47 } |
49 } |
48 apply "@* | node()"; |
50 apply "@* | node()"; |
49 } |
51 } |
50 script{ |
52 script{ |
|
53 variable "midmark" > \n«$mark» |
|
54 apply """//*[contains(child::svg:desc, $midmark) or \ |
|
55 starts-with(child::svg:desc, $mark)]""", |
|
56 mode="code_from_descs"; |
|
57 | |
|
58 |
51 /*TODO add : |
59 /*TODO add : |
52 - pages content |
60 - pages content |
53 + with ref to elt ? |
61 + with ref to elt ? |
54 - widgets parameters |
62 - widgets parameters |
55 */ |
63 */ |
|
64 |
56 include text svghmi.js |
65 include text svghmi.js |
57 } |
66 } |
58 } |
67 } |
59 } |
68 } |
|
69 |
|
70 template "*", mode="code_from_descs" { |
|
71 | function js_«@id»() { |
|
72 | var path, role, path, priv; |
|
73 | |
|
74 value "substring-after(svg:desc, $mark)"; |
|
75 | |
|
76 | } |
|
77 | |
|
78 } |
|
79 |
60 |
80 |
61 template "bbox", mode="testgeo"{ |
81 template "bbox", mode="testgeo"{ |
62 | ID: «@Id» x: «@x» y: «@y» w: «@w» h: «@h» |
82 | ID: «@Id» x: «@x» y: «@y» w: «@w» h: «@h» |
63 } |
83 } |
64 |
84 |