Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/08/2012, 12:11
sevillarg
 
Fecha de Ingreso: abril-2008
Mensajes: 22
Antigüedad: 16 años
Puntos: 0
Exclamación tablas xsl problemas con el header

tengo este codigo
Código:
<table cellspacing="0" cellpadding="0" border="0" style="width: 77%">
      	<xsl:if test="not($NoCTX)">
        	<xsl:call-template name="CTXGeneration"/>
      </xsl:if>
      	<xsl:if test="List/@TemplateType=109">
        	<xsl:call-template name="PicLibScriptGeneration"/>
      </xsl:if>
      <tr>
        <td>
          	<xsl:if test="not($NoAJAX)">
            <iframe src="javascript:false;" id="FilterIframe{$ViewCounter}" name="FilterIframe{$ViewCounter}" style="display:none" height="0" width="0" FilterLink="{$FilterLink}"></iframe>
          </xsl:if>
          <table summary="{List/@title} {List/@description}" o:WebQuerySourceHref="{$HttpPath}&amp;XMLDATA=1&amp;RowLimit=0&amp;View={$View}" border="0" cellspacing="0" dir="{List/@Direction}" cellpadding="2" style="width: 77%">
            <xsl:if test="not($NoCTX)">
              	<xsl:attribute name="onmouseover">EnsureSelectionHandler(event,this,<xsl:value-of select ="$ViewCounter"/>)</xsl:attribute>
            </xsl:if>
            <xsl:if test="$NoAJAX">
              	<xsl:attribute name="FilterLink">
                <xsl:value-of select="$FilterLink"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:attribute name="cellpadding">
              	<xsl:choose>
                	<xsl:when test="ViewStyle/@ID='15' or ViewStyle/@ID='16'">0</xsl:when>
                	<xsl:otherwise>1</xsl:otherwise>
              	</xsl:choose>
            </xsl:attribute>
            <xsl:attribute name="id">
              	<xsl:choose>
                	<xsl:when test="$IsDocLib or dvt_RowCount = 0">onetidDoclibViewTbl0</xsl:when>
                	<xsl:otherwise>
                  <xsl:value-of select="concat($List, '-', $View)"/>
                </xsl:otherwise>
              	</xsl:choose>
            </xsl:attribute>
            <xsl:attribute name="class">
              	<xsl:choose>
                	<xsl:when test="ViewStyle/@ID='0' or ViewStyle/@ID='17'"><xsl:value-of select="$ViewClassName"/> ms-basictable</xsl:when>
                	<xsl:otherwise><xsl:value-of select="$ViewClassName"/></xsl:otherwise>
              	</xsl:choose>
            </xsl:attribute>
            <xsl:if test="$InlineEdit">
              	<xsl:attribute name="inlineedit">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('__cancel;dvt_form_key={@ID}')"/>;CoreInvoke(&apos;ExpGroupOnPageLoad&apos;, &apos;true&apos;);</xsl:attribute>
            </xsl:if>
            <xsl:apply-templates select="." mode="full">
              	<xsl:with-param name="ShowSelectAllCheckbox" select="$ShowSelectAllCheckbox"/>
            </xsl:apply-templates>
          </table>
              <xsl:choose>
                <xsl:when test="$IsDocLib or dvt_RowCount = 0"><script type='text/javascript'>HideListViewRows(&quot;onetidDoclibViewTbl0&quot;);</script></xsl:when>
                <xsl:otherwise>
                  <script type='text/javascript'><xsl:value-of select ="concat('HideListViewRows(&quot;', $List, '-', $View, '&quot;);')"/></script>
                </xsl:otherwise>
              </xsl:choose>
        </td>
      </tr>
      	<xsl:if test="$dvt_RowCount = 0 and not (@BaseViewID='3' and List/@TemplateType='102')">
        <tr>
          <td>
             <table width="100%" border="0" dir="{List/@Direction}">
               	<xsl:call-template name="EmptyTemplate" />
             </table>
          </td>
        </tr>
      </xsl:if>
    </table>
Todo funciona relativamente bien el problema que tengo con este codigo es que los encabezados quedan grandes y la tabla se ajusta al tamaño del texto lo que requiero es algo asi como la funcion de excel que dice adaptar texto a la celda si me entienden para que pueda hacer mas chica la tabla porque si la hago mas chica lo que pasa es que el texto de el encabezado de la tabla pasa de su celda y ocupa un lugar en la celda de alado si dejo que la celda se ajuste al texto se muestra pero con un scroll bar y no quiero que aparezca no se si me di a entender pero quedo asus ordenes y en espera de su valiosa ayuda