Changeset 8852
- Timestamp:
- 03/02/07 17:49:36 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_localOutlineUiWidget/content.xsl.xsl
r8735 r8852 107 107 </xsl0:template> 108 108 <xsl0:template match="sm:whenOutlineNotEmpty"> 109 <xsl:when test=" boolean(//scBlock[scBlockTitle]) or count(//scBlock//hx[1]//text()[string-length(normalize-space())>0])">109 <xsl:when test="descendant::scBlock[scBlockTitle or normalize-space(descendant::hx)])"> 110 110 <xsl0:apply-templates/> 111 111 </xsl:when> … … 170 170 <xsl:template match="scBlock" mode="{$vModeBase}_nodeArch"> 171 171 <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])"/> 174 173 <xsl:call-template name="{$vModeBase}_nodeArch_skel"> 175 174 <xsl:with-param name="vDepth" select="$vDepth+1"/> … … 217 216 <xsl:param name="vTitleBlock"/> 218 217 <xsl:param name="vChildElt"/> 219 <xsl:variable name="vHx" select=".//hx"/>220 218 <xsl:choose> 221 <xsl:when test=" boolean(scBlockTitle) or count($vHx[1]//text()[string-length(normalize-space())>0])">219 <xsl:when test="scBlockTitle or normalize-space(descendant::hx)"> 222 220 <xsl:choose> 223 221 <xsl:when test="$vChildElt = 'suppressed'"> … … 226 224 <xsl:when test="$vChildElt = 'none'"> 227 225 <xsl:apply-templates select="." mode="{$vModeBase}_nodeArch"> 228 <xsl:with-param name="vDepth" select="$vDepth +1"/>226 <xsl:with-param name="vDepth" select="$vDepth"/> 229 227 </xsl:apply-templates> 230 228 </xsl:when> … … 263 261 <xsl:when test="scBlockTitle"><xsl:apply-templates select="scBlockTitle/node()" mode="copy"/></xsl:when> 264 262 <xsl:otherwise> 265 <!-- <xsl:value-of select="$vTitleBlock//text()"/> SAM: semble plus marcher, Fev 07 -->266 263 <xsl:value-of select="$vTitleBlock"/> 267 264 </xsl:otherwise> … … 457 454 <xsl:when test="scBlockTitle"><xsl:apply-templates select="scBlockTitle/node()" mode="copy"/></xsl:when> 458 455 <xsl:otherwise> 459 <xsl:value-of select="$vTitleBlock //text()"/>456 <xsl:value-of select="$vTitleBlock"/> 460 457 </xsl:otherwise> 461 458 </xsl:choose> … … 478 475 <xsl:choose> 479 476 <xsl:otherwise> 480 <xsl:value-of select="$vTitleBlock //text()"/>477 <xsl:value-of select="$vTitleBlock"/> 481 478 </xsl:otherwise> 482 479 </xsl:choose>
Note: See TracChangeset
for help on using the changeset viewer.