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_webSiteGenerator.xml

    r12827 r12881  
    433433        <xsl:template match="hx"><xsl:variable name="vCount" select="count(ancestor::scBlock)"/><xsl:element name="{concat('h', si($vCount &gt; 6, '6', $vCount))}"><xsl:apply-templates select="@*"/><xsl:apply-overlays/><xsl:apply-templates/></xsl:element></xsl:template> 
    434434        <xsl:template match="addAttribute"> 
    435                 <xsl:attribute name="{@name}"><xsl:choose><xsl:when test="@filter='textOnly'"><xsl:value-of select="normalize-space(.)"/></xsl:when><xsl:otherwise><redirect:serialize omit-xml-declaration="yes"><xsl:value-of select="."/></redirect:serialize></xsl:otherwise></xsl:choose></xsl:attribute> 
     435                <xsl:variable name="vAttCo"><xsl:choose><xsl:when test="@filter='textOnly'"><xsl:value-of select="normalize-space(.)"/></xsl:when><xsl:otherwise><redirect:serialize omit-xml-declaration="yes"><xsl:value-of select="."/></redirect:serialize></xsl:otherwise></xsl:choose></xsl:variable> 
     436                <xsl:choose> 
     437                        <xsl:when test="@name = 'lookForAlt'"> 
     438                                <xsl:attribute name="alt"><xsl:value-of select="si(string($vAttCo)='', ancestor::alternative/@alt, $vAttCo)" disable-output-escaping="yes"/></xsl:attribute> 
     439                        </xsl:when> 
     440                        <xsl:otherwise> 
     441                                <xsl:attribute name="{@name}"><xsl:value-of select="$vAttCo" disable-output-escaping="yes"/></xsl:attribute> 
     442                        </xsl:otherwise> 
     443                </xsl:choose> 
    436444        </xsl:template> 
    437445        ]]></source> 
Note: See TracChangeset for help on using the changeset viewer.