An XML portlet is an XML-based rather than HTML-based. This type of portlet is generally used by portal administrators who are familiar with XML to XSLT transformations.
Creating a new XML portlet
Select XML Element. You see the XML Element Definition window.
Enter:
XML URL – the base URL of the XML source; for example, the following URL, entered as one line, creates a new Common Gateway Interface (CGI) parameter named “Category” with a default value of “Biotech.” CGI Parameters are discussed in “Using portlet parameters” on page 166.
http://p.moreover.com/cgi-local/page?c=Biotech%20news&o=xml
Content XSLT – click Select to search for and choose the extended XSL template (XSLT) that you want applied to this portlet’s content; for example:
moreover_content_xsl
UI XSLT – click Select to search for and choose the XSL template (XSLT) that you want applied to the user interface; for example:
pink_ui_xslt
When you are satisfied with your entries, click Next. You see a window that allows you to split the columns or rows in the table. See “Adding split rules” on page 175.
Click Next. Define how you want the records in the table to display. See “Defining record layout” on page 176.
Click Next. Specify which rows and columns you want to filter out of the display. See “Using filter rules” on page 177.
Click Next, then enter a name for the element.
Click Finish. You return to the Portal Builder.
Regardless of the element type, the procedure to save the element and portlet is the same. See“Saving portlets” for instructions.
See Chapter 10, “Building Pages,” for instructions on adding portlets
to pages.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |