%XML.XSLT.Transformer
class %XML.XSLT.Transformer extends %Library.RegisteredObject
Implements an interface to the XSLT Parser. XML contained in a file or binary stream may be transformedMethod Inventory
- Example()
- Example2()
- Example3()
- NormalizeFileName()
- TransformFile()
- TransformFileWithCompiledXSL()
- TransformStream()
- TransformStreamWithCompiledXSL()
- TransformStringWithCompiledXSL()
Methods
classmethod Example()
Example, Transform a stream. For this example, streams are derived from XDATA blocks within this class. In
a real-world scenario streams would come from an external source
classmethod Example2()
Example 2, Transform a stream. For this example, streams are derived from XDATA blocks within this class. In
a real-world scenario streams would come from an external source. The XSL specification is first compiled
and then is used to transform the source. This is useful for when the same stylesheet needs to be applied
to many different xml sources as it can result in considerable performance improvements.
classmethod Example3()
Example3, Transform a stream. For this example, streams are derived from XDATA blocks within this class. In
a real-world scenario streams would come from an external source. Here we install the default Callback Handler
classmethod TransformFile(pSource As %String, pXSL As %String, pOutput As %String, pErrorHandler As %XML.XSLT.ErrorHandler = $$$NULLOREF, ByRef pParams=$$$NULLOREF, pCallbackHandler=$$$NULLOREF, pResolver As %XML.SAX.EntityResolver = $$$NULLOREF) as %Status
This method transforms a source file according to an XSL stylesheet and writes the output
to the specified output file. If errors occur during processing, callbacks will be made to
the supplied error handler. If an error handler is not supplied then the default is to use
a newly created instance of %XML.XSLT.ErrorHandler. The pParams argument is either a CoS
array, or %ArrayOfDataTyoes of name/value pairs to be passed as $ variables.
classmethod TransformFileWithCompiledXSL(pSource As %String, pXSL As %XML.XSLT.CompiledStyleSheet, pOutput As %String, pErrorHandler As %XML.XSLT.ErrorHandler = $$$NULLOREF, ByRef pParams=$$$NULLOREF, pCallbackHandler=$$$NULLOREF, pResolver As %XML.SAX.EntityResolver = $$$NULLOREF) as %Status
This method transforms a source file according to an XSL stylesheet and writes the output
to the specified output file. If errors occur during processing, callbacks will be made to
the supplied error handler. If an error handler is not supplied then the default is to use
a newly created instance of %XML.XSLT.ErrorHandler. The pParams argument is either a CoS
array, or %ArrayOfDataTyoes of name/value pairs to be passed as $ variables.
classmethod TransformStream(pSource As %AbstractStream, pXSL As %AbstractStream, ByRef pOutput As %BinaryStream = $$$NULLOREF, pErrorHandler As %XML.XSLT.ErrorHandler = $$$NULLOREF, ByRef pParams=$$$NULLOREF, pCallbackHandler=$$$NULLOREF, pResolver As %XML.SAX.EntityResolver = $$$NULLOREF) as %Status
This method transforms a source stream according to an XSL stylesheet and writes the output
to the supplied binary stream. If errors occur during processing, callbacks will be made to the
supplied error handler. If an error handler is not supplied then the default is to use a newly created
instance of %XML.XSLT.ErrorHandler. The pParams argument is either a CoS
array, or %ArrayOfDataTyoes of name/value pairs to be passed as $ variables.
classmethod TransformStreamWithCompiledXSL(pSource As %AbstractStream, pXSL As %XML.XSLT.CompiledStyleSheet, ByRef pOutput As %BinaryStream = $$$NULLOREF, pErrorHandler As %XML.XSLT.ErrorHandler = $$$NULLOREF, ByRef pParams=$$$NULLOREF, pCallbackHandler=$$$NULLOREF, pResolver As %XML.SAX.EntityResolver = $$$NULLOREF) as %Status
This method transforms a source stream according to an XSL stylesheet and writes the output
to the supplied binary stream. If errors occur during processing, callbacks will be made to the
supplied error handler. If an error handler is not supplied then the default is to use a newly created
instance of %XML.XSLT.ErrorHandler. The pParams argument is either a CoS
array, or %ArrayOfDataTyoes of name/value pairs to be passed as $ variables.
classmethod TransformStringWithCompiledXSL(pString As %String, pXSL As %XML.XSLT.CompiledStyleSheet, ByRef pOutput As %String, pErrorHandler As %XML.XSLT.ErrorHandler = $$$NULLOREF, ByRef pParams=$$$NULLOREF, pCallbackHandler=$$$NULLOREF, pResolver As %XML.SAX.EntityResolver = $$$NULLOREF) as %Status
This method transforms a source file according to an XSL stylesheet and writes the output
to the specified output file. If errors occur during processing, callbacks will be made to
the supplied error handler. If an error handler is not supplied then the default is to use
a newly created instance of %XML.XSLT.ErrorHandler. The pParams argument is either a CoS
array, or %ArrayOfDataTyoes of name/value pairs to be passed as $ variables.
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()