Example 1: Transforming an XML Document into Another XML
Document
Features:PROC XSL statement
Details
The following PROC XSL example transforms an XML document into another XML
document.
This is the input XML document named XMLInput.xml, which contains data about
vehicles. Each second-level repeating element describes a particular car, with the nested
elements that contain information about the model and year. The make information is an
attribute on the second-level repeating element.
<?xml version="1.0" ?>
<vehicles>
<car make="Ford">
<model>Mustang</model>
<year>1965</year>
</car>
<car make="Chevrolet">
<model>Nova</model> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.