yml2/yslt.yml2
changeset 58 a218553807ab
parent 52 b4a9a3122abb
child 65 d659b8c2ed22
equal deleted inserted replaced
57:2f4ad3800a3f 58:a218553807ab
     1 // YSLT version 2.5.5
     1 // YSLT version 2.6.2
     2 
     2 
     3 !!
     3 !!
     4 def indent(level):
     4 def indent(level):
     5     return "value 'substring($space, 1, $_indent+" + str(level) + "*$autoindent)';"
     5     return "value 'substring($space, 1, $_indent+" + str(level) + "*$autoindent)';"
     6 !!
     6 !!
    47 
    47 
    48     decl textstylesheet is estylesheet(*output="text") {
    48     decl textstylesheet is estylesheet(*output="text") {
    49         output *output;
    49         output *output;
    50         const "space", !"'" + " " * 200 + "'"!;
    50         const "space", !"'" + " " * 200 + "'"!;
    51         param "autoindent", 4;
    51         param "autoindent", 4;
    52         xsl:template "text()";
    52         xsl:template match="text()";
    53         content;
    53         content;
    54     }, tstylesheet is textstylesheet;
    54     }, tstylesheet is textstylesheet;
    55 
    55 
    56     decl template(match) {
    56     decl template(match) {
    57         _trace_param *_trace_info;
    57         _trace_param *_trace_info;