![]() |
Previous Top Next |
Transforming XML to HTML
|
1. | Click the CompanyLast.xml tab on the main window, to make it the active document.
|
2. | Select the menu option XSL | Assign XSL.
|
3. | Click the Browse button, select the Company.xsl file, and confirm with Open.
|
![]() |
4. | Click the OK button to assign the XSL file to the XML document.
|
![]() |
A XML-stylesheet reference is placed in the XML document.
|
|
1. | Select the menu option XSL | XSL Transformation or click the ![]() |
This creates a new document in the Browser view with the name XSL Output.html. It shows the Company data in one block down the left, and the Person data in tabular form below.
|
![]() |
1. | Click the CompanyLast.xml tab to make it the active document.
|
2. | Select the menu option XSL | Go to XSL.
|
![]() |
The command opens the Company.XSL file referenced in the XML document.
|
3. | Find the line <table border="1" bgcolor="lime">, and change the entry bgcolor="lime" to bgcolor="yellow".
|
![]() |
4. | Select the menu option File | Save to retain the changes made to the XSL file.
|
5. | Click the CompanyLast.xml tab to make the XML file active, and select XSL | XSL Transformation, or hit the F10 key.
|
![]() |
A new XSL Output.html file appears in the Browser view. The table background now appears in yellow.
|
6. | Select the menu option File | Save, and save the document as Company.html.
|
|