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
- 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.