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 category.

3.Enter folder name. Enter Customer.html as file name.

4.Click Finish.

156 The XML Files: Development of XML/XSL Applications Using WebSphere Studio

Page 172
Image 172
IBM Version 5 manual Generate XML/XSL from Html, Click File-New-Other