The situation is I have the .NET code which is functional, but some of the tables and stored procedures have been accidentally dropped. Weird situation - but I have to deal with it!
Here is the XSLT:And here is the XML I am generating from stored proc (Which I think should work, but isn’t. I need help with this so that it ties with the xslt above)HTML Code:<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> <xsl:output method="html" indent="yes"/> <xsl:template match="Review"> <xsl:for-each select="Comment"> <div class="control-group"> <label class="control-label"> <xsl:value-of select="./@name"/> <br/> <xsl:value-of select="./@date"/> </label> <div class="controls"> <xsl:value-of select="./@Review"/> </div> </div> </xsl:for-each> </xsl:template> </xsl:stylesheet>
It throws error in .js file when trying to process the XML to the supplied XSLTHTML Code:<Review> <Comment name="Wilson, Angel" date="08/01/2013" Review="Some reviews" /> <Comment name="Wilson, Angel" date="08/05/2013" Review="additional reviews" /> </Review>
JavaScript runtime error: Object doesn't support property or method 'transformNode'.HTML Code:if (window.ActiveXObject || xhttp.responseType == "msxml-document") { ex = xml.transformNode(xsl); $('#' + containerID).html(ex); }
I will appreciate if someone could help me with this.




Reply With Quote
