Previous Contents Index Next |
iPlanet Portal Server: Mobile Access Pack Administration Guide |
Chapter 12 Configuring XML Content
The Mobile Access Pack XML content provider allows you to deliver channels with XML content to users who access your portal site using HTML browsers or mobile devices. The XML content provider can deliver transformed content using an XSL file for the following types of XML input:This chapter discusses how to use the Administration Console to set up XML content channels for your portal site. It explains the following tasks:
Creating a New Channel
Creating a New Channel
Creating a new channel from the XML provider consists of two steps:
Setting Up a Channel
You use the Mobile Access Pack's desktop channel wizard to create an XML content provider channel. You provide the provider's name and type and then you define the attributes for the new channel.To set up an XML content provider channel, complete the following steps:
As root, log in to the Administration Console and select Manage Domains.
Select the link for your server's domain name, where the new channel is to be.
Select the Desktop Channel Wizard link to display the Desktop Channel Wizard page.
In the Channel Name text box, specify the name of the channel.
In the Channel Description text box, provide a description of the channel content.
From the Provider pull-down menu, select XML Content.
Select Next to display the user attributes for the XML content provider.
In the XML Content URL text field, specify the URL of the XML data.
In the XSL Filename text field, specify the name of the XSL template file.
In the Content Timeout text field, specify the amount of time in seconds for the XML content display.
Setting Up XSL Template Files
Serving client-specific XML content in a new channel requires you first to write and set up an XSL template file for your XML source (for each markup language) and then to put the template file in a specific directory for device-dependent data files.To set up an XSL template file, complete the following steps:
Create the XSL template file.
As root, use cd to change to directory where channel templates are.
Make a new directory with the new channel name.
Tip If your new channel name is iplanetcomTestChannel, for example, enter:
Use cd to change to the new directory.
Make a directory for each supported client type.
Tip
Copy the client-specific XSL template files to their respective directories.
Editing Channel Layout
You can control the appearance of entries in an XML content channel by specifying name, background color, width and refresh timing, in addition to defining other channel layout attributes.To configure the layout of a new XML content channel, complete the following steps:
As root, log in to the Administration Console and select Manage Domains.
Select the link for your server's domain name.
Select the icon next to the Applications heading to display the Applications list.
Select the Desktop link to display the profile for the desktop.
From the list of available channels, select XML content provider by name.
Select Edit Channel to display the XML content provider attributes.
Select Show Advanced Options to display additional attributes.
In the Title text field, specify a name for the channel.
In the Background Color text field, specify a background color for the channel.
- This is the name with which the specified XML content channel will be displayed.
In the Content Timeout text field, specify the amount of time for the XML content channel display.
From the Width list, specify the width of the channel.
Select the Detached check box to detach the channel from the desktop.
Select the Minimized check box to minimize the channel in the desktop.
In the Refresh Time text field, specify the frequency for updating or refreshing content in the channel.
Select the Framed check box to frame the channel in the desktop.
In the Column text field, specify which column the channel is to appear in.
In the Row text field, specify which row the channel is to appear in.
Deselect the XSL Cache Enable check box to deactivate preprocessing of XSL templates.
Tip Caching is selected by default. Cache cleanup is performed if this option is deselected.
Removing a Provider
You can delete an XML content channel so that it is no longer available on your portal site.To delete an XML content channel, complete the following steps:
As root, log in to the Administration Console and select Manage Domains.
Select the link for your server's domain name.
Select the icon next to the Applications heading to display the Applications list.
Select the Desktop link to display the desktop profile attributes.
From the list of available channels, select the name of the XML content provider that you want to remove.
Replacing the XSL Transformation Engine
The XML content provider uses JAXP 1.1 reference implementation for transforming XML. You can choose to replace your XSL transformation engine with one of your own transformation engines as long as it is JAXP 1.1 compliant.To set up all XML content channels to use new transformation engine jar files, complete the following steps:
As root, log in to the Portal Server instance that the Mobile Access Pack is running on.
Make a copy of the iwtJAXPJars.xml file.
In the iwtJAXPJars-new.xml file, change the values of the attribute iwtJAXPJars-jaxpJars by replacing the JAXP reference implementation jar files with the new jar files.
From the Portal Server installation directory, enter this command to remove the old iwtJAXPJars component:
From the Portal Server installation directory, enter this command to create the component iwtJAXPJars with the new values:
- /install_directory/SUNWips/bin ipsadmin delete component iwtJAXPJars
Enter this command to restart the server to load the new jar files:
- /install_directory/SUNWips/bin ipsadmin create component iwtJAXPJars iwtJAXPJars-new.xml
- /etc/init.d/ipsserver start
Previous Contents Index Next
Copyright © 2001 Sun Microsystems, Inc. All rights reserved.
Last Updated November 20, 2001