Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ XmlQueryContext()

System.Xml.Xsl.Runtime.XmlQueryContext.XmlQueryContext ( XmlQueryRuntime runtime,
object defaultDataSource,
XmlResolver dataSources,
XsltArgumentList argList,
WhitespaceRuleLookup wsRules )
inlinepackage

Definition at line 57 of file XmlQueryContext.cs.

58 {
64 if (defaultDataSource is XmlReader)
65 {
66 _readerSettings = new QueryReaderSettings((XmlReader)defaultDataSource);
67 }
68 else
69 {
70 _readerSettings = new QueryReaderSettings(new NameTable());
71 }
72 if (defaultDataSource is string)
73 {
75 if (_defaultDataSource == null)
76 {
77 throw new XslTransformException(System.SR.XmlIl_UnknownDocument, defaultDataSource as string);
78 }
79 }
80 else if (defaultDataSource != null)
81 {
83 }
84 }
static string XmlIl_UnknownDocument
Definition SR.cs:2042
Definition SR.cs:7
readonly XPathNavigator _defaultDataSource
XPathNavigator GetDataSource(string uriRelative, string uriBase)
readonly WhitespaceRuleLookup _wsRules
readonly QueryReaderSettings _readerSettings
XPathNavigator ConstructDocument(object dataSource, string uriRelative, Uri uriResolved)

References System.Xml.Xsl.Runtime.XmlQueryContext._argList, System.Xml.Xsl.Runtime.XmlQueryContext._dataSourceCache, System.Xml.Xsl.Runtime.XmlQueryContext._dataSources, System.Xml.Xsl.Runtime.XmlQueryContext._defaultDataSource, System.Xml.Xsl.Runtime.XmlQueryContext._readerSettings, System.Xml.Xsl.Runtime.XmlQueryContext._runtime, System.Xml.Xsl.Runtime.XmlQueryContext._wsRules, System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(), System.Xml.Dictionary, System.Xml.Xsl.Runtime.XmlQueryContext.GetDataSource(), and System.SR.XmlIl_UnknownDocument.