Output from the XSLT Example

 

The XSLT project outputs an HTML file, stocks.xml, in the project's main directory. In addition to this file, the application produces the following XSLT-related output in a console window. Note that the formatting of the transformNode output is different from that of the transformNodeToObject output.

The output below is also saved in stocks.htm.

The next topic in this tutorial demonstrates how to create an XML DOM object dynamically.

To test the XSLT example

  1. Verify that you get the following output.

Output

output from transformNode:<HTML><BODY><TABLE BORDER="2"><TR><TD>Symbol</TD><TD>Name</TD><TD>Price</TD></TR><TR STYLE="color:     green" Title="ZCXM is listed on the nyse stock exchange."><TD>ZCXM</TD><TD>zacx corp</TD><TD>28.875</TD></TR><TR STYLE="color:     red" Title="ZFFX is listed on the nasdaq stock exchange."><TD>ZFFX*</TD><TD>zaffymat inc</TD><TD>92.250</TD></TR><TR STYLE="color:     green" Title="ZYSZ is listed on the nasdaq stock exchange."><TD>ZYSZ*</TD><TD>zysmergy inc</TD><TD>20.313</TD></TR><TR STYLE="color:     green" Title="zzzz is listed on the nasdaq stock exchange."><TD>zzzz*</TD><TD>new</TD><TD>20.313</TD></TR></TABLE></BODY></HTML>output from transformNodeToObject:<HTML>        <BODY>                <TABLE BORDER="2">                        <TR>                                <TD>Symbol</TD>                                <TD>Name</TD>                                <TD>Price</TD>                        </TR>                        <TR STYLE="color:green" Title="ZCXM is listed on the nyse stock exchange.">  
                                <TD>ZCXM</TD>                                <TD>zacx corp</TD>                                <TD>28.875</TD>                        </TR>                        <TR STYLE="color:red" Title="ZFFX is listed on the nasdaq stock exchange.">  
                                <TD>ZFFX*</TD>                                <TD>zaffymat inc</TD>                                <TD>92.250</TD>                        </TR>                        <TR STYLE="color:green" Title="ZYSZ is listed on the nasdaq stock exchange.">  
                                <TD>ZYSZ*</TD>                                <TD>zysmergy inc</TD>                                <TD>20.313</TD>                        </TR>                        <TR STYLE="color:green" Title="zzzz is listed on the nasdaq stock exchange.">  
                                <TD>zzzz*</TD>                                <TD>new</TD>                                <TD>20.313</TD>                        </TR>                </TABLE>        </BODY></HTML>  

The above output is also saved in stocks.htm.