Bring your doctype in line with your page.
让doctype与页面一致。
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,则需要添加一个,以及字符编码。
When you get a response from the Validator, focus on the doctype (see Figure 6).
从Validator获得响应之后,集中处理doctype(参见图6)。
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元素可用。
The other thing to note here is the DOCTYPE for the page.
这里需要注意的另一点是该页面的 DOCTYPE。
For example, your DOCTYPE might read something like Listing 5.
例如,DOCTYPE可能类似于清单5。
This appends a DOCTYPE tag along with the SYSTEM and DTD information.
这方法将附加DOCTYPE标签以及SYSTEM和DTD信息。
Part 2 will include a tip for specifying a DOCTYPE in the SVG example.
第2部分将包括在SVG例子中指定DOCTYPE的提示。
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所示。
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所示。
应用推荐