[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

  • From: Graham Moore <graham.moore@d...>
  • To: xml-dev@i...,amitr@a...
  • Date: Fri, 31 Jul 1998 9:42:10 +0000

xslcontrol


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@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.