XsltSettings.Default 属性

定义

XsltSettings获取具有默认设置的对象。 禁用对 XSLT document() 函数和嵌入式脚本块的支持。

public:
 static property System::Xml::Xsl::XsltSettings ^ Default { System::Xml::Xsl::XsltSettings ^ get(); };
public static System.Xml.Xsl.XsltSettings Default { get; }
static member Default : System.Xml.Xsl.XsltSettings
Public Shared ReadOnly Property Default As XsltSettings

属性值

一个XsltSettings对象,EnableDocumentFunctionEnableScript其属性设置为 false.

示例

以下示例加载具有默认 XSLT 设置的样式表。

// Create the XslCompiledTransform object and load the style sheet.
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load("sort.xsl", XsltSettings.Default, new XmlUrlResolver());
' Create the XslCompiledTransform object and load the style sheet.
Dim xslt As New XslCompiledTransform()
xslt.Load("sort.xsl", XsltSettings.Default, New XmlUrlResolver())

适用于

另请参阅