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

◆ ResolveDocument()

NavigatorInput System.Xml.Xsl.XsltOld.Compiler.ResolveDocument ( Uri absoluteUri)
inlinepackage

Definition at line 487 of file Compiler.cs.

488 {
489 object entity = _xmlResolver.GetEntity(absoluteUri, null, null);
490 string text = absoluteUri.ToString();
491 if (entity is Stream)
492 {
493 XmlTextReaderImpl xmlTextReaderImpl = new XmlTextReaderImpl(text, (Stream)entity);
495 return new NavigatorInput(LoadDocument(xmlTextReaderImpl).CreateNavigator(), text, _rootScope);
496 }
497 if (entity is XPathNavigator)
498 {
499 return new NavigatorInput((XPathNavigator)entity, text, _rootScope);
500 }
501 throw XsltException.Create(System.SR.Xslt_CantResolve, text);
502 }
static string Xslt_CantResolve
Definition SR.cs:2078
Definition SR.cs:7
object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn)
static XPathDocument LoadDocument(XmlTextReaderImpl reader)
Definition Compiler.cs:447

References System.Xml.Xsl.XsltOld.Compiler._rootScope, System.Xml.Xsl.XsltOld.Compiler._xmlResolver, System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.XmlResolver.GetEntity(), System.Xml.Xsl.XsltOld.Compiler.LoadDocument(), System.text, and System.SR.Xslt_CantResolve.