用PHP对XML数据应用样式表。
它递归地遍历一组目录,在这个过程中应用样式表。
It recursively walks through a set of directories, applying the style sheet as it goes along.
使用其他方法时,对于每次请求都必须解析xml和应用样式表转换。
In this case, upon every request the XML has to be parsed and style sheet transformations have to be applied.
大多数情况下,xm会中断链接,因为它在应用样式表时会重命名某些文件。
In most cases, XM breaks links because it renames some files while applying the style sheet.
下一专栏将会有趣许多,因为我计划添加一种机制来对文件系统应用样式表。
The next column will make it more interesting since I plan to add a mechanism to give style sheets access to the file system.
当前版本具有一种只对更改过的文件应用样式表的便利机制和可以维护和验证站点的链接管理。
The current version boasts a handy mechanism that applies style sheets only to those files that have changed, and link management that maintains and validates the site links.
在这个过程中,它也许会应用样式表并重命名文件(将扩展名从. xml更改成.html)。
In the process it may apply a style sheet and rename the file (change the extension from.xml to.html).
transformToFile对另外一个ButterflyXmlDocument对象表示的XML文档应用样式表,并将转换后的内容写到指定的文件路径。
TransformToFile applies the stylesheet to an Xml document, represented by another ButterflyXmlDocument object, and writes the transformed content to the specified file path.
然后,将产生的新的xsl样式表应用到每个XML文档,如果XML文档的内容不符合预期,则产生定制的错误消息。
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.
简言之,您拥有在此处放置抽象层的空间,可以实现为两个按顺序应用的xslt样式表。
In short, you have room for another layer of abstraction here, implemented as two XSLT stylesheets to be applied in sequence.
如果您没看过那篇文章,我可以告诉您,配置文件控制着应用哪些样式表,以及结果应该怎样。
If you missed that article, the configuration file controls which style sheets are applied and what the result should be.
要注意SVG如何运用了将级联样式表(CSS)类应用于不同图形对象的思想。
Notice how SVG uses the idea of Cascading Style Sheet (CSS) classes applied to various graphic objects.
只有一个窍门:它在复制XML文件之前对它们应用了一个样式表。
There's only one twist: It applies a style sheet to the XML files before copying them.
因为在php中对XML应用xslt样式表的方法通常是相同的,因此,可以将特定于业务的代码提取出来,从而实现更易重用的过程。
Since the mechanics of applying XSLT stylesheets to XML in PHP are generally the same, the process can be refactored out of the business-specific code into something more reusable.
顶部的规则,然后是其下的规则,都应用到页面和样式表上。
Rules at the top are applied, then rules below them, and on through your page and stylesheet.
可以用样式表给不同的数据元素应用显示样式。
The stylesheet would be used to apply presentation styles to different data elements.
首先我将创建一个样本样式表,对其应用跟踪程序。
I'll start by creating a sample stylesheet to apply the tracer to.
当网站需要创建许多样式表时,您可能想要应用这个技巧。
You will want to apply this tip when your Web site requires the creation of many style sheets.
这允许按顺序应用几个样式表来完成多阶段转换。
This allows a you to achieve a multiphase transformation by applying several style sheets in sequence.
应用程序更好地运用样式表,并生成更复杂的样式表。
The application makes better use of stylesheets and generates a more sophisticated stylesheet.
如果将某个给定xsl样式表应用于某个给定xml文档,将会输出什么?
What will be the output if a given XSL style sheet is applied to a given XML document?
该类实现对一个XML文档应用xslt样式表的基本功能(参见清单2)。
This class has the fundamental job of applying an XSLT stylesheet to an XML document (see Listing 2).
将样式表应用于XML文档时,在输出中包含已转换结果的创建日期通常都很有用。
When a style sheet is applied to an XML document, it is often helpful to include the creation date of the transformed result in the output.
通过使用XSLT处理器,应用定义在样式表中的规则来完成文档转换。
The document transformation usually is accomplished by applying the rules defined in a style sheet through the use of an XSLT processor.
在PHP5中使用 XSL模块,您可以对XML文档应用XSLT样式表,将 XML 数据转换为其他类型的文本文档。
With the XSL module in PHP 5, you can apply XSLT stylesheets to XML documents to transform the XML data into some other type of text document.
最常见的例子是对XML文件应用xslt样式表。
The most common case is that of applying an XSLT stylesheet to an XML file.
应用一般的样式表或转换。
对专门化主题类型应用常规样式表或转换。
Applying a general style sheet or transform to a specialized topic type.
通过应用不同的样式表,可以把它转换成XHTML或者DocBook。
By applying various style sheets, you can then make the transition to, say, XHTML or DocBook.
清单3c显示了当应用常规样式表时下列元素的结果。
The result of the following element when the generic style sheet is applied is shown in Listing 3c.
应用推荐