XML Transform to HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marc Mendez

    #1

    XML Transform to HTML

    Hi,

    I have a well formed xml file with xsl and dtd files; the xsl file apply an
    html file to the data.

    With IE, if I open the XMl file, I get a HTML doc with my data
    But, with Java or with XML SPy, if I try to apply the XSL Transformation, I
    just get the HTML doc, without data !
    BTW, with mozilla, if I open the XML file, I get an error :

    Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:

    Any idea ?


  • Martin Honnen

    #2
    Re: XML Transform to HTML



    Marc Mendez wrote:
    [color=blue]
    > Hi,
    >
    > I have a well formed xml file with xsl and dtd files; the xsl file apply an
    > html file to the data.
    >
    > With IE, if I open the XMl file, I get a HTML doc with my data
    > But, with Java or with XML SPy, if I try to apply the XSL Transformation, I
    > just get the HTML doc, without data !
    > BTW, with mozilla, if I open the XML file, I get an error :
    >
    > Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:[/color]

    For Mozilla, make sure your server delivers the XSL file with
    Content-Type text/xml

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    Working...