Web Editor utilise le fichier webeditor.xsl comme feuille de style XSL par défaut. Ce fichier se trouve dans le répertoire suivant :
unité:\WebSphere\CommerceServer\xml\wcwebeditor\xsl
unité:\Program Files\WebSphere\CommerceServer\xml\wcwebeditor\xsl
/usr/WebSphere/CommerceServer/xml/wcwebeditor/xsl
/opt/WebSphere/CommerceServer/xml/wcwebeditor/xsl
/racine_inst/xml/wcwebeditor/xsl
En modifiant le fichier webeditor.xsl, un administrateur peut changer le format de sortie Web Editor.
Voici un exemple de contenu de fichier webeditor.xsl :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html"/> <!-- Valeur maximale des zones d'entrée sur une seule ligne. Pour les zones plus longues, une zone de texte TEXTAREA est créée --> <xsl:variable name="maxEntryFieldSize" select="80"/> <xsl:template match ="/"> <xsl:apply-templates/> </xsl:template> <!-- Zone en lecture seule --> <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>
![]() |