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>17974</menuid><textbox><h1>Download Area for FLIR Product Literature</h1> <p> </p> <p>FLIR's product information is available for download, free of charge. Right-click the link and choose option "Save Target As". To open a .pdf document, you will need the Adobe Acrobat Reader software. <a title="Adobe download site" class="arrowLink" href="http://www.adobe.com/products/acrobat/readstep2.html" rel="nofollow">Adobe download site</a></p> <p> </p> <h2>Manuals</h2> <p>To download manuals for our cameras and software, please visit <a title="Customer Help" href="http://flir.custhelp.com/app/account/fl_downloads/kw/manual/r_id/166" target="_blank">Customer Help</a>. The download area also includes manuals for obsolete products, as well as manuals from our predecessors and acquired companies AGA, Agema, FSI, Inframetrics, Indigo Systems, and Cedip.</p> <p> </p> <table width="100%" class="show_design_border"> <tbody> <tr> <td><h3>FLIR i-Series</h3> <p><a title="FLIR i-Series Brochure" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=54375" target="_blank">FLIR i-Series Brochure</a></p> <h3>FLIR E-Series</h3> <p><a title="FLIR E-Series Brochure" class="pdf" href="/WorkArea/DownloadAsset.aspx?id=51158" target="_blank">FLIR E-Series Brochure</a></p> <p><a title="FLIR E-Series bx Brochure" class="pdf" href="/WorkArea/DownloadAsset.aspx?id=51159" target="_blank">FLIR E-Series bx Brochure</a></p> <p><a title="FLIR E-Series Datasheet" class="pdf" href="/uploadedFiles/Thermography_USA/Products/Product_Literature/flir-e-series-datasheet.pdf" target="_blank">FLIR E-Series Datasheet</a></p> <h3>FLIR T-Series</h3> <p><a title="FLIR T420 / T440 Datasheet" class="pdf" href="http://www.flir.com/uploadedFiles/Thermography_USA/Products/Product_Literature/flir-t420-t440-datasheet.pdf" target="_blank">FLIR T420 / T440 Datasheet</a></p> <p><a title="FLIR T420 bx / T440 bx Datasheet" class="pdf" href="http://www.flir.com/uploadedFiles/Thermography_USA/Products/Product_Literature/flir-t420bx-t440bx-datasheet.pdf" target="_blank">FLIR T420 bx / T440 bx Datasheet</a></p> <p><a title="FLIR T620 / T640 Datasheet" class="pdf" href="http://www.flir.com/uploadedFiles/Thermography_USA/Products/Product_Literature/flir-t620-datasheet.pdf" target="_blank">FLIR T620 / T640 Datasheet</a></p> <h3>FLIR P-Series</h3> <p><a title="Expert Level Cameras Brochure" class="pdf" href="http://flircms.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=32280&amp;libID=41161">Expert Level Cameras Brochure</a></p> <h3>FLIR GF-Series</h3> <p><a title="FLIR GF-Series Brochure" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=30799&amp;libID=39362">FLIR GF-Series Brochure</a></p> <p class="pdf"><span class="pdf"><a title="FLIR GF300/320, GF306 Brochure" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=54386&amp;libID=70832">FLIR GF300/320, GF306 Brochure</a></span></p> <p><a title="FLIR GF300/320, GF306 Datasheet" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=54387&amp;libID=70833" target="_blank">FLIR GF300/320, GF306 Datasheet</a></p> <p><a title="FLIR GF309 Datasheet" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19448" target="_blank">FLIR GF309 Datasheet</a></p> <a title="FLIR GF335 Datasheet" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=54388&amp;libID=70834" target="_blank">FLIR GF335 Datasheet</a><br /><h3>FLIR IR Windows</h3> <p><a title="FLIR IR Windows Datasheet" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?linkIdentifier=id&amp;ItemID=51096&amp;libID=64797">FLIR IR Windows Datasheet</a></p> <h3>FLIR A-Series</h3> <p><a title="Automation Brochure" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=30797&amp;libID=39360">Automation Brochure</a></p> <p><a title="FLIR A310 pt Datasheet" class="pdf" href="http://www1.flir.com/l/5392/2011-11-30/2WU9S/5392/51016/A310_pt_Datasheet_1010351.pdf">FLIR A310 pt Datasheet</a></p> <p><a title="FLIR A310 f Datasheet" class="pdf" href="http://www1.flir.com/l/5392/2011-11-30/2WUFW/5392/51036/A310f_Datasheet_1004315.pdf">FLIR A310 f Datasheet</a></p> <h3>Software</h3> <p><a title="FLIR IR Camera Player Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=50427&amp;libID=63531" target="_blank">FLIR IR Camera Player Datasheet</a></p> <p><a title="FLIR Tools Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=50425&amp;libID=63529" target="_blank">FLIR Tools Datasheet</a></p> <p><a title="FLIR ThermoVision SDK Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=50424&amp;libID=63528" target="_blank">FLIR ThermoVision SDK Datasheet</a></p> <p><a title="FLIR ThermoVision LabVIEW Toolkit Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=50429&amp;libID=63533" target="_blank">FLIR ThermoVision LabVIEW Toolkit Datasheet</a></p> <p><a title="FLIR VideoReport Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=50419&amp;libID=63523" target="_blank">FLIR VideoReport Datasheet</a></p> <p><a title="FLIR Reporter Pro Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19950" target="_blank">FLIR Reporter Pro Datasheet</a></p> <p><a title="FLIR Researcher Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19952" target="_blank">FLIR Researcher Datasheet</a></p> <p><a title="FLIR ExaminIR Brochure" class="pdf" href="http://www.flir.com/WorkArea/DownloadAsset.aspx?id=50889" target="_blank">FLIR ExaminIR Brochure</a></p> <h3>Services</h3> <p><a title="ThermaTrak Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=30145&amp;libID=38654" target="_blank">ThermaTrak Datasheet</a></p> </td> <td width="50%" style="vertical-align: text-top; "><h3>Industry Literature</h3> <p><a class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=55883&amp;libID=72682" title="FLIR Thermography Family Brochure">FLIR Thermography Family Brochure</a></p> <p><a title="Building Brochure" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=30800&amp;libID=39363">Building Brochure</a></p> <p><a title="Automation Brochure" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=30797&amp;libID=39360">Automation Brochure</a></p> <p><a title="Predictive Maintenance" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=30206&amp;libID=38715" target="_blank">Predictive Maintenance Brochure</a></p> <a class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19540" target="_blank">Equine Brochure</a><span class="pdf"></span><h3>FLIR Infrared Cameras for Building</h3> <p><a title="FLIR E-Series bx Brochure" class="pdf" href="/WorkArea/DownloadAsset.aspx?id=51159" target="_blank">FLIR E-Series bx Brochure</a></p> <p><a class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19502" target="_blank">FLIR B300 Datasheet</a></p> <p><a class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19504" target="_blank">FLIR B360 Datasheet</a></p> <p><a class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19506" target="_blank">FLIR B400 Datasheet</a></p> <h3>FLIR Infrared Cameras for Science &amp; Research</h3> <p><a title="Research &amp; Science Brochure" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=35982&amp;libID=45187">Research &amp; Science Brochure</a></p> <p><a title="Cameras for Science &amp;amp; Research chart" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=40863" target="_blank">Camera &amp; Optics Comparison Chart (Web PDF)</a></p> <p><a title="Cameras for Science &amp;amp; Research Brochure" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=40870" target="_blank">Camera &amp; Optics Comparison Chart (Printer Friendly)</a></p> <p><a title="Science Specialist Map" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=40864" target="_blank">Science Specialist Map</a></p> <p class="pdf"><a title="SC300 Series Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=31151&amp;libID=39718">FLIR SC300 Series Datasheet</a></p> <p><a title="FLIR SC645 Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=30801&amp;libID=39364">FLIR SC600 Series Datasheet</a></p> <p><a class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19998" target="_blank">FLIR SC600 Handheld Series Datasheet</a></p> <p><a title="A2600sc" class="pdf" href="http://www.flircms.com/uploadedFiles/Thermography_USA/Products/Product_Literature/A2600sc%20NIR%20Datasheet_3446_FINAL.pdf">FLIR A2600sc Datasheet</a> </p> <p><a title="FLIR SC2500-NIR Datasheet" class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=27259&amp;libID=35652" target="_blank">FLIR SC2500 Datasheet</a></p> <p><a class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19966" target="_blank">FLIR SC6000 MWIR Datasheet</a></p> <p><a title="FLIR SC7000 LWIR Datasheet" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=40866" target="_blank">FLIR SC7000 LWIR Datasheet</a></p> <p><a title="FLIR SC7000 MWIR Datasheet" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=40867" target="_blank">FLIR SC7000 MWIR Datasheet</a></p> <p><a title="FLIR SC8000 HS Datasheet" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=40868" target="_blank">FLIR SC8000 HS Datasheet</a></p> <p><a title="FLIR GF335 Broadband MWIR Datasheet" class="pdf" href="http://www.flir.com/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=40865" target="_blank">FLIR GF335 MWIR Datasheet</a></p> <p><a class="pdf" href="/WorkArea/linkit.aspx?LinkIdentifier=id&amp;ItemID=19972" target="_blank">FLIR RS6700 Datasheet</a></p> <p><a class="pdf" href="/uploadedFiles/Thermography_USA/Products/Product_Literature/T-Series Datasheet_1004315_web.pdf" target="_blank">FLIR T-Series Datasheet</a></p> </td> </tr> </tbody> </table> </textbox><RightContentID1>19818</RightContentID1><RightContentID2>40601</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>