Chapter 4 XML Processing
147
...
Code Example 4.8
Stylesheet for Transforming from External XSD Based Schema to
Internal DTD Based Schema
Normally, developers should begin this design process starting from the appli
cation's interface definition plus the XML schemas. In some situations, a devel
oper may have to work in reverse; that is, start from the inside and work out. See
the third approach, shown in Figure 4.6.
Design time
(1) Design XML
Schema
Data Model
External XML
Classes
Schema
(2) Design Adapter
Classes
Adapter
Classes
Runtime
XML
Existing/Legacy Data
Legacy Adapter
Document
Model Objects
Figure 4.6
Legacy Adapter (In to Out) Approach for Mapping Schemas to Data
Model Classes
New Page 1