This approach is a little less portable than XSLT templates, but you can use the function as part of other expressions in your style sheets.
这种方法的可移植性比xslt模板的稍微差点,但是您可以将该函数用作样式表中其它表达式的一部分。
You can use Boost static assertions in a class, function, or namespace scope; you can also use them with templates.
您可以在类、函数或命名空间范围中使用Boost静态断言;还可以与模板一起使用它们。
We use XSL: apply-templates on the results of the function, and display each software item in the template that matches on Statement, as shown in Listing 4.
如清单4所示,我们根据函数的结果使用xsl: apply - templates,并且显示模板内每个在Statement上匹配的软件项。
应用推荐