要复制XML文档,但又要将元素的限定名重命名为另一个限定名,您需要匹配输入文档和样式表之间的名称空间URI。
To copy an XML document, but rename an element from one qualified name to another, you need to match namespace URIs between the input document and the stylesheet.
例如,我最近在所谓的“管道”中实现了它,该“管道”通过xslt样式表和定制过滤器的组合来转换输入文档。
For example, I recently implemented it in a so-called "pipe" that transforms input documents through a combination of XSLT style sheets and custom-made filters.
样式表是一个指令集合,它指定特定类型的数据作为输入,并指定其他一组数据和格式化作为输出。
A stylesheet is a set of instructions that specify certain types of data as input and specify some other set of data and formatting as output.
我还提供了命令行参数来设置输入文档、选择样式表和更改选项。
I have also provided command-line arguments to set the input document, choose a style sheet, and change the options.
即,它是使用XML文档和样式表作为输入,然后生成结果文档作为输出的程序。
That is, it is a program that takes an XML document and a style sheet as input and produces a result document as output.
清单4演示了XML输入文件、xsl样式表、XSLT处理程序和多种可能的输出之间的关系。
Listing 4 illustrates the relationship between the XML input file, the XSL stylesheet, the XSLT processor, and multiple possible outputs.
如您所见,该方法将样式表作为输入,以在那个Transformer实例的所有变换中使用。
As you see, this method takes the style sheet as input to use in all transformations for that Transformer instance.
我将使用另一个完全相同的tracexsl4 . xsl的副本作为注释样式表的输入。
I'll use another identical copy of tracexsl4.xsl as input to the annotated stylesheet.
同样,使用同一个tracexsl4 . xsl副本作为这个带有选择性注释的样式表的输入。
Again, an identical copy of tracexsl4.xsl is used as input to this selectively annotated stylesheet.
真正的样式表通常会使用generate - id函数或输入文档提供的真正的标识符生成标签和链接。
A real stylesheet typically produces labels and links by using the generate-id function or a real identifier provided in the input document.
我们设计了一个前端过程(也是一个ant脚本),它运行样式表,将输入文档转换成ant的build文件。
A front-end process (also an Ant script) runs the stylesheet to transform the input documents into the Ant build file.
在监督XPath元素和属性名称的拼写时(包括样式表中和输入文档中),您可以做些什么?
What can you do to guard against typos in XPath element and attribute names (both in your stylesheet and in your input documents)?
XMLT技术示例的 XMLT_Sample_Flow消息流演示了如何使用该节点,样式表将图1中的输入消息转换为图2 中的输出消息。
The XMLT_Sample_Flow message flow from the XMLT technology sample demonstrates the use of the node, and the stylesheet will transform the input message in Figure 1 into the output message in Figure 2.
它可以用XML模式验证输入和输出,允许根据schema类型引用样式表中的源节点。
It validates your input and output against an XML schema, and it allows you to refer to source nodes in the stylesheet based on their schema type.
诀窍就是使用逐字复制其输入的样式表。
The trick is to use a style sheet that copies its input verbatim. This only requires one template, as shown with in Listing 4
这个方法只需要一个输入源——恰好是远程RSS提示,使用final . xsl样式表把它转换成headlines .html文件。
This method simply takes an input source, which happens to be a remote RSS feed, and transforms it, using the final.xsl stylesheet, to the headlines.html file.
很多样式表都包含了一些负责处理输入文档叶元素的简单模板。
Most stylesheets contain dozens of simple templates that are responsible for processing leaf elements in input documents. For example, you store a price inside an element.
transformToXML()方法接受源XML数据作为输入参数,然后使用XSL样式表中指定的规则将 XML文档转换为HTML页面。
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.
但是,如果一个xslt样式表对一个大型输入文档执行复杂操作或处理,那么应该考虑样式表所用结构对性能的影响。
But when an XSLT stylesheet performs complex operations or works on a large input document, it's time to start thinking about the performance impact of constructs used in the stylesheet.
为提高性能,从磁盘读取的样式表缓存在内存中——节点不能缓存输入消息提供的样式表。
To improve performance, stylesheets read from disk are cached in memory - the node does not cache stylesheets that are supplied in the input message.
因为样式表的输入是预处理程序的输出,样式表可以有效地输出预处理程序生成的XML文档。
Since the input to the stylesheet is the output of the pre-processor, the stylesheet effectively outputs the XML document generated by the pre-processor.
因为输入的XML数据包含统一的元素列表,所以在样式表中可以根据地址对这些元素进行分类。
Since the incoming XML data just contains a flat list of elements, you'll group them by address in the stylesheet.
为了测试正则表达式,样式表只是不加改变地复制其输入。
To test the regular expression, the stylesheet simply copies its input unmodified.
目录列表中包含测试文件的URL,并将作为xsl样式表的输入。
This directory listing contains the URLs of the test files and will be the input to the XSL stylesheet.
最简单的解决方案是提供一个额外的样式表,该样式表不修改输入,如“清单4”中的 identity.xsl。
The easiest solution is to provide one extra style sheet that does not modify the input, such as identity.xsl in Listing 4.
使用不具转换功能的样式表 —实际上指不执行任何操作但回转所接收的输入内容的样式表 —称作标识转换(identity transformation)。
Using a non-transforming stylesheet—essentially a stylesheet that does nothing but echo out what it receives as input—is called an identity transformation.
将Source包装在输入XML文档和xsl样式表中。
Wrap a Source around both your input XML document and your XSL stylesheet.
将Source包装在输入XML文档和xsl样式表中。
Wrap a Source around both your input XML document and your XSL stylesheet.
应用推荐