The transformation is done by an XSL processor.
转换由xsl处理器完成。
The same principle applies for the XSL processor.
同一原则适用于XSL处理器。
Usually, the extension methods are written in the same language as that of the XSL processor.
通常,扩展方法是用和XSL处理器相同的语言编写的。
As we will see, the XSL processor finds this information most easily by matching the root element.
如我们将看到的,通过匹配根元素,XSL处理器可以最轻易地找到该信息。
The result of this pre-processing is fed to an XSL processor, which generates the final XML document.
预处理的结果作为XSL 处理程序的输入,后者生成最终的XML 文档。
In some XSL processors, like Xalan, there are even extension methods written directly into the processor.
在某些XSL处理器中(如xalan),甚至有直接写到处理器中的扩展方法。
This XML could be dropped into another, larger XML document, displayed online, or passed into an XSL processor.
XML可以放入另外一个更大的XML文档、在线显示或者传递给XSL处理程序。
You're probably accustomed to starting with an XML file — something like phonebook.xml — and passing it into an XSL processor.
您可能习惯以xml文件开始(比如phonebook . xml),并将其传递到XSL处理器中。
That means the XSL processor looks for XML elements that match the expression defined by the "select" attribute of <xsl:apply-tempates>.
这意味着:XSL处理器查找与
As a first step of the transformation, the XSL processor should be given a template that non-ambiguously matches some part of the source.
作为变换的第一步,应该给XSL处理器一个明确匹配源xml某一部分的模板。
Be warned, though, that FOP — Formatting Objects processor, the open-source XSL processor from Apache — does not fully implement the keep properties.
然而,需要警告的是,FOP (FormattingObjectsProcessor,格式化对象处理器)—Apache的开放源码XSL处理器—没有完全实现keep特性。
A positive note: the XSL processor cache does not need to be flushed; XSL processors with associated style sheets can be used until the style sheets change, which typically does not occur at run time.
正面评价:不必清除XSL处理器缓存。与样式表关联的XSL处理器可以一直使用到样式表改变为止,但样式表的更改一般不会在运行时发生。
You can do the job with an open-source XSLT processor, the XSL Formatting Objects (XSL-FO) vocabulary, and a formatting-object engine.
您可以利用开放源码XSLT处理器、XSL格式化对象(XSL Formatting Objects,XSL-FO)词汇表和格式化对象引擎来做这项工作。
In addition to its familiar place on XSL: stylesheet, that attribute is recognized by a 2.0 processor on inner elements, as described in the section on scoping standard attributes.
除了最常见的放在xsl:stylesheet元素中以外,2.0处理程序还可以在内部元素中识别该属性,如标准属性作用域一节所述。
This transformation is simple because the FOP tool used as the fo processor in the XSL-FO tutorial examples now supports percentages as values of the font-size property.
这个转换比较简单,因为在XSL - fo教程示例中用作fo处理器的FOP工具现在支持以百分比作为font - size属性的值。
To verify that the template is reached, place an XSL: message element at the top of the template to signal when the processor does indeed reach it.
为了检查是否执行了模板,可以在模板的开头加上xsl:message元素说明处理程序确实执行到了这里。
Since XSL: element creates an element in the output, it's necessary to let the XSLT processor create a namespace declaration for the fin namespace, as well.
因为xsl:element在输出中创建了元素,所以有必要让XSLT处理器也为fin名称空间创建名称空间声明。
The stylesheet contains a template (XSL: template) for every element in Listing 2 and it relies on the XSLT processor to select the most appropriate template.
该样式表包含清单2中每个元素的模板(xsl:template),它依赖XSLT处理器选择最适合的模板。
A simple example is when a 1.0 processor executes a 2.0 stylesheet template and encounters an XSL: document instruction.
一个简单的例子就是1.0处理程序执行2.0样式表模板或者遇到xsl:document指令。
If an XSL: function element has an XSL: fallback instruction, then an XSLT 1.0 processor ignores the XSL: function element entirely and does not execute its XSL: fallback.
如果xsl:function元素具有xsl:fallback指令,则XSLT 1.0处理程序将完全忽略x sl: function元素,不执行其xsl: fallback。
Depending on the value of the XSL: output statement, the processor may write the result according to XML or HTML syntax.
根据xsl:out put语句的值,处理程序可以按照XML或者html语法写入结果。
The as attribute in the first XSL: variable element instructs the XSLT processor to leave the value of the variable as a sequence of arbitrary items, not convert it to an RTF.
第一个xsl:variable元素中的a s属性告诉XSLT处理程序将变量的值作为一个序列,而不是将其转换为rtf。
When a vendor implements the schema Awareness feature module (see Parts 1 and 3 of this series), the XSLT processor will accept the XSL: import-schema declaration.
如果厂商实现了模式感知特性模块(请参阅本系列的第1和3部分),XSLT处理程序就应该接受xsl:import - schema声明。
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 exception is the XSL: sort instruction, where the lang attribute tells the processor that it should sort strings in a manner consistent with the cultural conventions of the specified language.
这个例外就是xsl:sort指令,它的lang属性告诉处理程序应该按照和指定语言的文化传统一致的方式排序字符串。
The 1.0 processor simply ignores all children except the XSL: fallback elements and executes those in order.
处理程序将忽略xsl:fallback之外的所有子元素,并按照顺序执行这些指令。
The quickest way to find out which processor you're using is to print its name from an XSL: message element.
确定所用处理程序最简单的办法是用xsl:message元素打印出它的名字。
To create the HTML for display on our site, I created a prototype set of XSL transforms. By using an XSLT processor such as Sablotron, our guide XML files can be converted into HTML as follows
为了创建在站点上显示的HTML,我创建了XSL转换的原型集合。
To create the HTML for display on our site, I created a prototype set of XSL transforms. By using an XSLT processor such as Sablotron, our guide XML files can be converted into HTML as follows
为了创建在站点上显示的HTML,我创建了XSL转换的原型集合。
应用推荐