Sandcastle BuildAssembler - Please enable xsl scripts...
Hi Team,
I have a customised version ofmain_sandcastle.xsl in which I have implemented a couple of scripts which I need to perform some tricky stuff.
I get the following error fromBuildAssembler when the scripts are required:
Error: TransformComponent: A error ocurred while executing the transform '', on line 0, at position 0. The error message was: Execution of scripts was prohibited. Use the XsltSettings.EnableScript property to enable it. An error occurred at C:\Program Files\Sandcastle\Presentation\vs2005\Transforms\main_sandcastle.xsl(288,27).
I assume that within theBuildAssembler somewhere you are using theLoad method of theXslCompiledTransform class. By default this disables scripts. Scripts can be enabled by passing anXsltSettings object withEnableScript set totrue. (Note that the object returned by the staticXsltSettings.TrustedXslt property could be used).
See the following documentation from MS:
http://msdn2.microsoft.com/en-us/library/system.xml.xsl.xslcompiledtransform.load.aspx
http://msdn2.microsoft.com/en-us/library/system.xml.xsl.xsltsettings.aspx
http://msdn2.microsoft.com/en-us/library/system.xml.xsl.xsltsettings.trustedxslt.aspx
Could this be included for the Feb CTP release? I think it should be an easy modification and would be a useful feature.
David

