To get a better idea of how to use XML, you need to understand Dreamweaver templates,
which are discussed in Chapter 28.
Dreamweaver templates are composed of locked and editable regions; the locked regions are repeated for
each page created from the template, whereas the content in the editable regions is added per page. The
connection between XML and templates is similar to the relationship between a database form and its data.
In a database, each field has a unique name, such as LastName, FirstName, and so on. When you create a
database form to present the data, the placeholders for the data use the same field names. Then, when data
CROSS-REF CROSS-REF
987
Integrating with XML and XSLT 32
from one record flows into the form, the information from the field goes into the areas with the corresponding
field names. Likewise, each editable region has a unique name??”in essence, a field name. The content
within the editable region is the field??™s data. When the template data is exported as an XML file, the name of
the editable region is converted to an XML tag that surrounds its data.
For example, Figure 32-1 shows a Dreamweaver template for a purchase order. On the left are the headings
(To, Company, Address, and so on) for the information in a locked area, whereas the specific shipping data
(on the right) resides in a series of editable regions, each with its own name.
Pages:
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679