Hi friends,
I was able to get the doc.xml working under IE, but Netscape(4.74)
displays a blank page, although, it displays the XML source when I do
the view source.
Is it a know issue under Netscape?
The other question is, I always thought that the conversion is being done
on the server side, but, it does not look so, because I can see the XML
document when I do 'View Source'.
Would appreciate some feedback on it.
Thanks,
Manoj
-----Original Message-----
From: "Johan Fredriksson" [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 3:26 AM
To: "Orion-Interest"
Subject: RE: xml,xsl in orion
It depends on what you want to achieve with this. The easiest thing is to
edit
mime.types
and change the
text/xml xml ent cat sty
to
text/html xml ent cat sty
or move the xml entry to an existing text/html
This will force internet explorer to display the xml - document properly.
----- Original Message -----
From: Terence <mailto:[EMAIL PROTECTED]> Kwan
To: Orion-Interest <mailto:[EMAIL PROTECTED]>
Sent: Wednesday, November 01, 2000 7:33 AM
Subject: xml,xsl in orion
I am trying out the examples/xsl/data.xml demo. However, the browser think
the
returned stream is xml instead of html. How can I set the return stream
type to
html for xml file? So the browser will display the result in html instead of
xml.
Basically, I want to do the following:
Thanks
TK
----- car.xml -----
<?xml version="1.0?>
<?xml-stylesheet href="car.xsl" type="text/xsl"?>
<% // Query database to get car information
String sCarName="Toyota";
%>
<car>
<name><%=sCarName%></name>
</car>
---- car.xsl --------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform
<http://www.w3.org/1999/XSL/Transform> " version="1.0">
<xsl:output method="html"/>
<xsl:template match="car">
<html>
<head>
<title>Car
</title>
</head>
<body>
<h1><xsl:value-of select="name"/></h1>
</body>
</html>
</xsl:template>
</xsl:stylesheet>