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. It may raise a XML_ERROR_LOAD_EXCEPTION exception if the XML document is not loadable.

There may be non-critical errors when loading a given style sheet document; you can check with the xml.XSLTtransfomer.getErrorsCount() method.

In case of error, the method throws an exception and sets the status variable. Depending on the error, a human-readable description of the problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).

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