Changeset 8881
- Timestamp:
- 03/06/07 09:34:06 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_odTemplateText/postProcessing.xsl.xsl
r8872 r8881 363 363 364 364 <xsl:template match="scOd:block.data"> 365 <xsl: choose>366 <xsl:when test="ancestor::block"><!-- on est dans le contexte d'un showDataBlock -->367 <xsl:variable name="vBlock" select="ancestor::block"/>365 <xsl:variable name="vBlock" select="ancestor::*[name()='block' or name()='scOd:dataBlock'][1]"/> 366 <xsl:choose> 367 <xsl:when test="local-name($vBlock)='block'"><!-- on est dans le contexte d'un showDataBlock --> 368 368 <xsl:variable name="vShowDbId" select="ancestor::root/@showDataBlockId"/> 369 369 <text:p text:style-name="odHiddenParagraph"><text:bookmark-start text:name="{{concat($vShowDbId, $vBlock/@idBlock)}}"/><scOd:notIfText/></text:p> … … 372 372 </xsl:when> 373 373 <xsl:otherwise> 374 <xsl:variable name="vBlock" select="ancestor::scOd:dataBlock"/>375 374 <xsl:apply-templates select="$vBlock/scOd:data/* | $vBlock/scOd:data/text()"/> 376 375 </xsl:otherwise> … … 379 378 380 379 <xsl:template match="scOd:block.label"> 381 <xsl: choose>382 <xsl:when test="ancestor::block">383 <xsl:variable name="vBlock" select="ancestor::block"/>380 <xsl:variable name="vBlock" select="ancestor::*[name()='block' or name()='scOd:dataBlock'][1]"/> 381 <xsl:choose> 382 <xsl:when test="local-name($vBlock)='block'"> 384 383 <xsl:value-of select="$vBlock/title"/> 385 384 </xsl:when> 386 385 <xsl:otherwise> 387 <xsl:variable name="vBlock" select="ancestor::scOd:dataBlock"/>388 386 <xsl:value-of select="$vBlock/scOd:title"/> 389 387 </xsl:otherwise>
Note: See TracChangeset
for help on using the changeset viewer.