DOCUMENT:Q258294  12-OCT-2001  [iis]
TITLE   :HOWTO: Offload XSL Transformations to Clients' Browsers
PRODUCT :Internet Information Server
PROD/VER:winnt:; :2.0,2.5,2.6,3.0,3.0 SP1,4.0
OPER/SYS:
KEYWORDS:kbInternet kbie500 kbXML kbGrpDSMDAC kbDSupport kbIIS kbie501 kbMSXML200
======================================================================
-------------------------------------------------------------------------------
The information in this article applies to:
 - Microsoft Internet Information Server 
 - Microsoft XML, versions 2.0, 2.5, 2.6, 3.0, 3.0 SP1, 4.0 
-------------------------------------------------------------------------------
SUMMARY
=======
It is possible to offload XSL processing from the server to the client. Doing so
distributes the load, which helps to relieve the server from having to process
the formatting of an XML document.
MORE INFORMATION
================
The following example demonstrates how to load an XSL and XML document into the
clients' memory and then it uses the XSL to transform the XML.
1. First, copy the following code into a file named Sample.htm, and then save
   the file to a WebServer in a location accessible from the Web:
   
   
   Clientside XSL Processing Sample
   
   
   
   Clientside XSL Processing Sample
   
   
   
   
2. Modify the page so that the address of the Sample.xml and Sample.xsl files is
   the same as the location of your server.
3. Insert the following XML code into a blank XML document and save it to the
   same location as the Sample.xml file:
   
   
      
         
            ALFKI
         
         
            Alfreds Futterkiste
         
         
            Maria Anderson
         
         
            Germany
         
      
      
         
            ANATR
         
         
            Ana Trujillo Emparedados y helados
         
         
            Ana Trujillo
         
         
            Mexico
         
      
   
4. If using an MSXML version earlier than 3.0, then insert the following XSL
   code into a blank XSL document and save it to the same location as the
   Sample.xsl file.
      
       
              
              
                   
              
            
             
      
5. Browse to the Sample.htm page.
This page loads into the browser, and then downloads the data for the XML and XSL
pages. It then uses the XSL document to transform the XML document into HTML. It
displays this output on the page by using the innerHTML property of the DIV tag
on the HTML page.
Additional query words:
======================================================================
Keywords          : kbInternet kbie500 kbXML kbGrpDSMDAC kbDSupport kbIIS kbie501 kbMSXML200 
Technology        : kbiisSearch kbAudDeveloper kbMSXMLSearch kbMSXML200 kbMSXML250 kbMSXML260 kbMSXML300 kbMSXML300SP1 kbMSXML400
Version           : winnt:; :2.0,2.5,2.6,3.0,3.0 SP1,4.0
Issue type        : kbhowto
=============================================================================
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 2001.