Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

XHTML (XML) to another HTML

The site I am working on currently uses XHTML files throughout (some .asp
and some .html). I am trying to use an .asp page to convert this XHTML to
an older HTML for PocketPC users. Since the XHTML is valid XML, I have been
trying to use this to do the conversion:

<% Set xmlDocument = Server.CreateObject("Microsoft.XMLDOM")
Set xslDocument = Server.CreateObject("Microsoft.XMLDOM")
xmlDocument.load(Server.MapPath("index.html"))
xslDocument.load(Server.MapPath("pocket.xsl"))
Response.Write(xmlDocument.transformNode(xslDocument)) %>

This works on other XML files, but not this. Why not? And what is a better
way to make this conversion work?

Thanks.
[717 byte] By [Matt] at [2007-11-9 15:24:28]