Click here to Skip to main content
15,887,683 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionHow to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Kosta Cherry20-Nov-02 16:24
Kosta Cherry20-Nov-02 16:24 
AnswerRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Christian Graus20-Nov-02 16:33
protectorChristian Graus20-Nov-02 16:33 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Kosta Cherry20-Nov-02 16:47
Kosta Cherry20-Nov-02 16:47 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Christian Graus20-Nov-02 17:07
protectorChristian Graus20-Nov-02 17:07 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Michael A. Barnhart21-Nov-02 0:16
Michael A. Barnhart21-Nov-02 0:16 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Michael A. Barnhart21-Nov-02 0:09
Michael A. Barnhart21-Nov-02 0:09 
AnswerRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Philip Fitzsimons21-Nov-02 0:46
Philip Fitzsimons21-Nov-02 0:46 
AnswerRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Kosta Cherry21-Nov-02 10:43
Kosta Cherry21-Nov-02 10:43 
OK, I finally found answer (sort of) to my question and it is "SAX Parser with ASP" article at
http://www.experts-exchange.com/Web/Web_Languages/XML/Q_20150239.html

Here is copy of code from there (in case anyone interested):

<%Response.ContentType = "text/xml"

Dim generator, ch
' instantiate XML generator class
Set generator = Server.CreateObject("XMLFilesVBSAX.CGenerator")
Set ch = Server.CreateObject("XMLFilesVBSAX.CSerializer")
ch.RegisterOutputStream Response
generator.generateXML ch
%>

Then ->

<%Response.ContentType = "text/xml"

Dim reader, ch
' instantiate XMLReader class
Set reader = Server.CreateObject("MSXML2.VBSAXXMLReader.3.0")
' instantiate class that implements IVBSAXContentHandler
Set ch = Server.CreateObject("XMLFilesVBSAX.CSerializer")
ch.RegisterOutputStream Response
' turn off namespace prefixes
reader.putFeature "http://xml.org/sax/features/namespace-prefixes", False
' register ContentHandler implementation
Set reader.contentHandler = ch
' begin processing document
reader.parseURL "file://c:\temp\whatever.xml"
%>

And lastly ->

<%
Dim reader, ch
' instantiate XMLReader class
Set reader = Server.CreateObject("MSXML2.VBSAXXMLReader.3.0")
' instantiate class that implements IVBSAXContentHandler
Set ch = Server.CreateObject("XMLFilesVBSAX.CInvoice2HTML")
' turn off namespace prefixes
reader.putFeature "http://xml.org/sax/features/namespace-prefixes", False
' register ContentHandler implementation
Set reader.contentHandler = ch
' begin processing document
reader.parseURL "file://c:\temp\whatever.xml"
%>

Thanks for everybody!
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Christian Graus21-Nov-02 10:49
protectorChristian Graus21-Nov-02 10:49 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Kosta Cherry21-Nov-02 14:14
Kosta Cherry21-Nov-02 14:14 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Christian Graus21-Nov-02 15:09
protectorChristian Graus21-Nov-02 15:09 
GeneralXSL Pin
James Spibey15-Nov-02 2:34
James Spibey15-Nov-02 2:34 
GeneralRe: XSL Pin
Paul Watson15-Nov-02 2:43
sitebuilderPaul Watson15-Nov-02 2:43 
GeneralRe: XSL Pin
James Spibey15-Nov-02 3:28
James Spibey15-Nov-02 3:28 
GeneralRe: XSL Pin
Philip Fitzsimons15-Nov-02 11:03
Philip Fitzsimons15-Nov-02 11:03 
GeneralRe: XSL Pin
Paul Watson16-Nov-02 0:45
sitebuilderPaul Watson16-Nov-02 0:45 
GeneralRe: XSL Pin
Michael A. Barnhart16-Nov-02 9:37
Michael A. Barnhart16-Nov-02 9:37 
Generalhandling CDATA in xml schema Pin
huikm14-Nov-02 16:06
huikm14-Nov-02 16:06 
GeneralDisplaying Carriage Return || Line Feed Pin
Lilian Chan-Grant14-Nov-02 9:02
Lilian Chan-Grant14-Nov-02 9:02 
GeneralRe: Displaying Carriage Return || Line Feed Pin
Anonymous15-Nov-02 1:41
Anonymous15-Nov-02 1:41 
GeneralRe: Displaying Carriage Return || Line Feed Pin
Lilian Chan-Grant19-Nov-02 8:48
Lilian Chan-Grant19-Nov-02 8:48 
QuestionMSXML version included in what version of IE? Pin
Andrew Connell12-Nov-02 2:48
Andrew Connell12-Nov-02 2:48 
AnswerRe: MSXML version included in what version of IE? Pin
Daniel Turini12-Nov-02 2:53
Daniel Turini12-Nov-02 2:53 
GeneralRe: MSXML version included in what version of IE? Pin
Andrew Connell12-Nov-02 2:56
Andrew Connell12-Nov-02 2:56 
GeneralRe: MSXML version included in what version of IE? Pin
Paul Watson12-Nov-02 3:04
sitebuilderPaul Watson12-Nov-02 3:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.