![]() |
XML ISAPI Filter
The purpose of this ISAPI filter is to be able to serve up Extensible Stylesheet Language (XSL) styled documents for browser clients that do not natively support XSL formatting (including versions of Internet Explorer prior to Internet Explorer 5.0). The filter also provides caching of the XSL style sheets in memory for improved performance on the server. The filter is an MFC ISAPI Wizard-based application that also serves as a good sample application for those wanting to build their own custom XML ISAPI filters. Installation
UsageThe XML ISAPI filter checks the client browser type. If it finds anything other than MSIE 5.x it will perform the XSL transform on the server. If the ISAPI filter decides to do server side processing it loads the first 4096 bytes of the XML file and sniffs for the first <?xml:stylesheet or <?xml-stylesheet tag. (Note: If this PI does not specify text/xsl then it will not do server side processing - in other words, server-side CSS is not supported). The ISAPI filter looks for either the href attribute of a new extended attribute in called server-href. If this is present it uses the stylesheet pointed to by that attribute for the server-side XSL processing. This allows you to have custom stylesheets for those clients that do not support client side XSL. For example:
Source CodeThe ISAPI filter was generated by the MFC ISAPI Wizard and so the following files marked with an asterix(*) are boiler plate files straight from that wizard:
|
|||||||||||||||||||||
© 1999 Microsoft Corporation. All rights reserved. Terms of Use. |