Web Editor utiliza el archivo webeditor.xsl como la hoja de estilo XSL por omisión. Este archivo se encuentra en el directorio siguiente:
unidad:\WebSphere\CommerceServer\xml\wcwebeditor\xsl
unidad:\Archivos de programa\WebSphere\CommerceServer\xml\wcwebeditor\xsl
/usr/WebSphere/CommerceServer/xml/wcwebeditor/xsl
/opt/WebSphere/CommerceServer/xml/wcwebeditor/xsl
/raízinstancia/xml/wcwebeditor/xsl
Al editar el archivo webeditor.xsl, un administrador puede cambiar el formato de la salida de Web Editor.
A continuación se muestra un ejemplo del contenido de un archivo webeditor.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html"/> <!-- Para los campos cuyo valor de campo de entrada en una sola línea sea superior a éste, se crea una TEXTAREA --> <xsl:variable name="maxEntryFieldSize" select="80"/> <xsl:template match ="/"> <xsl:apply-templates/> </xsl:template> <!-- Campo de sólo lectura --> <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>
![]() |