[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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 |
Hello,
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.
<HTML>
.
.
.
<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"> </OBJECT> .
.
.
</HTML>
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"> </APPLET> .
.
.
and furthur explicitly loading an
xml file to be parsed using
xmldso.load("Temp.xml");
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
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,
AMIT
|
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: transformations: xml->html work, Paul Grosso | Thread | Handling an XML data stream using , Amit Rekhi |
Re: transformations: xml->html work, Ingo Macherius | Date | Re: `High-level' format specificati, Paul Grosso |
Month |