Chapter 8, “Namespaces in XML,” mentioned problems that can occur frequently as XML documents are exchanged among increasing numbers of individuals and companies. XML namespaces do a lot to solve the problem in which two identical element type names are used with different meanings. This chapter looks at how XSLT can be used to provide a solution to the problem of different element type names being used to refer to the same concept or real-world value. In addition, it looks more generally at how XSLT can be used to restructure XML documents.
For example, one company might store an order like this, with date information in an element:
<order> <date>2002-12-29</date> <!-- More content here. --> </order>
It might deal with ...