156 The XML Files: Develo pment of XML/XSL Applications Using WebS phere Studio
Figure 7-8 Result XSL panel
7.6 Generate XML/XSL from HTML
With this generator we are trying to create XSL and XML files from a specific
HTML, also will enable to separate out the presentation logic from the dynamic
data in an existing HTML document. It extracts the data into an XML file and the
presentation data into two XSL files. Once the separation is completed, you can
use XSLT technology to combine new data that is defined in XML format with the
generated XSL files to create new HTML Web pages.
So the first step will be to create a HTML file with data. We are going to create an
HTML for a customer information design as shown in Figure 7-9:
1. Click File —>New—>Other.
2. Select HTML from Web categor y.
3. Enter folder name. Enter Customer.html as file name.
4. Click Fini sh.