Stonebroom.XSLTransform Example
These pages demonstrate what the XSLTransform component can do. In them, we use a simple XML document and transform it to an HTML page using an XSL file. You can view the contents of these files and the results within these pages, or you can access the original XML file and have the equivalent transformation take place on your browser. However this last option will only work if you are using Internet Explorer version 5.0 or higher.
The XML file contents are:
The XSL style sheet contents are:
You can use these files in two ways:
View the result of the transformation. This is what would be returned by the component as a string, or written to a file on disk (depending on the parameter values).
Open the XML document in your browser. Note that this will only produce the transformation if you are using Internet Explorer version 5.0 or higher.
To see the results, and the difference between the original XML document and the transformed one, view the source of the page when it is displayed in your browser.