RE: How do browsers (IE4.01) trap XML st

Graham Moore (graham.moore@dpsl.co.uk)
Fri, 31 Jul 1998 9:42:10 +0000


Depending on how much browser side control you require over the XML stream,=
=20
you could embed the XSL activeX control and script it to fetch data from II=
S=20
and the asp's=2E

Just insert the activeX XSLControl into an initial HTML page=2E Probably a=
=20
base frame=2E

<OBJECT ID=3D"XSLControl"
CLASSID=3D"CLSID:2BD0D2F2-52EC-11D1-8C69-0E16BC000000"
CODEBASE=3D"http://www=2Emicrosoft=2Ecom/xsl/xsl/msxsl=2Eca=
b"
STYLE=3D"display:none">
<PARAM NAME=3D"styleURL" VALUE=3D"sample=2Exsl">
</OBJECT>

<frameset>
<frame name=3Dcontent>
</frameset>

And on loading, set the URL of the XSLControl=2Edocument to be the asp page=2E
Then insert the resulting stylesheeted HTML / XML into the content frame=2E

<SCRIPT FOR=3D"window" EVENT=3D"onload">
XSLControl=2EdocumentURL =3D "doit=2Easp"
xslHTML =3D XSLControl=2EhtmlText;
document=2Econtent=2EouterHTML =3D XSLControl=2EhtmlText;
</SCRIPT>

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

so it will generate something like

onClick=3D"top=2EXSLControl=2EdocumentURL =3D anotherASP=2Easp"

The style sheet/s can be fetched in a similar=2E

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

I hope this is of help=2E

Graham=2E