Displaying a XML using XLS

G

Guest

Hi all,
I´m having trouble doing the following:
I have a aspx page without any html in it, and, in the Page_Load, I call a component that returns me a XML, that I have to display in the browser. I do that by using:
response.write(xml.innerxml) --> Works perfectly ( the browser shows me the xml
But, if I try to use a xls to transform it, like this
response.write("<?xml-stylesheet type='text/xsl' href='qp.xsl' ?>"
response.write(xml.innerxml) --> it doesn´t work. the xml is showed like an unformatted string
I don´t wanto to save the xml to disk and then load it, because I'll probably have lots of users doing this all the time, and the disk cost would be too high.
Any ideas or sugestions in how to solve this
Thanks in advance....
Bernardo
 
F

Felbrigg

I've done this before, but rather than use XSL, I attached a CSS stylesheet
with all of the XML tags defined with desireable results.

Bernardo Gomes said:
Hi all,
I´m having trouble doing the following:
I have a aspx page without any html in it, and, in the Page_Load, I call
a component that returns me a XML, that I have to display in the browser. I
do that by using:
response.write(xml.innerxml) --> Works perfectly ( the browser shows me the xml)
But, if I try to use a xls to transform it, like this:
response.write("<?xml-stylesheet type='text/xsl' href='qp.xsl' ?>")
response.write(xml.innerxml) --> it doesn´t work. the xml is showed like an unformatted string.
I don´t wanto to save the xml to disk and then load it, because I'll
probably have lots of users doing this all the time, and the disk cost would
be too high.
 
G

Guest

I see.
But by doing that, how do you loop through the xml, display pictures where wanted, etc.
Is ther a way to do that in CSS?
Thanx!
 
F

Felbrigg

You got me there. I suspect you'd still have to use an XML transform to
turn the image data in the XML into an HTML <IMG> tag.

Sorry I cant be more help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top