All remote content (RSS, CDF, etc) is passed through a content
control (mozilla-control.xsl) stylesheet which pulls down the URL
via a Panther Proxy and
applies the correct stylesheet. The proxy is used so that we can
buffer remote content and it can also access "resource:" URIs
directly from the WAR. The correct stylesheet is chosen based on
content type and is responsible for generating XML with the correct
structure.
Example:
 |
 |
 |
 |
<control xmlns="http://schemas.openprivacy.org/reptile/control"
xmlns:dc="http://purl.org/dc/elements/1.1/"
lastModified="1013213096">
<!-- specify your content specific information here
The following attributes are allowed:
- subscribe: (boolean) specifies that this content be subscribed to.
If you are generating complex content that may fail if it
is subscribed t you can disable subscription here.
- help: this specifies a link to reptile online help. If this is
specified their must be a corresponding link in help.xml.
-->
<content subscribe="true" help="search">
<!-- The URL/Link to this content for more information -->
<link>http://www.slashdot.org/</link>
<dc:date>Tue Jun 12 2001 08:04 PM</dc:date>
<dc:title>Slashdot: News for nerds, stuff that matters</dc:title>
<dc:description>
Channel description goes here.
</dc:description>
<body>
<!-- XHTML or your presentation specific content should be within this
element. For example you could have an XHTML table or a WML table.
You could have HTML 3.2 code or just an image. -->
</body>
<!-- the number of URLs shown in this control, if necessary -->
<shownCount>5</shownCount>
<!-- Enable specific control features:
For example this feature enables up to update the read/unread marks for
a specific channel.
-->
<feature name="urn:reptile/channel/feature/read-marks"/>
</content>
<!-- location and content type of this content -->
<location>http://www.slashdot.org/slashdot.rdf</location>
<contentType>http://my.netscape.com/rdf/simple/0.9/</contentType>
</control>
|
 |
 |
 |
 |
This provides a mechanism similar but more powerful than a Portlet API.
This allows us to plugin XML content into a reusable framework
and allows each piece of content to be subscribed to and
presented across multiple pages.
|