Data Specification Files

for the Dynamic Publishing System by Karl Goldstein
Previous | Next | Top

Introduction

Data specifications for dynamic templates are stored in plain text files in the document tree of the web server. Specifications files carry the data extension. They are formatted as XML documents. An XML element named template serves as the root of each data specification.

The core specification for a dynamic template consists of three tiers of information:

The overall structure of the basic specification document looks like this (each property is described in the document below):

<template>

  <name>template namespace<name>
  <title>template title<title>
  <master>master template URL<master>
  <comment>template description</comment>

  <process>

  For each data source in the template:

  <datasource>

    <name>name<name>
    <type>query, param or eval</type>
    <structure>onevalue, onerow or multirow</structure>
    <condition>condition</condition>
    <comment>data source description</comment>

    For each variable in the data source: 
    <variable>
      <name>variable name<name>
      <comment>variable description</comment>
    </variable>

  </datasource>

  <process>

</template>

As is generally true for XML documents, white space is ignored in parsing the specification. Longer properties such as comments and queries can thus be broken into multiple lines to improve the legibility of the specification. Comments may NOT contain other markup tags, as this will invalidate the structure of the specification as an XML document.

Template properties

Basic template properties include the following:

Data source properties

Data source properties include the following:

Variable properties

There are two key variable properties:

Previous | Next | Top

karlg@arsdigita.com