Adobe
GoLive 6 Dynamic Content Samples
Overview
Database Design
Monthly View

There are two themes in this example. First is the use of XML content sources and XSLT to bring the world of XML content onto web pages. Second is the use of dynamic containers to construct a layout based on external data.

The XML data contains both a description of calendar pages themselves and the specific calendar events that are to be listed.

XML Data Sources

The XML data source is created at the site level. Run Site > Settings and look at the Dynamic Content pane to see it. The XML data source contains a description of the structure of the XML that the page will see. It also connects the XSLT script to the process so that, when the page is served, the XML will be fetched, run through the XSL transform, and then made available to the page for extraction of specific elements and attributes that are bound to page elements.

Layout Template

The calendar template consists of a repeat-cells table nested inside a conditional container nested inside a repeat content container. The outer two containers select the month to be generated and only generate output when the URL parameter for the month matches the XML month element.

The repeat-cells table generates the boxes that make up the calendar page.