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

XML / XSL

 
GeneralRe: how xml embeds (saves) an image Pin
Michael A. Barnhart26-Nov-02 14:00
Michael A. Barnhart26-Nov-02 14:00 
GeneralCreating an attribute of a node Pin
Bash24-Nov-02 22:58
Bash24-Nov-02 22:58 
GeneralRe: Creating an attribute of a node Pin
Christian Graus26-Nov-02 19:53
protectorChristian Graus26-Nov-02 19:53 
GeneralAutomatic processing XML/XSLT on client or server side Pin
Kosta Cherry23-Nov-02 11:45
Kosta Cherry23-Nov-02 11:45 
GeneralRe: Automatic processing XML/XSLT on client or server side Pin
Michael A. Barnhart23-Nov-02 15:37
Michael A. Barnhart23-Nov-02 15:37 
GeneralAppling XSL to XML - select attribute of node Pin
Bash21-Nov-02 23:46
Bash21-Nov-02 23:46 
GeneralRe: Appling XSL to XML - select attribute of node Pin
Michael A. Barnhart22-Nov-02 1:22
Michael A. Barnhart22-Nov-02 1:22 
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 
Hi All!

Basically all my question is in title: how to apply XSLT to XML on the server in JSP or ASP without DOM?
I have data.xml file and style.xsl file. If user access my page (either JSP or ASP or doesn't matter) with browser that supports _full_ XML + XSLT, than I just send to user file data.xml, user's browser processes it, finds reference to style.xlt, retrieves it and process both to the end result. If user uses outdated browser (no XML/XSLT or old versions), I do the same on the server.
Example of such script on server side:
<%
dim xmlMenu
dim xslMenu

'Get the source XML
set xmlMenu = server.CreateObject("Msxml2.DOMDocument.4.0")
xmlMenu.async = false
xmlMenu.load server.MapPath("data.xml")

'Get the XSLT to transform the XML
set xslMenu = server.CreateObject("Msxml2.DOMDocument.4.0")
xslMenu.async = false
xslMenu.load server.MapPath("style.xsl")

'Transform the source XML using XSLT
Response.Write xmlMenu.transformNode(xslMenu)

set xmlMenu = nothing
set xslMenu = nothing
%>

I want to have exactly the same but without DOM, because it takes a lot of memory (well, I personally didn't notice that. The above script processed 8MB file with 16,000+ nodes in 25 sec on my development PC (256MB Ram, P4 1.4, Personal Web Server + MSXML) to table-like HTML. But people say 4MB file takes > 100MB of RAM and is slow. May be they mean "stress testing"?).
I cannot use anything except ASP or JSP - no COM, C++, ActiveX or other stuff. Not that _I_ don't want to, but that's an in-house rules Cry | :(( (((((

Thanks a lot for answer!

SY-
Kosta.
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 
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 

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.