FF XSL transform returning unexpected result
I'm currently using the code below to style some XML
and my stylesheets output method is set to HTML, and it's styling in IE fine, but in Firefox I'm getting the following back:
var processor = new XSLTProcessor();
var xmlDom = processor.transformToDocument(xmlDoc);
var serializer = new XMLSerializer();
output = serializer.serializeToString(xmlDom);
it's not formatted as html at all. Please, any help would be greatly appreciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3c.org/tr/html4/strict.dtd">
<transformiix:result xmlns:transformiix="http://www.mozilla.org/TransforMiix">Upcoming Events Thursday, 22 April randal's birthday Please bring cake Thursday, 13 May Ascension Sunday, 15 August Assumption Day Some description</transformiix:result>
Thank you so much.
Can you post an example of what you're working with in a .zip file, please? I'd like to take a look at it, but I don't have the XML or XSL files to do any testing.
Thanks for the response - much appreciated.
I found by changing my output method from
<xsl:output method="html" />
solved the problem.
<xsl:output method="html" indent="yes"
media-type="text/html" doctype-public="-//W3C//DTD HTML 4.0//EN"/>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)