DriveWorks Pro 15: How To: Create an XML Transform (KB12121008) [send feedback...]

How to create a simple XSL transform:

Paste the following in to notepad and save it as an .XSL file.

Example XSL Document
* {
font-family: arial, verdana; }
h1 {
font-size: 18pt;
color: #0000ff;
h2 {
font-size: 12pt;
color: #ff0000;
h3 {
font-size: 24pt;
color: #009900;
<h1>MY XML PAGE</h1>
<h2>This is field 1's value -<xsl:value-ofselect="Field[@id='Field1']"/></h2>
<h1>This is field 2's value -<xsl:value-ofselect="Field[@id='Field2']"/></h1>
<h3>This is field 3's value -<xsl:value-ofselect="Field[@id='Field3']"/></h3>

This can then be displayed in your web browser by opening the .xml file.


Knowledge Base Article Ref:KB12121008

Table of Contents