Compartir a través de


IURIResolver.Resolve(String, String) Method

Definition

Called by the processor when it encounters an xsl:include, xsl:import, or document() function.

[Android.Runtime.Register("resolve", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/xml/transform/Source;", "GetResolve_Ljava_lang_String_Ljava_lang_String_Handler:Javax.Xml.Transform.IURIResolverInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Javax.Xml.Transform.ISource? Resolve (string? href, string? base);
[<Android.Runtime.Register("resolve", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/xml/transform/Source;", "GetResolve_Ljava_lang_String_Ljava_lang_String_Handler:Javax.Xml.Transform.IURIResolverInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Resolve : string * string -> Javax.Xml.Transform.ISource

Parameters

href
String

An href attribute, which may be relative or absolute.

base
String

The base URI against which the first argument will be made absolute if the absolute URI is required.

Returns

A Source object, or null if the href cannot be resolved, and the processor should try to resolve the URI itself.

Attributes

Exceptions

if an error occurs when trying to resolve the URI.

Remarks

Called by the processor when it encounters an xsl:include, xsl:import, or document() function.

Java documentation for javax.xml.transform.URIResolver.resolve(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to