Ignore:
Timestamp:
02/27/09 11:53:25 (3 years ago)
Author:
sam
Message:

dataFormWebTransf & textWebTransf : ajout de @cropTo sur sm:fieldValueString et sm:urlText

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/textXhtmlTransf/content.xsl.xsl

    r12890 r12894  
    758758        <xsl0:template match="sm:callSubModel" mode="refItemLabel"><xsl:value-of select="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '{getAxisSuffix(@axis)}/xhtmlContent'))" disable-output-escaping="yes"/></xsl0:template> 
    759759        <xsl0:template match="sm:subModelTitle" mode="refItemLabel"><xsl0:value-of select="@prefix"/><xsl:value-of select="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '{getAxisSuffix(@axis)}/{si(@format, @format, 'fullTitleText')}'))"/><xsl0:value-of select="@suffix"/></xsl0:template> 
    760         <xsl0:template match="sm:urlText" mode="refItemLabel"><xsl:value-of select="@url"/></xsl0:template> 
     760        <xsl0:template match="sm:urlText" mode="refItemLabel"> 
     761                <xsl0:choose> 
     762                        <xsl0:when test="@cropTo"><xsl:value-of select="si(string-length(@url)>{@cropTo},concat(substring(@url,1,{@cropTo}),'…'),@url)"/></xsl0:when> 
     763                        <xsl0:otherwise><xsl:value-of select="@url"/></xsl0:otherwise> 
     764                </xsl0:choose> 
     765        </xsl0:template> 
    761766        <xsl0:template match="node()" mode="refItemLabel"/> 
    762767        <!-- Axis refItemHref --> 
Note: See TracChangeset for help on using the changeset viewer.