Changeset 8852


Ignore:
Timestamp:
03/02/07 17:49:36 (5 years ago)
Author:
sam
Message:

debug localOutline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_localOutlineUiWidget/content.xsl.xsl

    r8735 r8852  
    107107        </xsl0:template> 
    108108        <xsl0:template match="sm:whenOutlineNotEmpty"> 
    109                 <xsl:when test="boolean(//scBlock[scBlockTitle]) or count(//scBlock//hx[1]//text()[string-length(normalize-space())&gt;0])"> 
     109                <xsl:when test="descendant::scBlock[scBlockTitle or normalize-space(descendant::hx)])"> 
    110110                        <xsl0:apply-templates/> 
    111111                </xsl:when> 
     
    170170                <xsl:template match="scBlock" mode="{$vModeBase}_nodeArch"> 
    171171                        <xsl:param name="vDepth"/> 
    172                         <xsl:variable name="vHx" select=".//hx"/> 
    173                         <xsl:variable name="vTitleBlock" select="si(scBlockTitle, scBlockTitle, $vHx[1])"/> 
     172                        <xsl:variable name="vTitleBlock" select="si(scBlockTitle, scBlockTitle, descendant::hx[1])"/> 
    174173                        <xsl:call-template name="{$vModeBase}_nodeArch_skel"> 
    175174                                <xsl:with-param name="vDepth" select="$vDepth+1"/> 
     
    217216                        <xsl:param name="vTitleBlock"/> 
    218217                        <xsl:param name="vChildElt"/> 
    219                         <xsl:variable name="vHx" select=".//hx"/> 
    220218                        <xsl:choose> 
    221                                 <xsl:when test="boolean(scBlockTitle) or count($vHx[1]//text()[string-length(normalize-space())&gt;0])"> 
     219                                <xsl:when test="scBlockTitle or normalize-space(descendant::hx)"> 
    222220                                        <xsl:choose> 
    223221                                                <xsl:when test="$vChildElt = 'suppressed'"> 
     
    226224                                                <xsl:when test="$vChildElt = 'none'"> 
    227225                                                        <xsl:apply-templates select="." mode="{$vModeBase}_nodeArch"> 
    228                                                                 <xsl:with-param name="vDepth" select="$vDepth+1"/> 
     226                                                                <xsl:with-param name="vDepth" select="$vDepth"/> 
    229227                                                        </xsl:apply-templates> 
    230228                                                </xsl:when> 
     
    263261                                                        <xsl:when test="scBlockTitle"><xsl:apply-templates select="scBlockTitle/node()" mode="copy"/></xsl:when> 
    264262                                                        <xsl:otherwise> 
    265 <!--                                                            <xsl:value-of select="$vTitleBlock//text()"/> SAM: semble plus marcher, Fev 07 --> 
    266263                                                                <xsl:value-of select="$vTitleBlock"/> 
    267264                                                        </xsl:otherwise> 
     
    457454                        <xsl:when test="scBlockTitle"><xsl:apply-templates select="scBlockTitle/node()" mode="copy"/></xsl:when> 
    458455                        <xsl:otherwise> 
    459                                 <xsl:value-of select="$vTitleBlock//text()"/> 
     456                                <xsl:value-of select="$vTitleBlock"/> 
    460457                        </xsl:otherwise> 
    461458                </xsl:choose> 
     
    478475                <xsl:choose> 
    479476                        <xsl:otherwise> 
    480                                 <xsl:value-of select="$vTitleBlock//text()"/> 
     477                                <xsl:value-of select="$vTitleBlock"/> 
    481478                        </xsl:otherwise> 
    482479                </xsl:choose> 
Note: See TracChangeset for help on using the changeset viewer.