26.01.2019 Views

XML Simplified

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Module 7<br />

More on XSLT<br />

Concepts<br />

7.3.4 Transforming <strong>XML</strong> using XSLT Example<br />

An example code of transforming <strong>XML</strong> documents into HTML using XSLT processor has been provided<br />

to explain the process.<br />

Figure 7.18 shows the code in <strong>XML</strong> file.<br />

Figure 7.18: <strong>XML</strong> File<br />

where,<br />

Company<br />

The root Company element contains Product child elements.<br />

Units<br />

A Units attribute specifies the units for the respective products melting point and boiling point.<br />

Version 1.0 © Aptech Limited<br />

<strong>XML</strong> <strong>Simplified</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!