Page Stripping
Sometimes you may not want to merge the entire contents of a page using the "Connect" tag. You may only want to merge a section of a web page. To the do this, the Aggregator Module is used. The Aggregator Module uses a Start and End tag to determine what section of a Web Page will be merged using the "Connect" tag.
The syntax used to call the data is as follows:
MOD=AGGREGATOR SRV=HTML ACTION={URL} START={text} END={text}Example:
The web page, sitecreation.html, may contain the following source code:
<html> <head> <title>IBM Workplace Web Content Management </title> </head> <body> <b> IBM Workplace Web Content Management . </b><hr> <table> <tr><td > The site creator has the task of creating a web site that will be served by Web Content Management. </td></tr> <tr><td > Web Content Management has many default tools and functions that can be used in the creation of a web site. </td></tr> </table> </hr> </body> </html>To strip the table out of this web page, the following code would be used:
<html> <head> <title>Web Content Management, Aggregation</title> </head> <body> <connect MOD="AGGREGATOR" SRV="HTML" ACTION="http://localhost/sitecreation.html" START="<table>" END="</table >"></connect> </body> </html>Only the table in sitecreation.html would be merged by the Web Content Management application. The Start and End tags can be used to strip any section of a web page, from a single line of text to a complete section of a page. (E.g., the Header or Body sections.).
Note:
- The attributes entered within Start and End tags are CASE SENSITIVE.
- If you specify actual HTML Tags as the Start and End tags, then specify complete tags.
- You cannot specify tags that have attributes. (E.g. <table>).
Parent topic: Displaying Data from external Web Pages.
IBM Workplace Web Content Management - V5.1.0.1 -
Workplace Web Content Management is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.