What could have been a presentation simply listing safety rules in bullet points to be scanned now was something far more personal.
而如果仅仅以要点的形式把安全规则列出来,这样的展示效果会怎么样呢?像现在这样就明显更加个性化。
Let's start by defining the relevant terms in the presentation content.xml (see listing 12).
让我们从定义演示content . xml中的相关术语开始(见清单12)。
Note that the second line in Listing 5 has been wrapped for presentation purposes.
请注意,清单5中的第二行出于显示的原因进行了回绕。
When you use this style sheet to style the original schema fragment, the resulting presentation style sheet would look something like Listing 5.
当用该样式表来样式化原始模式片段时,生成的表示样式表类似于清单5所示。
Look at the examples in Listing 1 and Listing 2 to see at a glance the difference between raw content and content combined with presentation technology.
查看清单1和清单2中的示例,了解一下原始内容和应用了表示技术的内容之间的差异。
Listing 1 shows a simple XML code sample for adaptive presentation.
清单1给出了自适应表示的一个简单的XML代码示例。
The XML model and XSL template forming the core of the presentation layer are shown in Listing 8.
清单8中显示了构成表示层核心的xml模型和XSL模板。
A typical produced statement looks like the example in Listing 5 (wrapped for presentation).
产生的典型语句看起来如清单5中的示例所示(为显示起见进行了折行)。
Listing 2, which is much more complex than the one above, shows the same data wrapped in presentation technology and ready for display in an HTML-capable browser.
清单2要比清单1更加复杂,使用表示技术对相同的数据进行了装饰,并可以立即表示在支持HTML的浏览器中。
Listing 2 (stats.css) shows some declarations for tweaking the presentation of Listing 1.
清单2 (stats . css)显示了一些声明,用于调整清单1中的外观。
Listing 5 shows a sample XQuery report that handles selection of links, sorting, and presentation.
清单5显示了一个示例XQuery报告,这个报告处理链接的选择、分类和表示。
In Listing 2, take a look at one output line from dtd2sql and then see how to pick apart its pieces (some wrapping added for presentation).
在清单2中,可以看到来自dtd2s ql的一个输出行,然后理解如何将其各个部分拆解(为显示起见添加了一些折行)。
Listing 1 - Adaptive presentation in XML code.
清单1-自适应表示的XML代码。
Listing 6 shows the output portion of the XForms presentation.
清单6显示了XForms表示的输出部分。
Taking this one step further, we can tell Drupal to use a template file to define the presentation of this list by defining the file name within this overriding function, as shown in Listing 10.
还可以更进一步,可以在这个覆盖函数中定义一个文件名,从而让Drupal使用一个模板文件定义这个列表的显示,见 清单 10。
To avoid including dojo libraries in the presentation layer, include them in the.js file created in Step 1. Listing 1 shows sample code to enable the inclusion of dojo.js.
为了避免在表示层中包含dojo库,应该在步骤1中创建的.js文件中包含它们。
Note that the second line in Listing 5 has been wrapped for presentation purposes.
请注意,清单5中的第二行出于显示的原因进行了回绕。
Note that the second line in Listing 5 has been wrapped for presentation purposes.
请注意,清单5中的第二行出于显示的原因进行了回绕。
应用推荐