通过应用这个简单的概念,您可以根据其他类似的条件,使用多个样式表。
You can apply this simple concept to use multiple style sheets based on other similar conditions.
使用导入或包含样式表,尤其是如果确实需要条件包含的话。
Using imported or included stylesheets, especially if you really wanted conditional inclusion.
为了编写可用于1.0、2.0以及将来版本的样式表,可以结合使用条件和use - when来避免静态错误,不管是用什么版本的处理程序。
To write a stylesheet that will work with 1.0, 2.0, and a future version, then you can combine conditional and use-when to avoid static errors no matter which version of processor you are using.
为了把line和相应的订单联系起来,样式表使用了订单号,如条件o:line[o:ORFF = $orff] 中所示。
To associate the lines with their order, the stylesheet uses the order number, as shown in the condition o:line[o:ORFF = $orff].
这是一种非常有用的工具,如果没有满足XPath条件,样式表作者可以通过该工具从转换中去掉某个完整的元素、模板或者整个样式表模块。
This is a very useful tool that allows the stylesheet writer to exclude completely certain elements, templates, or entire stylesheet modules from the transformation if an XPath condition is not met.
这是一种非常有用的工具,如果没有满足XPath条件,样式表作者可以通过该工具从转换中去掉某个完整的元素、模板或者整个样式表模块。
This is a very useful tool that allows the stylesheet writer to exclude completely certain elements, templates, or entire stylesheet modules from the transformation if an XPath condition is not met.
应用推荐