![]() |
| Abstract classes of WCXE package Abstract class is XSLT stylesheet that employes not defined variables (parameters) and templates (virtual variables and templates). The lasts are set in the stylesheet importing the functionality of the abstract class. In this package abstract XSLT stylesheets have axsl extension and can not be executed by the parser. "action" XSLT stylesheet is a parent class for all one button press operations. Virtual function is the template with name "xe:action". It returns updated WCXE document. The WCXE utilities help to modify the document correctly. The current node is the current html-page selected by the user. "add_top_object" XSLT stylesheet is an abstract class for creation of top objects of html-page element. It uses virtual variable "$xe:new_top_object". The content of this variable will be added to children of the current html-page element. Example, <?xml version='1.0'?> <xsl:stylesheet version="1.0"> <xsl:include href="add_top_object.axsl"/> <xsl:variable name="xe:new_top_object"><img-text-block/></xsl:variable> </xsl:stylesheet> The stylesheet creates empty img-text-block element. Then the user can select this object to see the object menu provided that it was properly installed in templates section of the package. "action_object" XSLT stylesheet is a parent class for all one button press modification of the oblects. Virtual function is the template with name "xe:object-action". The current node is the object itself. "add_object" XSLT stylesheet is an abstract class for creation of objects. It uses virtual variable "$xe:new_object". The content of this variable will be added to children of the current top object. "form" XSLT stylesheet is a parent class for all html forms. The virtual parameters are "form_enctype" and "form_name". The virtual functions are templates with name "form-fields" and "new-content". The current node for both of these templates is html-page element. "form_top_object" XSLT stylesheet is a child of the form class. The virtual parameters are "form_enctype" and "form_name". The virtual functions are templates with name "form-top-object-fields" and "new-top-object-content". The current node for both of these templates is the top object itself. "form_object" XSLT stylesheet is a child of the form class. The virtual parameters are "form_enctype" and "form_name". The virtual functions are templates with name "form-object-fields" and "new-object-content". The current node for both of these templates is the object itself. |