XML文档就象微型数据库,而样式表就象脚本,它负责查询和操作来自那些文档数据库的数据。
XML documents are like tiny databases, and the stylesheets are like scripts that query and manipulate the data from those document databases.
简而言之,当设计数据文档的样式表时,首先考虑使用拉模型。
In short, when designing style sheets for data documents, consider using the pull model first.
这些指令告诉浏览器在显示该文档的时候使用您的样式表。
This tells the browser to use your stylesheet when displaying the document.
从XML文档和XSLT样式表构建工具的另一个引人之处是可以使我们向世界展示 XML 和 XSLT 在今天可以做到的有用工作。
One attraction of building tools from XML documents and XSLT style sheets was that it would enable us to show the world that XML and XSLT can do useful work today.
对于小型数据文档和简单的样式表,这并不是难题。
For small data documents and simple stylesheets this might not prove to be an issue.
重要的是要注意,只有返回一个格式良好的XML文档的xslt样式表可由程序集使用。
It is important to note that only XSLT stylesheets that return a well-formed XML document can be used by the assembly.
我还提供了命令行参数来设置输入文档、选择样式表和更改选项。
I have also provided command-line arguments to set the input document, choose a style sheet, and change the options.
这些文档分别称为xslt样式表和模式定义。
These documents are known as XSLT stylesheets and schema definitions, respectively.
可以利用XML模式就是一个XML文档的事实,编写样式表来将它处理成另一种形式。
You can take advantage of the fact that an XML schema is just an XML document and write a style sheet that processes it into another form.
正如前面所解释的那样,XM不会将文档和样式表混在一起。
As explained previously, XM does not mix documents and style sheets.
该类实现对一个XML文档应用xslt样式表的基本功能(参见清单2)。
This class has the fundamental job of applying an XSLT stylesheet to an XML document (see Listing 2).
不过,处理指令与HTML文档的级联样式表(CSS)类似。
However, processing instructions are similar to cascading style sheets (CSS) for HTML documents.
该插件在XM控制台中报告有关XML文档或样式表的问题。
The plug-in reports problems with your XML documents or your stylesheets in the XM console.
可以看到,样式表假设您将处理整个文档。
You can see that the stylesheet assumes you'll process the entire document.
实际上,HTML文档装入级联样式表与此阶段无关。
The fact that the HTML document loads a cascading style sheet is irrelevant at this stage.
在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.
从单个样式表创建多个结果文档。
从单个样式表创建多个结果文档。
Creating multiple result documents from a single style sheet.
您一定还记得:该处理器使用ReferenceResolver来装入文档和样式表。
You will recall that the processor USES ReferenceResolver to load documents and style sheets.
能够在文档的样式表被修改后发布文档。
Ability to publish a document if its style sheet has been modified.
XSLTProcessor函数要求源文档和样式表是一个DOMDocument对象,而不是一个字符串。
The XSLTProcessor function requires its source document and stylesheet as a DOMDocument object rather than as strings.
清单6 . multi . xsl,组合几个XML文档的样式表。
Listing 6. multi.xsl, a style sheet that combines several XML documents.
下载的数据包含一些常用的项,如DublinCore文档定义和Docbook样式表(Docbook是技术文档流行的xml格式)。
The downloaded data include some commonly used items like the Dublin Core document definition and a Docbook stylesheet (Docbook is a popular XML format for technical documentation).
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.
它用于处理源文档和样式表。
It is used to process both the source document and the style sheet. There are two parts to this.
代码(向您显示该页面的应用程序)、内容(XML文档)和显示(样式表(style sheet))是不同的。
The code (application that shows you this page), content (the XML document) and presentation (style sheets) are different.
要复制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.
当你想访问一个在互联网上文档之时,HTML文档、图片、样式表文件和任何文件都有一个MIME类型。
When you access a document over the Internet, the HTML document, images, style sheets, and any objects all have an associated MIME type.
不用花很长时间就可以编写一个用HTML发布该文档的样式表。
It would not take long to write a stylesheet that publishes it in HTML.
但是,如果一个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.
应用推荐