本文整理匯總了C#中System.Xml.Xsl.XslTransform.LoadCompiledStylesheet方法的典型用法代碼示例。如果您正苦於以下問題:C# XslTransform.LoadCompiledStylesheet方法的具體用法?C# XslTransform.LoadCompiledStylesheet怎麽用?C# XslTransform.LoadCompiledStylesheet使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Xml.Xsl.XslTransform
的用法示例。
在下文中一共展示了XslTransform.LoadCompiledStylesheet方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Processor
//
// Construction
//
private Processor(XPathNavigator doc, XsltArgumentList args, XmlResolver resolver, XslTransform transform) {
transform.LoadCompiledStylesheet(out this.stylesheet, out this.queryList, out this.queryStore, out this.rootAction, doc);
this.xsm = new StateMachine();
this.document = doc;
this.builder = null;
this.actionStack = new HWStack(StackIncrement, /*limit:*/1000);
this.output = this.rootAction.Output;
this.resolver = resolver != null ? resolver : new XmlUrlResolver();
this.args = args != null ? args : new XsltArgumentList();
this.debugger = transform.Debugger;
if (this.debugger != null) {
this.debuggerStack = new HWStack(StackIncrement, /*limit:*/1000);
templateLookup = new TemplateLookupActionDbg();
}
this.scriptExtensions = new Hashtable(this.stylesheet.ScriptObjectTypes.Count); {
foreach(DictionaryEntry entry in this.stylesheet.ScriptObjectTypes) {
string namespaceUri = (string)entry.Key;
if (GetExtensionObject(namespaceUri) != null) {
throw new XsltException(Res.Xslt_ScriptDub, namespaceUri);
}
scriptExtensions.Add(namespaceUri, Activator.CreateInstance((Type)entry.Value,
BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, null, null, null));
}
}
this.PushActionFrame(this.rootAction, /*nodeSet:*/null);
}