class %ZEN.Template.AddInWizard.XSLTransformWizard
extends %ZEN.Template.AddInWizard.Template
Studio Template.
The XSL Transform Wizard transforms an XML file using the specified XSL stylesheet.
This is a Zen Page class.
parameter HELPID = "GXML_xslt_wizard";
DOCBOOK Topic Id that offers help for this template.
parameter PAGETITLE = "XSL Transform Wizard";
Display title of this page
parameter TEMPLATEDESCRIPTION = "transforms an XML file using the specified XSL stylesheet";
Short description of the template to show in Studio.
If DOMAIN is defined this will be localized.
parameter TEMPLATENAME = "XSL Transform Wizard";
Name of the template to show in Studio.
If DOMAIN is defined this will be localized.
parameter TEMPLATETITLE = "XSL Transform Wizard";
Title of the template to show in the template window.
method %OnAfterCreatePage()
as %Status
This callback is called after the server-side page
object and all of its children are created.
Subclasses can override this to add, remove, or modify
items within the page object model, or to provide values
for controls.
classmethod %OnPreHTTP()
as %Boolean
Zen page notification of an HTTP request. This method can be overwritten
by subclasses.
This is called before the standard Zen pre-HTTP processing occurs.
classmethod DoTransform(xmlfile, xslfile, namespace, helper, renderas)
as %ZEN.proxyObject
[ ZenMethod ]
Taken user's input and process transform.
classmethod DrawPageTitle(pSeed As %String)
as %Status
method LoadHelperClassList(Namespace)
as %String
[ ZenMethod ]
Load helper class list per namespace selected.
classmethod SaveLast(xmlfile, xslfile, namespace, helper, renderas)
[ ZenMethod ]
Save user input.
classmethod Transform(xmlfile, xslfile, helperclass, namespace, results)
as %String
Actual code to call transform code on server
classmethod ValidateFile(FILE, FILETYPE)
as %String
[ ZenMethod ]
Validate file name: cannot be null, and must exists.
method canFinish()
[ Language = javascript ]
Return true if this template can Finish (i.e., enable
the Finish button).
method changeHelper(ctl)
[ Language = javascript ]
Reload HelperClass valueList when user changed namespace
method doBrowse(fieldName)
[ Language = javascript ]
Launching a file selector window.
method hasMultiplePages()
[ Language = javascript ]
Return true if this template has more than one "page".
This will display Back and Next buttons.
This is implemented by subclasses.
method nextPage()
[ Language = javascript ]
Go to the next page of the template (if there is one).
method onPopupAction(popupName, action, value)
[ Language = javascript ]
Returning from file select OR qualifers dialog and setting the value into the appropriate field.
The id of the field that needs to be updated is saved in "dialogClicked".
method onfinishHandler()
[ Language = javascript ]
Validate; call Transform and show result; save user input.
method onresizeHandler()
[ Language = javascript ]
This client event, if present, is fired when the page is resized.
method onstartHandler()
[ Language = javascript ]
This is called when the template is first displayed;
This provides a chance to set focus etc.
method resetMsg()
[ Language = javascript ]
Clear message on top of page.
method showMsg(msg)
[ Language = javascript ]
Display message on top of page.
method validate(xmlfile, xslfile)
[ Language = javascript ]