Displaying a XML using XLS

Discussion in 'ASP .Net' started by =?Utf-8?B?QmVybmFyZG8gR29tZXM=?=, Feb 4, 2004.

  1. 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
    =?Utf-8?B?QmVybmFyZG8gR29tZXM=?=, Feb 4, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?QmVybmFyZG8gR29tZXM=?=

    Felbrigg Guest

    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" <> wrote in message
    news:...
    > 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
    Felbrigg, Feb 4, 2004
    #2
    1. Advertising

  3. 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!
    =?Utf-8?B?QmVybmFyZG8gR29tZXM=?=, Feb 4, 2004
    #3
  4. =?Utf-8?B?QmVybmFyZG8gR29tZXM=?=

    Felbrigg Guest

    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.


    "Bernardo Gomes" <> wrote in message
    news:...
    > 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!
    >
    Felbrigg, Feb 4, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dana B
    Replies:
    1
    Views:
    1,359
    Richard Wheeldon
    Mar 17, 2005
  2. Richard Koch

    XML transform via XLS

    Richard Koch, Feb 1, 2004, in forum: XML
    Replies:
    6
    Views:
    617
    Dimitre Novatchev
    Feb 2, 2004
  3. sachin
    Replies:
    1
    Views:
    346
    Tjerk Wolterink
    Dec 1, 2005
  4. Pravin
    Replies:
    1
    Views:
    2,801
    Dirk Wendland
    Apr 18, 2005
  5. vertigo

    xml->xls converter

    vertigo, Aug 19, 2006, in forum: XML
    Replies:
    3
    Views:
    6,406
    Joe Kesselman
    Aug 21, 2006
Loading...

Share This Page