Module name:
xmlfeed
The XML-Feed Gear uses XSL-Transformation to display content from a local or remote XML file according to the transformation rules provided by a local or remote XSL file. This gear can serve as a simple XSLT gear or can display content from various external content providers. For example, an instance of the XML-Feed Gear can be configured to act as a real-time stocks, weather, or news gear.
The XML-Feed Gear uses the standard Jakarta Xtags tag library. You should enable gear caching to optimize gear performance for gears that utilize XML parsing. Gear caching is enabled by default for the sample XML Feed Gear. Gear caches use time-based expiration so any changes made to the underlying XML file are reflected in the user’s portal experience once the cache timeout expires.
You can have more than one XML-Feed Gear on a page, with each gear receiving a different feed.
Configuring the XML-Feed Gear for Simple XSLT
Point the XML and XSL sources to the appropriate location. The Stocks, Weather and Business-News versions of the XML-Feed Gear in the Content Syndication Gear Folder are good examples of how to use this gear for simple XSLT.
Configuring the XML-Feed Gear for External Content Providers
The XML-Feed Gear provides a framework for configuring it with various external XML content providers. The gear users can customize the content. These customization parameters are mapped to the URL of the XML source. For more information on gear parameters and customization, refer to the Portal Development Guide.
Installation Configuration
You can configure the source feed installation settings of the XML-Feed Gear.
On the Gears tab of the Portal Administration Pages click the configure link next to the XML-Feed Gear name.
The Xmlfeed Gear Install Configuration Page opens.
Set the following source feed and output parameters:
Base XML Source:
Additional Query Parameters Mapping:
XSL Source for Shared Mode, HTML Output:
XSL Source for Full Mode, HTML Output:
XSL Source for Shared Mode, WML Output:
XSL Source for Full Mode, WML Output:
Show a link to the full mode in shared mode: Enter true if you want the shared display mode version of the gear to include a link that opens the gear in full display mode.
Click Update.
The gear is updated to use the new settings.
Instance Configuration
The Configure Basics page for an instance of the XML-Feed Gear allows you to configure the usual gear basics:
Gear Name
Gear Description
Sharing
Make visible to
The additional configuration page for the XML-Feed Gear allows you to configure each of the source feed and output parameters that you can configure in the Portal Administration’s installation configuration for the gear:
Base XML Source
Additional Query Parameters Mapping
XSL Source for Shared Mode, HTML Output
XSL Source for Full Mode, HTML Output
XSL Source for Shared Mode, WML Output
XSL Source for Full Mode, WML Output
Show a link to the full mode in shared mode