svghmi/gen_index_xhtml.ysl2
branchsvghmi
changeset 2874 b67af0b8dc72
parent 2873 022db76c3bff
child 2875 6a12e1084deb
equal deleted inserted replaced
2873:022db76c3bff 2874:b67af0b8dc72
   262 
   262 
   263     template "/" {
   263     template "/" {
   264         comment > Made with SVGHMI. https://beremiz.org
   264         comment > Made with SVGHMI. https://beremiz.org
   265 
   265 
   266         // use python to call all debug output from included definitions
   266         // use python to call all debug output from included definitions
   267         // '&bug' is a workaround for old pyPEG that choke on empty python results
   267         // '&bug' is a workaround for pyPEG that choke on yml2 python results not parsing to a single call
   268         !"&bug "+"\n".join(["comment {|\n| %s:\n call \"%s\";\n| \n}"%(n,n) for n in debug_output_calls])!
   268         !"&bug {"+"\n".join(["comment {\n| \n| %s:\n call \"%s\";\n| \n}"%(n,n) for n in debug_output_calls]) +"}"!
   269 
   269 
   270         // TODO
       
   271         comment {
       
   272             apply "$hmitree", mode="testtree";
       
   273         }
       
   274         comment {
       
   275             apply "$indexed_hmitree", mode="testtree";
       
   276         }
       
   277         comment {
   270         comment {
   278             | Detachable :
   271             | Detachable :
   279             foreach "$detachable_elements"{
   272             foreach "$detachable_elements"{
   280                 | «@id»
   273                 | «@id»
   281             }
   274             }
   512     //     }
   505     //     }
   513     //     ||
   506     //     ||
   514     // }
   507     // }
   515 
   508 
   516 
   509 
   517     /**/
       
   518     template "*", mode="testtree"{
       
   519         param "indent", "''";
       
   520         > «$indent» «local-name()» 
       
   521         foreach "@*" > «local-name()»="«.»" 
       
   522         > \n
       
   523         apply "*", mode="testtree" {
       
   524             with "indent" value "concat($indent,'>')"
       
   525         };
       
   526     }
       
   527     /**/
       
   528 
   510 
   529     function "defs_by_labels" {
   511     function "defs_by_labels" {
   530         param "labels","''";
   512         param "labels","''";
   531         param "mandatory","'yes'";
   513         param "mandatory","'yes'";
   532         param "hmi_element";
   514         param "hmi_element";