Share via


TransformerFactory.GetAssociatedStylesheet Method

Definition

Get the stylesheet specification(s) associated with the XML Source document via the xml-stylesheet processing instruction that match the given criteria.

[Android.Runtime.Register("getAssociatedStylesheet", "(Ljavax/xml/transform/Source;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljavax/xml/transform/Source;", "GetGetAssociatedStylesheet_Ljavax_xml_transform_Source_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public abstract Javax.Xml.Transform.ISource? GetAssociatedStylesheet (Javax.Xml.Transform.ISource? source, string? media, string? title, string? charset);
[<Android.Runtime.Register("getAssociatedStylesheet", "(Ljavax/xml/transform/Source;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljavax/xml/transform/Source;", "GetGetAssociatedStylesheet_Ljavax_xml_transform_Source_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member GetAssociatedStylesheet : Javax.Xml.Transform.ISource * string * string * string -> Javax.Xml.Transform.ISource

Parameters

source
ISource

The XML source document.

media
String

The media attribute to be matched. May be null, in which case the preferred templates will be used (i.e. alternate = no).

title
String

The value of the title attribute to match. May be null.

charset
String

The value of the charset attribute to match. May be null.

Returns

A SourceObject suitable for passing to the TransformerFactory.

Attributes

Exceptions

An Exception is thrown if an error occurs during parsing of the source.

Remarks

Get the stylesheet specification(s) associated with the XML Source document via the xml-stylesheet processing instruction that match the given criteria. Note that it is possible to return several stylesheets, in which case they are applied as if they were a list of imports or cascades in a single stylesheet.

Java documentation for javax.xml.transform.TransformerFactory.getAssociatedStylesheet(javax.xml.transform.Source, java.lang.String, 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