Transforms and returns a TOraXML object.
procedure Transform(XSLDoc: TOraXML; RetDoc: TOraXML);
Call the Transform method to transform and return TOraXML, using the given XSL document in XSLDoc parameter. The new (transformed) XML document is assigned to RetDoc. XSLDoc parameter is the XSL document to be applied to the XMLType. RetDoc parameter is a destination TOraXML object which holds the operation result. RetDoc object must be created before passing it as a parameter.
var
RetDoc, XSLDoc: TOraXML;
begin
RetDoc := TOraXML.Create();
RetDoc.OCISvcCtx := OraSession1.OCISvcCtx;
XSLDoc := TOraXML.Create();
XSLDoc.OCISvcCtx := OraSession1.OCISvcCtx;
try
with TOraXMLField(FieldByName('XMLField')).AsXML do begin
XSLDoc.AsString:=XSLDocument;
Transform(XSLDoc, RetDoc);
Str := RetDoc.AsString;
end;
finally
RetDoc.Free;
XSLDoc.Free;
end;
end;