XML Support ASP V4 on Linux

We are moving our site from IIS to Linux running Sun One ASP, but can not get XML to work. The code I use on IIS is: 'Load the XML set xmlDocument = Server.CreateObject("MSXML2.DOMDocument.3.0") xmlDocument.async = false xmlDocument.load(Server.MapPath("/latestnews/latestnews.xml")) 'Load the XSL set xslDocument = Server.CreateObject("MSXML2.FreeThreadedDOMDocument.3.0") xslDocument.async = false xslDocument.load(Server.MapPath("/Themes/Scripts/xsl/latestnews.xsl")) set xsltTemplate = Server.CreateObject("MSXML2.XSLTemplate.3.0") xsltTemplate.stylesheet = xslDocument set xsltProcessor = xsltTemplate.createProcessor() xsltProcessor.input = xmlDocument 'Pass parameter to stylesheet xsltProcessor.addParameter "thisDate", chooseDate xsltProcessor.transform Response.Write(xsltProcessor.output) How do I get my XML and XSL files to work using Sun One ASP? /

Has anybody any suggestions pls?

[912 byte] By [michaelajohnson] at [2007-11-26 8:30:41]
# 1

Hi,

I'd suggest you search the forum for xml, there are examples and notes on what to do to get it to work.

You have to ensure java is installed and make some admin configuration changes too. Its covered in other postings.

I've also sometimes found differences in the way mappath works. I seem to remember its better to actually just use mappath on the path and add the filename on the end on sun rather than including the filename in the path.

XML is covered in the docs which you can download.

Duncan

Duncan_Berriman at 2007-7-6 21:51:32 > top of Java-index,Web & Directory Servers,Web Servers...