object(byApplyingXSLT:arguments:)
Applies the XSLT pattern rules and templates (specified as a data object) to the receiver and returns a document object containing transformed XML or HTML markup.
Declaration
func object(byApplyingXSLT xslt: Data, arguments: [String : String]?) throws -> AnyParameters
- xslt:
A data object containing the XSLT pattern rules and templates.
- arguments:
A dictionary containing Nsstring key-value pairs that are passed as runtime parameters to the XSLT processor. Pass in
nilif you have no parameters to pass.
Return Value
Depending on intended output, the method returns an NSXMLDocument object or an NSData data containing transformed XML or HTML markup. If the message is supposed to create plain text or RTF, then an NSData object is returned, otherwise an XML document object. The method returns nil if XSLT processing did not succeed.