xml.XSLTTransformer.CreateFromDocument

Returns a new instance of a XSLTTransformer object to be used to transform a XML document based on a given style sheet.

Syntax

xml.XSLTTransformer.CreateFromDocument(
   doc xml.DomDocument )
RETURNS xml.XSLTTransformer
  1. doc defines the given style sheet.

Usage

Returns a new instance of an XSLTTransformer object to be used to transform a XML document based on the given style sheet.

No exception is raised in case of error. It is recommended to check if errors have been encountered loading the style sheet by using the xml.XSLTtransformer.getErrorsCount and xml.XSLTtransformer.getErrorDescription methods.

To see these methods in a working example, see Example: Using xml.XSLTtransformer methods.