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

◆ GetNavigator()

XPathNavigator System.Xml.Xsl.XsltOld.Processor.GetNavigator ( Uri ruri)
inlinepackage

Definition at line 128 of file Processor.cs.

129 {
131 if (_documentCache != null)
132 {
134 {
135 return xPathNavigator2.Clone();
136 }
137 }
138 else
139 {
141 }
142 object entity = _resolver.GetEntity(ruri, null, null);
143 if (entity is Stream)
144 {
145 XmlTextReaderImpl xmlTextReaderImpl = new XmlTextReaderImpl(ruri.ToString(), (Stream)entity);
147 xPathNavigator = ((IXPathNavigable)Compiler.LoadDocument(xmlTextReaderImpl)).CreateNavigator();
148 }
149 else
150 {
151 if (!(entity is XPathNavigator))
152 {
153 throw XsltException.Create(System.SR.Xslt_CantResolve, ruri.ToString());
154 }
156 }
158 return xPathNavigator;
159 }
static string Xslt_CantResolve
Definition SR.cs:2078
Definition SR.cs:7
object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn)
readonly XmlResolver _resolver
Definition Processor.cs:64

References System.Xml.Xsl.XsltOld.Processor._documentCache, System.Xml.Xsl.XsltOld.Processor._resolver, System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.XmlResolver.GetEntity(), System.Xml.Xsl.XsltOld.Compiler.LoadDocument(), and System.SR.Xslt_CantResolve.

Referenced by System.Xml.Xsl.XsltOld.XsltCompileContext.Document().