Web Slice Format Specification - Version 0.9

本文介绍了 WebSlice 格式的规范,包括基本属性、过期属性、替代属性、带宽属性等。通过示例展示了如何定义 WebSlice,以便用户订阅网页部分内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Web Slice Format Specification - Version 0.9

New for Windows Internet Explorer 8http://msdn.microsoft.com/zh-cn/library/cc304073(en-us,VS.85).aspx

[This documentation is preliminary and is subject to change.]

A Web Slice allows users to subscribe to a portion of a Web page. The Web Slice format consists of the minimum HTML annotations necessary to enable the publication and consumption of a mutable item on a Web page. Web publishers can use this format in conjunction with properties from hAtom Microformat World Wide Web link to make portions of a Web page subscribe-able.

This document explains the Web Slice format.

Web Slice Example

The following example shows how a Web Slice is defined on a Web page for an auction.

<div class="hslice" id="1">
   <p class="entry-title">Game System - $66.00</p>
   <div class="entry-content">
      <img src="game.jpg">
      <p>Auction ends: <abbr class="endtime" title="2008-02-28T12:00:00-05:00">6 hours</abbr></p>
   </div>
   <a rel="feedurl" href="www.ebay.com/game.xml">Subscribe to Feed</a>
   <p>This item updates every <span class="ttl">15</span> minutes.</p>
</div>

Basic Properties

The basic properties of a Web Slice are the Web Slice container, Entry Title, and Entry Content.

Web Slice
  • Required
  • Uses the class name hslice
  • Must include an id
  • Represents the entire region of the Web Slice that contains the title, description, and other Web Slice properties
Entry Title
Entry Content
  • Optional
  • Uses the class name entry-content as defined in the hAtom Microformat

Expiration Property

The Expiration property is used to indicate when an item is no longer active. For example, an auction item ends tomorrow or a flight arrives at 7:00 P.M. today.

End Time

Alternative Properties

These properties are used to specify different sources for display and navigation.

Alternative Display Source
  • Optional
  • Uses the rel name entry-content
  • Indicates the Web page for the display from the value of the href attribute
Alternative Navigation
  • Optional
  • Uses the rel name bookmark as defined in the hAtom Microformat World Wide Web link
  • Indicates the resource to use for navigation from the value of the href attribute

Bandwidth Properties

Sites can also specify properties to control how Internet Explorer updates a Web Slice.

Time to Live
  • Optional
  • Uses class name ttl
  • Represents the concept of Really Simple Syndication (RSS) 2.0 ttl element
  • Value must be expressed as minutes (integer)
Alternative Update Source

Alternatively, specify a different source from which to get updates.

  • Optional
  • Uses the rel name feedurl
  • The href attribute indicates the Web Slice or feed from which to get updates

Licensing Information

Microsoft's copyrights in this specification are dedicated to the public domain under the Creative Commons Public Domain Dedication. To view a copy of this dedication, visit http://creativecommons.org/licenses/publicdomain World Wide Web link. There is a separate patent promise called the Microsoft Open Specification Promise, available to parties interested in implementing software that conforms to this specification. This patent promise is available at http://www.microsoft.com/interop/osp/default.mspx.

Revisions

Version 0.9

Version 0.8

  • First release

Related Topics

转载于:https://www.cnblogs.com/ksoft/archive/2009/03/18/1415348.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值