FLIR Service & Support
Error: Error transforming XML with XSLT.
Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it. An error occurred at (55,2).
Line: 0
Position: 0

at Ektron.Cms.EkXml.XSLTransform1(String XmlDoc, String XsltDoc, Boolean XsltAsFile, Boolean XmlAsFile, XsltArgumentList XsltArgs, Boolean ReturnExceptionMessage, XmlResolver DocumentResolver, Double cacheInterval, String applicationPath, Boolean secureOverride)


XML:
<root><threecolumn>true</threecolumn><shadowbox>false</shadowbox><menuid>18046</menuid><textbox><h1 class="bodycontent">FLIR Customer Support Center</h1> <h2 class="bodycontent"> </h2> <h2 class="bodycontent">Superior Customer Service and Infrared Camera Support</h2> <p align="left" class="bodycontent"> </p> <p align="left" class="bodycontent"><strong>As the global leader in infrared cameras and thermography equipment, FLIR ensures that your support begins, not ends, at the time of purchase. With over 60 sales and service offices worldwide, you are never far from a FLIR support representative.</strong></p> <p align="left" class="bodycontent"> </p> <h3 align="left" class="bodycontent">Technical Support</h3> <p align="left" class="bodycontent">The <a href="http://support.flir.com" target="_blank"><strong>FLIR Customer Support Center</strong></a> portal will help you as a FLIR customer to get the most out of your FLIR products. The portal gives you access to our support team, software and documentation, service contacts, etc.</p> <h3 class="bodycontent"><br />FLIR Knowledgebase (FAQ)</h3> <p class="bodycontent">Search the open <a href="http://support.flir.com/answers" target="_blank"><strong>FLIR Knowledgebase</strong></a> or ask a question to our support team (requires a simple registration).</p> <h3 class="bodycontent"><br />Repair Services</h3> <p class="bodycontent">The FLIR expert service team provides quality warranty and non-warranty repair. <a href="http://support.flir.com/service" target="_blank"><strong>Find your local service representative.</strong></a><strong> </strong> <br /><br /></p> <h2><strong>CALL US: 1-866-FLIR-911 (1-866-3547-911)</strong></h2> <p> </p> <table class="show_design_border"> <tbody> <tr> <td width="30%" align="left" valign="top"><h3 class="bodycontent">FLIR Service Packages<br /><br /></h3> <p class="bodycontent"><img title="servicesupport1.jpg" alt="servicesupport1.jpg" src="/uploadedImages/Thermography/Service_and_Support/servicesupport1.jpg" border="0" /></p> </td> <td width="3%" align="left" valign="top"> </td> <td width="30%" align="left" valign="top"><h3 class="bodycontent">Calibration<br /><br /></h3> <p class="bodycontent"><img title="servicesupport2.jpg" align="left" alt="servicesupport2.jpg" src="/uploadedImages/Thermography/Service_and_Support/servicesupport2.jpg" border="0" /> </p> </td> </tr> <tr> <td align="left" valign="top"><p class="bodycontent">Select the level of service that is appropriate to your business requirements and budget.</p> <a class="bodycontent" href="http://www.flir.com/thermography/americas/us/content/?id=18050">FLIR Service Packages</a></td> <td align="left" valign="top"> </td> <td align="left" valign="top"><p class="bodycontent">Secure your camera investment with annual calibration, traceable to NIST standards.<br /><a class="bodycontent" href="http://www.flir.com/thermography/americas/us/content/?id=18040">FLIR 14 Point Inspection &amp; Calibration program</a></p> </td> </tr> </tbody> </table> <p align="left" class="bodycontent"><strong><br /></strong></p> </textbox><RightContentID1>19828</RightContentID1><RightContentID2>18098</RightContentID2><RightContentID3></RightContentID3><collectionid></collectionid><collectiontype>Tabs</collectiontype></root>



