<script type="text/javascript">
<!--
//<![CDATA[
if(document.all && document.getElementById){
// Note: This JavaScript will produce the XML
// output only in MSIE. Other browsers will
// ignore this code. We may develop a script in
// the future which works well in FireFox and
// other browsers, however at this time the XML
// support in those browsers is limited and
// subject to change.
// If cross-browser support is essential, then
// we recommend you investigate the VBScript example
// and perform the XML transform at the server-side.
var objXMLDoc = new ActiveXObject("MSXML2.FreeThreadedDOMDocument.3.0");
objXMLDoc.async = false;
objXMLDoc.load("");
if(objXMLDoc.parseError.errorCode!=0)
{
writeXMLError(objXMLDoc)
}
var objXSLDoc = new ActiveXObject("MSXML2.FreeThreadedDOMDocument.3.0");
objXSLDoc.async = false;
objXSLDoc.load("http://www.nohaggles.com/_vehicles/templates/rssToHTML(Default)(1-1).xsl");
if(objXSLDoc.parseError.errorCode!=0)
{
writeXMLError(objXSLDoc)
}
var objXSLTemplate = new ActiveXObject("MSXML2.XSLTemplate");
objXSLTemplate.stylesheet = objXSLDoc;
var objXSLProcessor = objXSLTemplate.createProcessor();
objXSLProcessor.input = objXMLDoc;
objXSLProcessor.addParameter("target","_self");
objXSLProcessor.addParameter("lngShowNumberOfItems","0");
objXSLProcessor.addParameter("lngLengthOfDescription","224");
objXSLProcessor.transform();
document.write(objXSLProcessor.output);
function writeXMLError(obj)
{
document.writeln("<br \/>Error Code: ");
document.writeln(obj.parseError.errorCode);
document.writeln("<br \/>Error Reason: ");
document.writeln(obj.parseError.reason);
document.writeln("<br \/>Error Line: ");
document.writeln(obj.parseError.line);
document.writeln("<br \/>Error Position: ");
document.writeln(obj.parseError.linepos);
}
}
//]]>
//-->
</script>