Home >Online Product Documentation >Table of Contents >Example
Example
Suppose you open the XML mapper and select books.xml
as the source document and catalog.xml
as the target document. You then map elements in the books.xml
document or structure to elements in the catalog.xml
document or structure. The result is a stylesheet that you can apply to books.xml
and to other files that have a structure similar to that of books.xml
. When you apply this stylesheet, the result is an XML document whose structure is consistent with that of catalog.xml
.
Now suppose you want to apply a stylesheet to catalog.xml
and output an XML file that has a structure similar to books.xml
. To do this, you must use the XSLT mapper to create a second stylesheet. This time, catalog.xml
is the source document and books.xml
is the destination document. The result of this mapping is a stylesheet that you can apply to documents that have a structure similar to that of catalog.xml.