XsltSettings::TrustedXslt Property

 

Gets an XsltSettings object that enables support for the XSLT document() function and embedded script blocks.

Namespace:   System.Xml.Xsl
Assembly:  System.Xml (in System.Xml.dll)

public:
property XsltSettings^ TrustedXslt {
	static XsltSettings^ get();
}

Property Value

Type: System.Xml.Xsl::XsltSettings^

An XsltSettings object with the EnableDocumentFunction and EnableScript properties set to true.

System_CAPS_security Security Note

XSLT scripting should be enabled only if you require script support and you are working in a fully trusted environment. If you enable the document() function, you can restrict the resources that can be accessed by passing an XmlSecureResolver object to the Transform method.

The following example loads a style sheet with support for the XSLT document() function and embedded script blocks features enabled.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: