How do browsers (IE4.01) trap XML st

Graham Moore graham.moore at dpsl.co.uk
Fri Jul 31 11:32:30 BST 1998



Depending on how much browser side control you require over the XML stream, 
you could embed the XSL activeX control and script it to fetch data from IIS 
and the asp's.

Just insert the activeX  XSLControl into an initial HTML page. Probably a 
base frame.

<OBJECT ID="XSLControl"
                CLASSID="CLSID:2BD0D2F2-52EC-11D1-8C69-0E16BC000000"
                CODEBASE="http://www.microsoft.com/xsl/xsl/msxsl.cab"
                STYLE="display:none">
                <PARAM NAME="styleURL" VALUE="sample.xsl">
 </OBJECT>

<frameset>
   <frame name=content>
</frameset>

And on loading, set the URL of the XSLControl.document to be the asp page.
Then insert the resulting stylesheeted HTML / XML into the content frame.

<SCRIPT FOR="window" EVENT="onload">
       XSLControl.documentURL = "doit.asp"
       xslHTML = XSLControl.htmlText;
      document.content.outerHTML = XSLControl.htmlText;
  </SCRIPT>

In addition, calls to other asp pages will have to go via the activeX 
control. But thats ok as the asp's are generating the content.

so it will generate something like

onClick="top.XSLControl.documentURL = anotherASP.asp"

The style sheet/s can be fetched in a similar.

Alternatively you could use the XSLControl on the server, mangle the 
generated XML with the appropriate style sheet and just send the resulting 
HTML to the browser from the ASP.

I hope this is of help.

Graham.






xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list