svghmi/hmi_tree.ysl2
branchsvghmi
changeset 2874 b67af0b8dc72
parent 2873 022db76c3bff
child 2877 682bce953795
equal deleted inserted replaced
2873:022db76c3bff 2874:b67af0b8dc72
    43     apply "following-sibling::*[1]", mode="index" {
    43     apply "following-sibling::*[1]", mode="index" {
    44         with "index", "$index + count(exsl:node-set($content)/*)";
    44         with "index", "$index + count(exsl:node-set($content)/*)";
    45         with "parentpath" > «$parentpath»
    45         with "parentpath" > «$parentpath»
    46     }
    46     }
    47 }
    47 }
       
    48 
       
    49 // Debug data
       
    50 template "*", mode="testtree"{
       
    51     param "indent", "''";
       
    52     > «$indent» «local-name()» 
       
    53     foreach "@*" > «local-name()»="«.»" 
       
    54     > \n
       
    55     apply "*", mode="testtree" {
       
    56         with "indent" value "concat($indent,'>')"
       
    57     };
       
    58 }
       
    59 function "debug_hmitree" {
       
    60     | Raw HMI tree
       
    61     apply "$hmitree", mode="testtree";
       
    62     |
       
    63     | Indexed HMI tree
       
    64     apply "$indexed_hmitree", mode="testtree";
       
    65 }
       
    66 !debug_output_calls.append("debug_hmitree")