That starts with reading microformats from a page.
先来读取一个页面中的微格式。
Think about how you can deploy microformats in your pages.
考虑如何在页面中部署微格式。
One problem with microformats is that there isn't a generic way to parse them.
微格式存在一个问题,即没有一种解析它们的通用方式。
But before that, let me talk a little about the pros and cons of microformats.
在此之前,先简要介绍一下微格式的优点和缺点。
Now look at these microformats in more detail to see how to implement them in your code.
现在查看这些微格式的具体信息,以查看怎样在代码中实施它们。
The lack of support for microformats in these lightweight markup languages is understandable.
这些轻量级标记语言缺乏对微格式的支持是可以理解的。
That's the big con of new standards — even XML standards — and the big plus of microformats.
这是新标准乃至XML标准的一个很大的缺点,却是微格式的显著优点。
The first line of Listing 3 loads the microformats API, which is needed for anything else to work.
清单3中的第一行加载微格式api,这是其他后续工作的基础。
Although both Microsoft and Yahoo have shown some support for microformats, is it enough to stop Google?
尽管微软和雅虎已经开始支持微格式,是不是已经足以抵御Google了呢?
The philosophy of microformats is to reuse existing semantic formats, especially HTML, as much as possible.
微格式的指导思想是尽可能重用已有的语义格式,特别是HTML。
This method accepts a microformats name, a document reference to start the search from, and an optional array of parameters.
该方法的参数包括微格式名称、搜索的文档引用和可选的参数数组。
At this point, it looks like Google is forging ahead with its own structured data standards - and largely ignoring microformats.
不过,Google似乎在打造它自己的结构化数据标准,忽视了微格式。
This article looks to bring back some perspective of where microformats make sense and where something else is worth a hard look.
这篇文章旨在介绍微格式的适用范围,以及一些值得重点注意的地方。
Google has started to index a handful of vocabularies around people, reviews and video content using both microformats and RDFa.
Google已开始用微格式和RDFa为涉及大众、评论以及视频内容的词汇建立索引。
Ultimately the goal of microformats is to make data easier for humans to parse, while keeping the data friendly for machines to parse.
微格式的最终目标是让数据更便于人类阅读,同时保持数据对机器解析的友好性。
In the last XML Matters article, I mentioned that microformats could really come into their own when coupled with Atom (see Resources).
上一期“XML问题”文章中,我提到只有与Atom结合起来微格式才能真正得到应用(请参阅参考资料)。
First, when the user clicks the Grab toolbar button, you want it to search the current page for microformats and store the first one it finds.
首先,当用户单击Grab工具栏按钮的时候,需要搜索当前页面中的微格式并存储找到的第一个微格式。
In contrast to RDFa, microformats reuse existing XHTML attributes that web content authors were already used to, such as the rel attribute on links.
与rdfa相比,微格式重用了Web内容作者已经习惯的现有xhtml属性,比如链接上的rel属性。
Dethe Elza, my recent guest columnist, has presented a number of interesting ideas surrounding Ajax, microformats, and Atom that I think bear further exploration.
我最近的客座专栏作家DetheElza围绕着Ajax、微格式和Atom提出了一些有趣的观点,我认为值得进一步探讨。
Parsing them, however, is a trickier business as (being HTML) microformats don't have a distinctive, accepted mime type to distinguish them from standard requests.
解析它们则需要花一些脑筋,因为(以HTML的形式存在的)Microformats没有一个特定的、被接受的mime类型来将它们与标准的请求(译者注:这里主要指http请求)区分开来。
Some of the basic ideas behind microformats are sound, but it has turned into a huge hype machine such that people sometimes don't think about why and where microformats make sense.
微格式内部的一些基本思想是相当合理的,不过它的作用被大肆夸大了,以致于人们有些时侯不会去考虑微格式的适用范围和适用缘由。
A bigger problem is that it's possible for such conventions to clash but, for the most part, microformats ignore such problems, hoping that lightweight agreements will solve them as they arise.
还有一点更突出的问题,就是此类约定有可能会产生冲突,不过对于大部分情况,微格式都会忽略此类问题,它期望轻量级协议能在问题刚出现的时候就及时地解决它们。
Popular microformats are hCard, which describes personal and company contact information, hReview, which adds meta information to review pages, and hCalendar, which is used to describe events.
比较流行的Microformats标签包括hCard:描述个人及公司联系信息;hReview:添加到评论页的meta信息;与hCalendar:描述事件的标签。
Microformats are a pragmatic approach to solving the issue of structured data on the Web.
微格式是一种注重实效的方法,解决了Web上结构化数据的问题。
Microformats allow you to present metadata in your HTML using existing standards (see Resources).
微格式可以在HTML 中使用现有标准(请参阅 参考资料)表示元数据。
Microformats exist for narrow but common items of data such as contact information and calendar items.
Microformats的存在是为了服务有限但常见的数据项(如联系人信息和日历项)。
Microformats, another version of structured data in XHTML, was launched a little more than a year later by a grassroots group of developers.
微格式是XHTML中另一版本的结构化数据,它由一群草根开发人员在一年多后推出。
Microformats are a series of data formats that use existing (x) HTML and CSS constructs to embed raw data within the markup of a human-targeted Web page.
微格式就是一系列的数据格式,它利用现有的(X)HTML和CSS构造将原始数据嵌入到以人类为目标的网页的标记中。
Microformats allow users to mix in information about all sorts of extended concerns, such as calendar information, personal contact information, or picture metadata.
微格式允许用户在信息中混合各种类型的扩展内容,如日历信息、个人联系信息或者图片元数据。
Microformats should be one tool available for expression of rich content on the Web and should complement, rather than supplant, other such technologies like XML on the Web, and even Ajax.
微格式应该成为一个可用于在Web上表示丰富内容的工具,并且应该补充(而不是替代)一些其他的此类技术,例如Web上的XML甚至Ajax。
应用推荐