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

Returning XML data streams from server

Subject: Returning XML data streams from server
From: "Amit Rekhi" <amitr@xxxxxxxxxxxxx>
Date: Thu, 9 Jul 1998 19:07:36 +0530
xml data stream
        How do I pass an XML stream to an XSL processor  DIRECTLY?
        Currently, I am using the MSXSL (ActiveX control embedded in a web page) as my XSL processor.
       <OBJECT ID="XSLControl" CLASSID="">        codebase="">        height="100" width="100">
         <PARAM NAME="documentURL" VALUE="c:\web_temp\integrate\MyXMLDSO.xml">
        <PARAM NAME="styleURL" VALUE="MyXMLDSO.xsl">
I am using the MS shipped XMLDSO applet as a validating XML parser using :-
 <APPLET CODE="com.ms.xml.dso.xmldso.class" id="MyXMLDSO"
 WIDTH="200" HEIGHT="200" MAYSCRIPT="true">
and furthur explicitly loading an xml file to be parsed using
The  scenario I am trying to create is as follows:-
1. A client gives an http:'//....   request and receives the browser web page.
2. Client then submits query to server side
3. The server to prepare the query result as an XML data stream
4. The XML data stream is to be fed to an XSL processor along with XSL stylesheet
5. Client sees XSL processor output on browser
It is the step 3 to step 5  that is posing a problem
In case of a normal http://..... request scenario involving HTML, the server returns an HTML stream which the client end browser automatically parses and displays using it's inbuilt HTML processor.On a similar note, in case of an http://... request involving XML,
1. Is the XML data stream returned from the server end (like HTML)?
2. Will the XML data stream be parsed AUTOMATICALLY using the browser XML parser at the client end(in case of  IE4)?
3. What if I have a DTD associated with  the returned XML stream?Will the parser(MSXML parser for IE4) validate the returned XML stream against it's DTD?
(If I mention something like <!DOCTYPE HDR SYSTEM "temp.dtd"> in my XML)
4. Can the  XML parsed stream now be fed to an XSL processor plugin(MSXSL ActiveX, since I use that) alongside with an XSL stylesheet for displaying xml data output?
As of now:-
1.  I am storing my XML data in a temp.xml file at the server
2.  I am explicitly invoking the XML parser(MSXML in my case) for parsing the temp.xml file(instead of the inbuilt IE4 XML parser doing it for me at the client end)
3.  I am passing the temp.xml file as a parameter to the XSL processor(MSXSL ActiveX) rather than passing it the XML parse tree.
I feel that I am not doing the right thing here. I feel things should go the same way as they do in case of http:// requests and HTML.Am I correct in my thinking?
                                        Thanx in advance,

Current Thread


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
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.