Using XSLT with Active Server Pages

You run Active Server Pages on Microsoft Windows NT or 2000 servers, so I use Microsoft’s MSXML processor on the server in this example to transform planets.xml, using planets.xsl, and return the result as an HTML document.

This is the same transformation you’ve now seen many times, creating an HTML table of planetary data, but this time, the transformation is done on a Web server and the user can then see that document when the server sends it. In the beginning of the ASP script, I set the MIME content-type of the result document to “text/html” so it will be treated as HTML:

<%@LANGUAGE="VBScript"%> 

<% 
    Response.ContentType = "text/html" 
        . 
        . 
        . 

Next, much as in the JavaScript examples earlier in this chapter, ...

Get Inside XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.