它使用占位符变量和简单的逻辑语句定义应该在模板中填充的数据。
It USES placeholder variables and simple logic statements to define what data should be populated into the template.
为此,我们使用了dojo的实用工具dojo . string . substitute,它接收字符串的模板和参数化的值并用给定的值替换这些占位符。
For this we use dojo's utility dojo.string.substitute, which receives a template for a string, with parameterized values, and substitutes the placeholders in the templates with the given values.
样式表使用了拉样式的XSLT(意味着经常使用xsl: for - each和xsl: value - of),而不是使用推样式(它使用许多模板和方式)。
The style sheets use the pull style of XSLT (which means frequent use of XSL: for-each and XSL: value-of) rather than the push style (which USES a lot of templates and modes).
应用推荐