Ignore:
Timestamp:
02/25/09 15:44:38 (3 years ago)
Author:
sam
Message:

binaryWebTransf : ajout sm:WImage/sm:alt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/widgets.xsl.xsl

    r12820 r12881  
    642642                <xsl0:variable name="vUrl">{<xsl0:apply-templates mode="getBinaryUrl" select="sm:binaryUrl"/>}</xsl0:variable> 
    643643                <xsl0:choose> 
    644                         <xsl0:when test="count(sm:linkOverImage)!=0"> 
     644                        <xsl0:when test="count(sm:linkOverImage)!= 0"> 
    645645                                <xsl0:variable name="vUrlLink">{<xsl0:apply-templates mode="getBinaryUrl" select="sm:linkOverImage/sm:binaryUrl"/>}</xsl0:variable> 
    646646                                <a href="{$vUrlLink}"> 
     
    649649                                        </xsl0:if> 
    650650                                        <img src="{$vUrl}"> 
    651                                                 <xsl0:attribute name="{si(parent::sm:link,'alt','lookForAlt')}">{resultatAgent('//fullTitleText')}</xsl0:attribute> 
     651                                                <xsl0:choose> 
     652                                                        <xsl0:when test="count(sm:alt) != 0"> 
     653                                                                <addAttribute name="{si(parent::sm:link,'alt','lookForAlt')}" filter="textOnly"><xsl0:apply-templates select="sm:alt/*" mode="content"/></addAttribute> 
     654                                                        </xsl0:when> 
     655                                                        <xsl0:otherwise> 
     656                                                                <xsl0:attribute name="{si(parent::sm:link,'alt','lookForAlt')}">{resultatAgent('//fullTitleText')}</xsl0:attribute> 
     657                                                        </xsl0:otherwise> 
     658                                                </xsl0:choose>   
    652659                                                <xsl0:call-template name="classAtt"/> 
    653660                                                <xsl0:call-template name="sizeAtts"> 
     
    661668                        <xsl0:otherwise> 
    662669                                <img src="{$vUrl}"> 
    663                                         <xsl0:attribute name="{si(parent::sm:link,'alt','lookForAlt')}">{resultatAgent('//fullTitleText')}</xsl0:attribute> 
     670                                        <xsl0:choose> 
     671                                                <xsl0:when test="count(sm:alt) != 0"> 
     672                                                        <addAttribute name="{si(parent::sm:link,'alt','lookForAlt')}" filter="textOnly"><xsl0:apply-templates select="sm:alt/*" mode="content"/></addAttribute> 
     673                                                </xsl0:when> 
     674                                                <xsl0:otherwise> 
     675                                                        <xsl0:attribute name="{si(parent::sm:link,'alt','lookForAlt')}">{resultatAgent('//fullTitleText')}</xsl0:attribute> 
     676                                                </xsl0:otherwise> 
     677                                        </xsl0:choose>   
    664678                                        <xsl0:call-template name="classAtt"/> 
    665679                                        <xsl0:call-template name="longDescAtt"/> 
     
    671685                        </xsl0:otherwise> 
    672686                </xsl0:choose> 
     687        </xsl0:template> 
     688        <xsl0:template match="sm:WImage/sm:alt/sm:title" mode="content"> 
     689                <xsl0:apply-templates select="." mode="contentTitleIn"/> 
    673690        </xsl0:template> 
    674691         
Note: See TracChangeset for help on using the changeset viewer.