You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

標準スタイル・ウェブレットでニーズのほとんどに対処することができますが、独自のスタイル・ウェブレットを作成したい場合は作成することもできます。標準スタイル・ウェブレットはLANSAが提供するウェブレットやレイアウトを正しく操作するのに必要な機能を提供しています。カスタム・スタイル・ウェブレットの中ではこれを必ず呼び出すようにするか、以下の例に示すように、ウェブレットが標準スタイル・ウェブレットに沿って動くよう設計する必要があります。

   <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"/>

      </xsl:call-template>

             <!-- Custom style functionality here –>

   </xsl:template>


   <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"/>

      </xsl:call-template>

             <!-- Custom style functionality here >

   </xsl:template>
 

「style」というテンプレート名を使用することはできません

カスタム・ウェブレットのテンプレートを「style」と名づけた場合、無限ループを引き起こします。

  • No labels