The conversion can be carried out with an XSL stylesheet or script.
转换可以用xsl样式表或者脚本实现。
Then, I wrote an XSL stylesheet to convert the RSS into meaningful HTML.
然后,我编写了一个xsl样式表将RSS转换成有意义的HTML。
Wrap a Source around both your input XML document and your XSL stylesheet.
将Source包装在输入XML文档和xsl样式表中。
In this case, the XSL stylesheet we are going to use is called car.xsl.
在本例中,我们准备使用的xsl样式表被称为car . xsl。
Take a look at Listing 1, an example of a very simple portion of an XSL stylesheet.
看一看清单1,这是一个非常简单的XSL样式表的一部分。
Listing 2 shows the first part of the main XSL stylesheet for the generator project.
清单2显示了生成器项目中主xsl样式表的第一部分。
Tracexsl4.xsl — tracexsl stylesheet with tracexsl: trace and tracegroups support added.
xsl—添加了tracexsl:trace和tracegroups支持的tracexsl样式表。
The first one is applying the Schematron XSL stylesheet to the incoming request XML document.
第一个步骤是将 SchematronXSL样式表应用到传入的请求XML文档上。
The Transformer object processes the XSL stylesheet each and every time transform is executed.
每次执行transform ,Transformer对象都要处理xsl样式表。
This "rules document" is transformed into an XSL stylesheet using the Schematron XSL stylesheet.
这个 “规则文档” 通过使用SchematronXSL样式表被转换成一个 XSL 样式表。
JMeter also provides a less detailed XSL stylesheet file that summarizes the load tests' results.
JMeter也提供了一个不太详细的xsl样式表文件,用于总结负载测试的结果。
This directory listing contains the URLs of the test files and will be the input to the XSL stylesheet.
目录列表中包含测试文件的URL,并将作为xsl样式表的输入。
The reverse problem exists when an XSL stylesheet needs to generate qnames in WSDL document attributes.
当xsl样式表需要生成WSDL文档属性中的qname时,存在反向操作的问题。
An XSL stylesheet is retrieved from Registry and Repository and used to transform the inbound message.
——从Registry andRepository检索xsl样式表,并将其用于转换入站消息。
Having got this far, it's now a snap to generate a new XSL stylesheet to account for the new XML structure.
走到这一步,生成新的XSL样式表说明新xml结构就很容易了。
The XSL stylesheet processes all of the items within the RSS using an XPath definition to pick out the items.
这个XSL样式表使用一个XPath定义选择并处理RSS中的条目。
And on top of the threading issues, you've got to pay the processing cost for the XSL stylesheet over and over again.
在线程问题之上,必须一再地付出处理xsl样式表的成本。
With this in mind, let's now put together a quick XSL stylesheet, to convert the XML output of Listing 2 into a simple HTML page.
明白这一点后,我们来快速制作一个XSL样式表,将清单2的XML输出转换为一个简单的HTML 页面。
If you want to try all this out, the bundled files provide a simple XML file, XSL stylesheet, and source code (see Download).
如果想要全部尝试,绑定的文件提供了简单的XML文件、xsl样式表和源代码(参阅下载)。
Listing 4 illustrates the relationship between the XML input file, the XSL stylesheet, the XSLT processor, and multiple possible outputs.
清单4演示了XML输入文件、xsl样式表、XSLT处理程序和多种可能的输出之间的关系。
The resulting, new XSL stylesheet is then applied to each XML document and will, if the content is not as expected, produce the custom error messages.
然后,将产生的新的xsl样式表应用到每个XML文档,如果XML文档的内容不符合预期,则产生定制的错误消息。
To see whether this process works, I put together a simple.html file that references the output of the XSL stylesheet that I saved in a file called simple.js.
要检验此过程是否可以正常工作,我加入了一个simple . html文件,该文件引用我在simple . js保存的xsl样式表的输出。
Next, we will combine this JDOM Document with an XSL stylesheet and output the HTML-formatted results to a servlet's OutputStream for display in the user's browser.
下一步,我们将把这个JDOMDocument与一个xsl样式表结合起来并把html格式的结果输出到servlet的OutputStream上以便在用户的浏览器中显示。
The XSL stylesheet shown in Listing 8 obtains the specific error message that explains why the validation action failed and returns it to the client that issued the request.
清单8中显示的xsl样式表包含具体的错误消息,可以解释验证动作为何失败,并将它返回给发出请求的客户机。
This is another rather boring line of code: Just call newTransformer() on your factory and supply the method with the XSL stylesheet you want to use. Listing 4 shows you what to do
这是另一段相当令人厌烦的代码:只在工厂上调用newTransformer(),并为该方法提供要使用的XSL样式表。
One issue with the XSL stylesheet process is that it is very simple but also quite limited, both in your options for generating the VXML file, and, ultimately, in the VXML generated.
XSL样式表方法的一个问题是,虽然它非常简单,但是功能非常有限,在生成VXML文件时可用的选项和生成的 VXML两方面都受限制。
The transformToXML() method, which accepts the source XML data as an input argument, is then used to transform the XML document into an HTML page, using the rules specified in the XSL stylesheet.
transformToXML()方法接受源XML数据作为输入参数,然后使用XSL样式表中指定的规则将 XML文档转换为HTML页面。
An XSL stylesheet usually specifies the presentation of a class of XML documents by describing how an instance of the class is transformed into an XML document that USES the formatting vocabulary.
通过描述如何将类的实例转换成使用该格式化词汇表的XML文档,xsl样式表通常指定了该类XML文档的表示。
To add your own customizations, you can create your own stylesheet that first loads the default DocBook XSL stylesheet and then provides custom values for any parameters that you want to override.
若要进行定制,需要创建您自己的样式表以便先加载默认的DocBookxsl样式表,然后提供想要覆盖的那些特定参数的定制值。
The key components in our example Cocoon applications are the sitemap (sitemap.xmap) and stylesheet (XSL) files.
这个示例Cocoon应用程序中最重要的部分是sitemap (sitemap . xmap)和样式表(XSL)文件。
应用推荐