OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



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

[ Lists Home | Date Index | Thread Index ]
  • From: Graham Moore <graham.moore@dpsl.co.uk>
  • To: xml-dev@ic.ac.uk,amitr@abinfosys.com
  • Date: Fri, 31 Jul 1998 9:42:10 +0000

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.

                <PARAM NAME="styleURL" VALUE="sample.xsl">

   <frame name=content>

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;

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.


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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS