class EnsLib.XSLT.Common
extends %RegisteredObject
Common utilities
parameter DEFAULTSSKEY = "DEFAULT";
parameter SETTINGS = "Stylesheet,StylesheetDir,StylesheetDirFileSpec,Parameters,RuntimeMode,CallbackHandlerClass";
method GetStyleSheetByKey(pStyleSheetKey As %String = ..#DEFAULTSSKEY)
as %XML.XSLT.CompiledStyleSheet
Override to select stylesheets by key differently
method HasStyleSheetByKey(pKey As %String = ..#DEFAULTSSKEY)
as %Boolean
method OnInit()
as %Status
This user callback method is called just after %OnNew()
method OnTearDown()
as %Status
This user callback method is called just before %OnClose()
method Transform(pInput, pSSKey As %String = ..#DEFAULTSSKEY, ByRef pParameters=$$$NULLOREF, ByRef pOutput)
as %Status
Do the actual transformation
method TransformFromObject(pObject As %XML.Adaptor, pSSKey As %String = ..#DEFAULTSSKEY, ByRef pOutput As %Stream.GlobalCharacter, ByRef pXMLName As %String, ByRef pParameters=$$$NULLOREF, pAsStream As %Boolean = 1)
as %Status
method TransformIntoObject(pInput, pSSKey As %String = ..#DEFAULTSSKEY, pClassname As %String, ByRef pOutput As %XML.Adaptor, ByRef pXMLName As %String, ByRef pParameters=$$$NULLOREF)
as %Status
classmethod getParameters(pParameters As %Collection.ArrayOfDT, ByRef pParams)
as %Status
method loadStylesheetFromStream(pStream As %Stream.Object, pName As %String = ..#DEFAULTSSKEY)
as %Status
Load a stylesheet from a stream
method loadStylesheetFromXData(pClass As %String, pXData As %String, pName As %String = ..#DEFAULTSSKEY)
as %Status
Load a stylesheet from an XDATA block