All XHTML elements must be nested within the root element.
所有的XHTML元素必须被嵌在根元素之中。
Next, introduce a new XHTML element, p-xforms, which can contain the xforms select element.
然后引入新的XHTML元素p - xforms,它可以包含x formsselect元素。
You can then define the XForms select-xhtml element appropriately, as shown in Listing 14.
然后定义适当的XFormsselect - xhtml元素,如清单14所示。
First, introduce a new XForms element select-xhtml, whose content set allows for the XHTML element p.
首先引入新的XForms元素select - xhtml,它的内容集允许xhtml元素p。
You can then define the XHTML element p-xforms with a content set that allows for the xforms select element, as shown in Listing 15.
然后定义XHTML元素p - xforms,它的内容集支持xformsselect元素,如清单15所示。
Note: the DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element and it should not have a closing tag.
注意:DOCTYPE声明并不是XHTML文档自身的一部分。它也不是XHTML元素,它不该有关闭标签。
We chose to normalize all the XHTML element selectors we knew we wanted to use by setting the margin and padding to zero, as shown in Listing 3.
对于我们要使用的所有XHTML元素选择器,将空白边和补白设置为零,从而防止浏览器应用默认样式,见清单3。
Note: the DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element, and it should not have a closing tag.
注意:DOCTYPE声明并不是XHTML文档自身的一部分。它也不是XHTML元素,它不该有关闭标签。
As an example, an ID on an XHTML element is used for linking within a document — and this is similar to how an anchor name within an HTML document can be used for internal links.
例如,使用XHTML元素的ID在文档内进行链接——这种方式类似于在HTML文档中使用锚点名称进行内部链接。
The loop simply iterates through the array and prints each line as it would do on the command line, but enforcing an XHTML break-line element after each print.
此循环迭代这个数组并打印每一行,与它在命令行上所做的无异,只不过在每次打印后均强制使用一个xhtml断行元素。
For example, a huge XHTML document that contains one big element would not enforce any reasonable block size.
例如,包含一个大的元素的大型XHTML文档不会强制任何合理的块大小。
In Listing 6, I present a simpler example — a transform for writing each paragraph element in an XHTML source document to a new result document.
清单6是一个更简单的例子,这个转换将xhtml源文档中的每个段落元素都写入新的结果文档中。
Assuming that your XHTML document is valid (and it is, right?), the id matching queries will only return one element, because IDs must be unique in a valid XML document.
假设您的XHTML文档是有效的(确实是的,对吧?),ID匹配查询将只返回一个元素,因为在有效的XML文档中,ID必须是惟一的。
In other cases, it might make sense to send an entire XHTML document (with an HTML root element) as the content.
其他情况下,可能合理的做法是在内容中发送完整的XHTML文档(根元素为html)。
The first column contains the announcement title, which is constructed as an XHTML anchor element that links to the announcement's detail page.
第一列包含公告标题,这构造成一个链接到公告的细节页面的xhtml锚元素。
With the response, it is also the binding that converts the response back into the XHTML, SVG or other viewable element within the original document.
在响应中,同样是绑定将响应转换回XHTML、SVG或原始文档中的其他可视元素。
In fact, one of the several attribute collections defined by XHTML 2.0 is the Hypertext attribute collection, which applies to every element in XHTML 2.0.
事实上,XHTML 2.0定义的几个属性集合中就包括超文本属性集合,适用于XHTML 2.0中的每个元素。
Each element or attribute name can be connected to one namespace, and in this way you could distinguish the anatomical "head" from the XHTML "head".
每个元素或属性名都和一个名称空间联系,这样就能把解剖学上的“head”和XHTML“head”区分开来。
Now, the mistake from Listing 1 (as described in the comment) is that the root element has inadvertently been left in the default namespace -- namely that of XHTML.
清单1中的错误(如注释中所述)在于不小心将root元素留在默认的名称空间XHTML 中了。
For historical reasons, the XHTML specifications themselves go against this guideline when naming the root element HTML; it could just as well have been renamed to document.
由于历史的原因,XHTML规范在命名根元素html时违背了这一原则,本来可以更名为document的。
Using the model presented here, working with extended content types within the atom: content element is no different than working with plain text, HTML or XHTML.
使用此处提供的模型处理atom:content元素中的扩展内容类型与处理纯文本、HTML或xhtml并无二致。
The XForms statement in Listing 3 binds the input control to a particular element in an XHTML document.
清单3中的xforms语句将输入控件绑定到XHTML文档的特定元素。
The core elements in DITA's topic DTD borrow from HTML and XHTML, using familiar element names like p, ol, ul, and dl within an HTML-like topic structure.
DITA主题DTD的核心元素借自html和XHTML,在类似HTML的主题结构中使用众所周知的元素名如p、ol、ul和dl。
Note that with the HTML doctypes, you don't need the XMLNS attribute on your HTML element. That's specific to XHTML (it's an XML namespace, but that's a subject for another article).
注意,使用htmldoctype,不需要html元素上的xmlns属性,这是特定于XHTML的(它是一个xml名称空间,但这是另一篇文章的主题。)
Listing 7 shows an example of the usage of repeat-nodeset on the XHTML table element.
清单7显示了一个在XHTMLtable元素上使用repeat -nodeset的例子。
The second option is to use a link element in an HTML or XHTML page.
第二种选择是在 HTML或XHTML 页面中使用一个link元素。
If the existing semantics of XHTML 2's elements aren't enough for you, the new role attribute, which can be added to just about any element, can tell you more about the element's purpose.
如果XHTML2元素中已有的语义对你来说还不够的话,新加入的role属性(可以被加入到任何元素中)可以告诉你元素更多的用途。
It is provided in an XHTML script element, which you can embed in any arbitrary XML, as far as Firefox is concerned (you might run into separate problems with schema compliance, of course).
XHTML链接元素通过一个xhtml脚本元素提供,因此只要使用到Firefox,就可以嵌入任何XML(当然,您可能会遇到模式兼容性的问题)。
Listing 2 illustrates the XHTML 2 equivalent of the body element from Listing 1.
清单2演示了与清单1中的body元素等价的XHTML 2 body元素。
For example, you don't need to make the local name of the linking element in the XHTML namespace xhtml-link.
比如,不需要在xhtml名称空间中把链接元素的本地名设成xhtml -link。
应用推荐