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>false</threecolumn><shadowbox>false</shadowbox><menuid></menuid><textbox><p align="center"><img title="media inquiries" alt="media inquiries" src="/uploadedImages/Thermography_USA/News_and_Events/media-banner.png" /></p> <p align="center"> </p> <table cellspacing="8" cellpadding="5"> <tbody> <tr> <td><p align="left"><strong></strong></p> <h1 align="center">Our cameras let you tell the whole story</h1> <p> </p> <p align="left">Do your movie or television viewers need to see what’s going in the dark? Do you want to showcase the hottest night vision spy technology? FLIR thermal imagers see heat, not light, allowing the operator (and the audience) to see through total darkness, smoke, and light fog. FLIR’s thermal cameras have been used to reveal the hidden by nationally syndicated TV programs airing on the Discovery Channel, National Geographic, ABC, CBS, NBC, Fox, TLC, HGTV, and many more. Thermal imaging technology has also been featured in major motion pictures such as <em>The Thomas Crown Affair, Predator, The Guardian, Mission Impossible III </em>and<em> The Cove</em>. FLIR Systems, the world leader in the design and manufacture of thermal imagers, has a thermal camera perfect for your specific application. Our video output capability makes recording easy and fool-proof, so contact FLIR today to borrow or lease a thermal camera for your next shoot! </p> <h2 align="center"><br />Shoot any time, any weather, any light&amp;</h2> </td> </tr> <tr> <td><h3 align="left">FLIR thermal technology has been highlighted in the following movies and television programs:</h3> <p> </p> <p> </p> <table align="center" style="width: 582px; height: 184px; "> <tbody> <tr> <td align="left" valign="top"><ul> <li>Miami Vice</li> <li>Transformers I</li> <li>America’s Most Wanted</li> <li>Deadliest Catch</li> <li>CSI NY</li> <li>NCIS</li> <li>24</li> <li>Law and Order</li> <li>Myth Busters</li> <li>Bob Vila</li> <li>The Outdoorsman</li> </ul> </td> <td align="left" valign="top"><ul> <li>Ghost Hunters</li> <li>DIY Deconstruction</li> <li>Planet Green</li> <li>CBS National T.V.</li> <li>Surviving Disaster</li> <li>MSNBC News</li> <li>20/20</li> <li>House Detective</li> <li>Renovation Nation</li> <li>Holmes on Homes</li> <li>Cool Tools</li> </ul> </td> </tr> </tbody> </table> <p> </p> <p> </p> <h2 align="center"><a title="To see FLIR in action, visit our YouTube channel" class="arrowLink" href="http://www.youtube.com/flirnightvision" target="_blank"><strong>To see FLIR in action, visit our YouTube channel</strong></a></h2> </td> </tr> <tr> <td><p> </p> <p>Please call us at 1-877-773-3547 or contact us with the form below if you have a media inquiry. If you have a general question about FLIR products, please contact us using our <a title="request form" href="http://www.flir.com/thermography/americas/us/inforequest/">request form</a>.</p> <p> </p> <p><iframe src="http://www1.flir.com/l/5392/2011-10-07/19SKS" width="100%" height="400" type="text/html" frameborder="0" allowtransparency="true" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></iframe> </p> </td> </tr> </tbody> </table> <p> </p> </textbox><RightContentID1></RightContentID1><RightContentID2></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>