XQuery/Filling Portlets

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Motivation[edit | edit source]

You want to be able to create reports that work with industry standard portals. These systems have standard div tags with class attributes that are standardized.

For example the searchbox for a page will have the following XHTML:

<div class="portal-searchbox">
</div>

Method[edit | edit source]

We will create a report that is structured as a set of divs with the appropriate class tags. We can then take the URL for this report and add it to the portal management system. Our report will automatically be styled according to the central portal style sheet.

Portal software allows These divs need to be filled by XQueries:

  • portal-wrapper
  • portal-top
  • portal-header
  • portal-breadcrumbs
  • portal-searchbox
  • portal-advanced-search
  • portal-footer
  • portal-colophon
  • portal-personaltools