2.7.3 Can I create my own Style Weblet?

The standard style weblet should handle most of your needs but, if you want to create your own style weblet, you can. The standard style weblet provides functionality that is essential to the correct operation of the LANSA supplied weblets and layouts. You should always call it from within your custom style weblet or design your weblet, as shown in the example below, to work alongside the standard style weblet.

   <xsl:import href="std_style_v2.xsl" />
   <xsl:template name="my_style">
      <xsl:call-template name="style">
         <xsl:with-param name="theme_css_filename"/>
         <xsl:with-param name="css_files"/>
      <!-- Custom style functionality here -->


You must not use a template name of "style".

If you name the template of your custom weblet "style" then you will cause an infinite loop.