XSLT:
<xsl:stylesheet version="1.0" extension-element-prefixes="msxsl" exclude-result-prefixes="msxsl js dl atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:js="urn:custom-javascript" xmlns:dl="urn:datalist" xmlns:cms="urn:Ektron.Cms.Controls" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" /><xsl:strip-space elements="*" /><xsl:variable name="ektdesignns_fieldlist" select="/*/ektdesignpackage_list/fieldlist" /><xsl:param name="baseURL" select="''" /><xsl:param name="LangType" select="''" /><xsl:key name="ID0E5E" match="datalist[@name='ID0E5E']/item" use="@value" /><dl:root><datalist name="ID0E5E"><item value="Tabs">Tabs</item><item value="List">List</item></datalist></dl:root><xsl:template name="safeUri"><xsl:param name="uri" select="''" /><xsl:variable name="uri-lang"><xsl:choose><xsl:when test="string-length($LangType) &gt; 0 and contains($uri,'&amp;LangType=-1')"><xsl:value-of select="substring-before($uri,'&amp;LangType=-1')" /><xsl:value-of select="concat('&amp;LangType=',$LangType)" /><xsl:value-of select="substring-after($uri,'&amp;LangType=-1')" /></xsl:when><xsl:when test="contains($uri,'&amp;LangType=-1')"><xsl:value-of select="substring-before($uri,'&amp;LangType=-1')" /><xsl:value-of select="substring-after($uri,'&amp;LangType=-1')" /></xsl:when><xsl:otherwise><xsl:value-of select="$uri" /></xsl:otherwise></xsl:choose></xsl:variable><xsl:choose><xsl:when test="starts-with($uri-lang,'//') or contains($uri-lang,':')"><xsl:value-of select="$uri-lang" /></xsl:when><xsl:when test="starts-with($uri-lang,'/') or substring($baseURL,string-length($baseURL),1)='/'"><xsl:value-of select="concat($baseURL,$uri-lang)" /></xsl:when><xsl:otherwise><xsl:value-of select="concat($baseURL,'/',$uri-lang)" /></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="/" xml:space="preserve"><span style="display:none"> </span><script language="JavaScript" type="text/javascript" defer="defer"><xsl:comment xml:space="preserve"><xsl:text> function ektLocalizeDate(date, id) { setTimeout(function() { if (document.getElementById &amp;&amp; 10 == date.length) { var oTempDate = new Date(date.substr(0,4), parseInt(date.substr(5,2),10)-1, date.substr(8,2)); document.getElementById(id).innerHTML=(oTempDate.toLocaleDateString ? oTempDate.toLocaleDateString() : oTempDate.toLocaleString()); } }, 1); } // </xsl:text></xsl:comment></script><p> <input xml:space="default" title="Field 1" id="threecolumn" type="checkbox" value="on" disabled="disabled"><xsl:if test="/root/threecolumn='true' or /root/threecolumn='1'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if></input> Is this a 3-column page?<xsl:text> </xsl:text> </p> <p> <input xml:space="default" title="Field 2" id="shadowbox" type="checkbox" value="on" disabled="disabled"><xsl:if test="/root/shadowbox='true' or /root/shadowbox='1'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if></input> Shadowbox the videos?<xsl:text> </xsl:text> </p> <p>Menu ID   <xsl:value-of select="/root/menuid" />     <br /> <br /> TextBox:        </p> <div title="textbox" id="textbox"><xsl:copy-of select="/root/textbox/node()" /></div> <p><br /> <font color="#ff0000" face="Arial"><strong><u>RIGHT COLUMN CONTENT</u></strong></font> </p> <p><font face="Arial">In order to use these fields, you must have the 3-column checkbox selected at the top of this page.</font></p> <p> </p> <table width="424" align="left" border="0" cellspacing="0" cellpadding="5"> <tbody> <tr> <td>Puff 1 Content ID</td> <td><xsl:value-of select="/root/RightContentID1" /></td> </tr> <tr> <td>Puff 2 Content ID</td> <td><xsl:value-of select="/root/RightContentID2" /></td> </tr> <tr> <td>Puff 3 Content ID</td> <td><xsl:value-of select="/root/RightContentID3" /></td> </tr> </tbody> </table> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>Collection id   <xsl:value-of select="/root/collectionid" />  </p> <p>Collection Type   <xsl:if test="true()"> <xsl:variable name="dl" select="document('')/*/dl:*/datalist[@name='ID0E5E']/item" /><xsl:variable name="datalistKey" select="'ID0E5E'" /><xsl:variable name="datalist" select="$dl" /><xsl:variable name="value" select="string(/root/collectiontype)" /><xsl:variable name="display-value" select="($dl[@value=$value])[1]/." /><xsl:choose><xsl:when test="$display-value"><xsl:copy-of select="$display-value/node()" /></xsl:when><xsl:otherwise><xsl:copy-of select="/root/collectiontype/node()" /></xsl:otherwise></xsl:choose> </xsl:if>  </p> </xsl:template></xsl:stylesheet>