Any new or unknown doctype triggers strict mode.
任何新的或未知的DOCTYPE将触发严格模式。
This is the canonical doctype for HTML 5 Web pages.
这是用于HTML5web页面的规范doctype。
If you don't have a doctype, you need to add one, as well as a character encoding.
如果没有doctype,则需要添加一个,以及字符编码。
If the migration is done with XSLT 1.0, the doctype cannot be included in the output.
如果用XSLT 1.0进行迁移,doctype不能包含在输出中。
For example, Saxon allows you to specify XSLT 1.1, and then set the doctype dynamically.
比如,Saxon允许指定XSLT 1.1,然后动态设置doctype。
Some processors allow you to get around this problem by setting the doctype with a variable.
某些处理程序允许通过变量设置doctype来绕过这个问题。
In this case, the Validator figured out what encoding and doctype your pages are, and then validated against them.
在本例中,Validator判断出您的页面属于哪种编码和doctype,然后对其进行验证。
The Validator actually does its best to detect what your page is, even if that doesn't match an existing doctype in your page.
Validator实际上能够最大限度地检测出您的页面是什么,即使结果可能与此页面内的现有doctype不匹配。
Note that your page does not have to validate according to the chosen doctype, the mere presence of the doctype tag is enough to trigger strict mode.
注意:你的网页并不一定要依据所选择的DOCTYPE去获得有效性验证,一个DOCTYPE标签足以触发严格模式。
Rather than trying to match an arbitrary doctype (perhaps entered in by an overzealous Web designer?), go with what the Validator suspects your page is.
只需采用Validator猜想的结果,而不要试图与任意的doctype相匹配(也许是一个过分热心的Web设计者输入的?)
Again, notice the use of the doctype-system and doctype-public attributes to attach the appropriate OASIS DITA DTD to the topic that the XSL transform created.
注意,这里使用了doctype - system和doctype - public属性来向xsl转换创建的主题附加适当的OASISDITADTD。
You can re-run the Validator, and you shouldn't notice a difference, unless you chose a doctype that didn't match what the Validator thought your page was aimed at.
您可以重新运行Validator,您应该不会注意到差别,除非您选择的doctype与Validator认为的您的页面目标不同。
For instance, remove white space and adopt strict XHTML coding practices for faster downloads and parsing. To enforce XHTML strict, add the following doctype statement to your document.
例如,删除空格并采用严格的XHTML编码实践,提高下载和解析速度。
This utility assumes that you will set the doctype on your own; however, it contains code that takes advantage of Saxon's XSLT 1.1 processing (this might work with other processors as well).
该工具假设您自己设置doctype,但是也包含利用SaxonXSLT 1.1处理能力(也可用于其他处理程序)的代码。
Note: Notice how in both Listing 7 and Listing 8 the doctype-system and doctype-public attributes available to xsl:output-encoding are also available for the xsl:result-document element.
注意:在清单7和 清单8 中,对xsl:output-encoding可用的doctype-system 和 doctype-public属性也对 xsl:result-document元素可用。
This appends a DOCTYPE tag along with the SYSTEM and DTD information.
这方法将附加DOCTYPE标签以及SYSTEM和DTD信息。
Or, they copied the DOCTYPE tag out of a book and don't know what it means.
或者是,他们从一本书上把DOCTYPE标签拷出来,却并不知道这意味着什么。
To enable validation, you include the document type (DOCTYPE) in your XML documents near the top.
为了实现验证,必须在XML文档的顶部附近包含文档类型(DOCTYPE)。
As mentioned in the first article of this series, for any migration, determine how to add a DOCTYPE.
正如第一篇文章所提到的那样,任何迁移都要决定如何添加DOCTYPE。
Remember, you can use any of the XHTML document types as long as you include the full !DOCTYPE declaration.
请记住,只要包含全部 !DOCTYPE声明,就可以使用任何XHTML文档类型。
Change your document to use the HTML 4.01 Strict DOCTYPE, and then validate your document, fixing each error reported.
将文档改为采用HTML 4.01StrictDOCTYPE,然后验证文档并修改报告出的错误。
The offline Web application specification does not dictate that you use this DOCTYPE; however, it is recommended that you do.
离线Web应用程序规范并不强制您使用这个DOCTYPE;但是,建议您这样做。
Lastly, the DOCTYPE entry allows us to refer to a particular DTD without using the formal public identifier or an actual filename.
最后,DOCTYPE项允许我们引用特殊DTD,而不需要使用正式公共标识或实际的文件名。
First, the only trigger for a browser to parse in standards mode is a DOCTYPE as the first line of an HTML or XHTML document, as Listing 1 shows.
首先,让浏览器用标准模式解析的惟一条件是HTML或XHTML文档的第一行包含DOCTYPE,如清单1所示。
Applications that rely on the file itself to reference the schema (through a DOCTYPE statement or through a schemaLocation attribute) are at risk.
依赖于文件本身来引用模式(通过doctype语句或schemalocation属性)的应用程序有一定风险。
Listing 5 shows the customary XML declaration, followed by a DOCTYPE statement that locates the DTD, in this case pointing at detail related to grammars.
清单5中首先展示常规的XML声明,然后是一个定位DTD的doctype语句,在本例中是指向与文法相关的详细信息。
The XSLT in Listing 41 copies text, element, and attribute nodes in the source XML document, but namespace nodes and the DOCTYPE declaration are omitted.
清单41中的XSLT复制源xml文档中的文本、元素和属性节点,但是忽略名称空间节点和DOCTYPE声明。
While the DOCTYPE declaration informs a browser to use standards mode, it will still parse the HTML according to the rules in that DTD — in this case, HTML 4.0.
虽然DOCTYPE声明告诉浏览器使用标准模式,但是它仍然会根据那个DTD——即HTML 4.0的规则去解析html。
Declaring named entities in an XML document's DOCTYPE declaration is straightforward, and using them in the document body is something you probably already know how to do.
在XML文档的DOCTYPE声明中声明命名实体很简单,而且您可能已经知道如何在文档主体中使用它们。
Declaring named entities in an XML document's DOCTYPE declaration is straightforward, and using them in the document body is something you probably already know how to do.
在XML文档的DOCTYPE声明中声明命名实体很简单,而且您可能已经知道如何在文档主体中使用它们。
应用推荐