Web Slice Format Specification - Version 0.9

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
to make portions of a Web page subscribe-able.
This document explains the Web Slice format.
- Web Slice Example
- Basic Properties
- Expiration Property
- Alternative Properties
- Bandwidth Properties
- Licensing Information
- Revisions
- Related Topics
Web Slice Example
The following example shows how a Web Slice is defined on a Web page for an auction.
<div class="hslice" id="slice1">
<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
- Required
- Uses the class name
entry-titleas defined in the hAtom Microformat
Entry Content
- Optional
- Uses the class name
entry-contentas 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
- Optional
- Uses class name
endtime - Uses the abbr-design-pattern
to encode the datetime
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
bookmarkas defined in the hAtom Microformat
- 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
. 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
- Added Alternative Display Source property
- Added Alternative Navigation property
- Updated Alternative Update Source property to allow reference to a Web Slice
Version 0.8
- First release
Related Topics
TRANSFORM YOUR BODY EVERY 90- DAYS!
Improve your health, Get better nutrttion have more energy.build lean muscle,Lose weight withoutbeing hungrey! Save time and money.
- 11/7/2011
- Body By Vi Lynda Bourgeois
I can't see how slices will be used (other than a basic test case) without requiring a working authentication model.
[jsudds.MSFT] Be sure to check out the new overview on this topic: Authenticated Web Slices.
http://msdn.microsoft.com/en-us/library/dd565670(VS.85).aspx
- 2/16/2009
- unique_username
- 4/7/2009
- John Sudds [Microsoft]
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
http://www.w3.org/TR/REC-html40/types.html#h-6.2
- 10/27/2008
- Jaap3
Hope this helps,
Charles Belov
SFMTA Webmaster
http://www.sfmta.com/webmaster
- 9/15/2008
- CharlesBelovSFMTA
Thanks for this great article on making Webslices.
I'm currently using webslices on one of my sites I designed, and I was looking for a way to give people the ability to uses slices on my pages, without having the issue that my counters think that every time when Internet Explorer 'pings' the system thinks it's a new visitor.
For example, on of the websites is: Tenneessee Podcasts. Like you can see, the first podcast is changed into a webslice div. When you cilck the purple box that IE8 adds, you now see that it tells the feedurl is ?webslice=true
Now I made my system this way, when the webpage opens with ?webslice=true in it's url, will not be counted as a visitor.
Is this a valid way to use Webslices, or is there a risk that my slice will have issues or problems in later builds?
Thanks,
Peter
[jsudds.MSFT] Yes, this approach works great. Alternatively, you could detect the RSS User Agent String (RSS Platform/2.0) which is only sent when the feedsync engine is making a request. Although there are cases where IE itself does the download, in which case your approach is better.
[jsudds.MSFT] PS: Don't forget that you can also use an alternative update source (feedurl property) to redirect traffic away from your home page.
- 6/4/2008
- Peter van Dam
- 9/11/2008
- John Sudds [Microsoft]
