question

EricStott-6031 avatar image
0 Votes"
EricStott-6031 asked AnnaXiu-MSFT commented

Unable to execute transformation. Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it.

I am upgrading my solution to .Net 4.7 (VS 2019) and am using WIX to create the msi. All of the projects build successfully, however, when the WIX install compiles, I get this error.

Severity Code Description Project File Line Suppression State
Error Unable to execute transformation. Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it. An error occurred at C:\Code\EDI Vision\Skeleton\Install\XSLT\XslProjectOutput.xslt(0,0). Install C:\Code\EDI Vision\Skeleton\Install\Install.wixproj 115

I have opened up a question on the WIX side and they state that it is a MSBuild issue.
"XslTransformation is not a WiX task. You need to talk to MSBuild."

I am not sure where else to ask

vs-msbuild
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, from the similar issue, you can try adding the UseTrustedSettings parameter to the XslTransformation task, does it work?



0 Votes 0 ·

In a WIX msi project that calls MSBuild, where is the XslTransformation task?

0 Votes 0 ·

You can find the XslTransformation task in the wixproj file.

0 Votes 0 ·

0 Answers