表头可为简单表头或多重表头,表头标题自动居中(大于列宽度时换行打印);
The heading may be a single one or more and the title will be typed out in the middle of the paper automatically (If it is beyond the given width, it will move to another line).
注意,当在一个表达式后面发现一个换行时,表达式的值就会被直接打印出来。
Note that, when a newline is seen after an expression, the value of the expression is simply printed.
从内部机制看,在创建字符串时换行符会被忽略,在打印字符串时可以看出这一点。
Internally, the newline character is ignored when creating the string, as is shown when the string is printed.
这使print语句打印字符值时后面跟着空格字符,而不是换行字符。
This makes the print statement print out the character value, followed by a space character instead of a newline character.
由其名称可以明显看出,display是打印出参数的函数,而newline是只打印出一个回车换行字符的函数。
As is obvious from their names, display is a function that prints out its argument and newline is a function that simply prints out an end-of-line character.
现在得到了XML测试文件的内容,我使用value - of标签打印运行的测试名,后面通过xsl:text标签增加了回车换行符(如清单5所示)。
Now, with the contents of the XML test file in hand, I use the value-of tag to print the name of the test run followed by a carriage return with the XSL: text tag (see Listing 5).
现在得到了XML测试文件的内容,我使用value - of标签打印运行的测试名,后面通过xsl:text标签增加了回车换行符(如清单5所示)。
Now, with the contents of the XML test file in hand, I use the value-of tag to print the name of the test run followed by a carriage return with the XSL: text tag (see Listing 5).
应用推荐