Figure 3 shows a search result for Teoma.
图3显示了使用Teoma产生的搜索结果。
As stated above, the Teoma script is nearly identical.
前面已经说过,teoma脚本与它几乎是相同的。
Each instance is named box, yahoo, and teoma, as seen in Listing 1.
如清单1所示,三个实例的名称分别为box、yahoo和teoma。
Inside the case statements, the basic format of both the Yahoo and the Teoma output displays is very similar.
在case语句中,yahoo与teoma输出显示的基本格式非常相似。
The Yahoo-specific information is also passed to the Teoma search engine, but is just ignored by the Teoma PHP proxy.
Yahoo特定信息同样也传递给了Teoma搜索引擎,但是会被Teomaphp代理忽略。
Since Teoma did not specify a namespace with their data, the nodes can be referenced by the names given in the XML only.
因为Teoma并没有为数据指定名称空间,所以只能使用XML中给定的名称来引用节点。
Yahoo's XML field names are different from Teoma but there is one other important difference: Yahoo specifies a namespace in the returned XML.
不过它们之间还有另一个重要的区别:Yahoo在返回的XML 中指定了名称空间。
In this case, the teoma search case is named teo instead of teoma so it does not conflict with the instance name, and a similar naming is true for the Yahoo submission.
本例中,teoma搜索的情形被命名为teo而不是teoma,这样便不会与实例名相冲突。Yahoo提交也使用了类似的命名方法。
It would be tempting in this case to re-use the IDs teoma and yahoo later in the switch/case/toggle mechanism, but that will not work because those names refer to the instance data.
在本例后面的switch/case/toggle机制中重用teoma和yahoo这两个ID会是个不小的诱惑,但是由于它们的名称都引用了实例数据所以并不能正常运行。
It would be tempting in this case to re-use the IDs teoma and yahoo later in the switch/case/toggle mechanism, but that will not work because those names refer to the instance data.
在本例后面的switch/case/toggle机制中重用teoma和yahoo这两个ID会是个不小的诱惑,但是由于它们的名称都引用了实例数据所以并不能正常运行。
应用推荐