Hello forum,
- I get the error below, when I configure my XML to User Provider, so I wonder if it's possible to use the document() function in my XSLT?
Problem is, I need to merge customer.xml with delivery.xml:
<xsl:variable name="deliveryaddresses" select="document('./delivery.xml')/deliveryaddresses"/>
Error message:
Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it. An error occurred at E:\Solutions\xxx\Files\Files\Integration\Data\XSLT\Customer.xslt(5,2).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.Xsl.XslTransformException: Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it. An error occurred at E:\Solutions\xxx\Files\Files\Integration\Data\XSLT\Customer.xslt(5,2).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Br. Michael Knudsen