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

XML / XSL

 
GeneralRe: Include XML Pin
Christian Graus26-Nov-02 19:51
protectorChristian Graus26-Nov-02 19:51 
Questionhow xml embeds (saves) an image Pin
Asim N.25-Nov-02 13:44
Asim N.25-Nov-02 13:44 
AnswerRe: how xml embeds (saves) an image Pin
berndg26-Nov-02 3:14
berndg26-Nov-02 3:14 
GeneralRe: how xml embeds (saves) an image Pin
Asim N.26-Nov-02 13:49
Asim N.26-Nov-02 13:49 
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 
Hi All!

OK, here is architecture question:

My ultimate goal is: move "clent/server" application to web-site using XML/XSL. If user's browser is capable of processing XML/XSLT, processing should be performed on the cliend side, if not - on the server side.
That is a problem that I don't understand how to implement it:

1. I cannot let user access URL where it will be name like http://<something>/myform.xml for two reasons:
- I cannot process DB connection in that .xml file. Situation is: some users will access data using common DB name, some will access it using their very own DB name. As far as I understand, I cannot do that in .xml file, so I need some sort of .asp or jsp or something else.
- User's browser could be so old that it will not understand .xml extention. I don't know is it valid reason or not (I'm VERY new to web development).
2. So I need to let user access URL where it will be name like http://<something>/myform.asp or http://<something>/myform.jsp. That page will internally (depending on a user's browser) do one of this:
- either take my .xml page, process it with my .xsl page and send result .html to the user; OR
- take my .xml page and send it directly to user'sd browser. User's browser will see .xsl reference inside, automatically load that .xsl from my site,
and process both of them locally at client (I hope Smile | :) )

3. Now it is a problem. Suppose, user want to resort columns in the table (which he see on the screen). In case of old browser it is easy - link will "POST" form back to server, server will process .xml again and return .html to the user.
What if user uses new browser and I want it process it again locally? If user accessed URL http://<something>/myform.xml, than myform.xml would be sitting in cash on user's computer (together with .xsl), so I could call "load" method of XSLT locally in browser, so browser will not connect to server again.
But in my scenario user accesed http://<something>/myform.asp. If I will specify that name as parameter for "load" function, browser will go to server for new copy of the same data (which I'm trying to avoid). If I will specify http://<something>/myform.xml - such file does not exist locally, it exists with some other name (which I don't know).
So what could be a solution?
I'm sure it's obvious, I'm just overloaded with this new technic and cannot get it Frown | :(

Hope my description of a problem was clear Smile | :) .

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

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.