|
||
| Inside Technique : Building Smart Pages with ASP, XML and XSL
In our introductory article, we explained how XML and XSL can be used to create documents that target different browsers or mediums (eg., phones or TVs). However, we did not provide a real-world demonstration. Instead, we introduced XML and using XSL to transform the document into HTML for viewing and demonstrated how to perform this transformation on the client in IE5. We will now go the next step and demonstrate a XML and XSL solution that runs on all browsers. Depending upon the browser, we wiill either perform the transformation on the server or send the raw XML and XSL for processing on the client. With this approach, we can author our document once and provide custom presentations targeted for specific types of clients. In this article, we will demonstrate 3 different presentations. Which one you receive depends on your browser. You will either receive
To manage the processing, we wrote an ASP page that manipulates the Microsoft XML and XSL parsers. Next we introduce the server script. Page 1:Building Smart Pages with ASP, XML and XSL © 1997-2000 InsideDHTML.com, LLC. All rights reserved. |