webeditor.xsl ファイルの編集

Web エディターでは、 webeditor.xsl ファイルがデフォルトの XSL スタイルシートとして使用されます。 このファイルは以下のディレクトリーに置かれています。

Windows NT drive:\WebSphere\CommerceServer\xml\wcwebeditor\xsl
Windows 2000 drive:\Program Files\WebSphere\CommerceServer\xml\wcwebeditor\xsl
AIX /usr/WebSphere/CommerceServer/xml/wcwebeditor/xsl
SolarisLinux /opt/WebSphere/CommerceServer
iSeries /instroot/xml/wcwebeditor/xsl

webeditor.xsl ファイルを編集することにより、管理者は Web エディター出力の形式を変更できます。

以下は、webeditor.xsl ファイルの内容のサンプルです。

  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html"/>
    <!-- この TEXTAREA より大きいフィールドに対して、最大単一行入力フィールド値が作成されます。-->
    <xsl:variable name="maxEntryFieldSize" select="80"/>
    <xsl:template match ="/">
      <xsl:apply-templates/>
   </xsl:template>
   <!-- 読み取り専用フィールド -->
   <xsl:template match="readOnly" name="readOnly">
      <xsl:element name="input">
        <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
        <xsl:attribute name="type">hidden</xsl:attribute>
        <xsl:attribute name="value"><xsl:value-of select="@defaultValue"/></xsl:attribute>
          <!--
          <xsl:attribute name="onFocus">this.blur()</xsl:attribute>
          <xsl:attribute name="style">border-style:groove</xsl:attribute>
           -->
    </xsl:element>
        <table border="1" cellpadding="0" cellspacing="0" width="155" bgcolor="#C0C0C0">
           <tr>
             <td>
                <img border="0" src="/webeditor/image/space.gif" width="1" 
                  height="17"/><xsl:value-of select="@defaultValue"/>
             </td>
           </tr>
       </table>
   </xsl:template>
  </xsl:stylesheet>

関連概念

関連タスク

IBM 著作権