Home > Class Reference > HSLIB namespace > HS.Util.Transformer

HS.Util.Transformer

class HS.Util.Transformer extends EnsLib.XSLT.Common

Deprecated - please use HS.Util.XSLTTransformer instead We won't remove this, because it is in extensive use It's OK to use for files, but not for style sheets in XDATA blocks. Utility class for XSLT transformations

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property XSLTClass as %String [ Private ];
use XSLTClass makes it possible to use classes with XData blocks
Property methods: XSLTClassDisplayToLogical(), XSLTClassGet(), XSLTClassIsValid(), XSLTClassLogicalToDisplay(), XSLTClassLogicalToOdbc(), XSLTClassNormalize(), XSLTClassSet()
property XSLTSpec as %String [ Private ];
file specification to be used such as *.xsl
Property methods: XSLTSpecDisplayToLogical(), XSLTSpecGet(), XSLTSpecIsValid(), XSLTSpecLogicalToDisplay(), XSLTSpecLogicalToOdbc(), XSLTSpecNormalize(), XSLTSpecSet()
property XSLTSubDir as %String [ Private ];
subdirectory under xslt treed structure allowed using sub/sub/sub
Property methods: XSLTSubDirDisplayToLogical(), XSLTSubDirGet(), XSLTSubDirIsValid(), XSLTSubDirLogicalToDisplay(), XSLTSubDirLogicalToOdbc(), XSLTSubDirNormalize(), XSLTSubDirSet()

Methods (Including Private)

private method %OnNew(pSubDir As %String = "", pSpec As %String = "", pClass As %String = "") as %Status [ Language = objectscript ]
This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status

classmethod LoadAndTransform(pStreamInput As %Stream.TmpCharacter, Output pOutputStream As %Stream.TmpCharacter, Output pTransformer As HS.Util.Transformer, pDirectory As %String, pSpec As %String, pFile As %String = "", ByRef pParameters) as %Status [ Language = objectscript ]
method LoadDirectory(pDirectory As %String = "", pFilespec As %String = "") as %Status [ Language = objectscript ]
Additional directories to be loaded after the OnInit
classmethod LoadURL(pURL As %String, ByRef pTransformer As HS.Util.Transformer) as %Status [ Language = objectscript ]
when using a URL could be file:///usr/bin/somefile.xsl or even http://... In OnInit... Do ##class(HS.Util.Transformer).LoadURL(pURL,.tTransformer) when you want to transform Do tTransformer.Transform(pInput,pURL,.pParameters,.tOutput) XDATA is not supported.
method LoadURLInstance(pURL As %String) as %Status [ Language = objectscript ]
Called by the LoadURL method, the instance method allows calling some inherited private methods
method OnInit() as %Status [ Language = objectscript ]
Inherited description: This user callback method is called just after %OnNew()

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)

FeedbackOpens in a new window