Changeset 8881


Ignore:
Timestamp:
03/06/07 09:34:06 (5 years ago)
Author:
anp
Message:

debug dataBlock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_odTemplateText/postProcessing.xsl.xsl

    r8872 r8881  
    363363                 
    364364                <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 --> 
    368368                                        <xsl:variable name="vShowDbId" select="ancestor::root/@showDataBlockId"/> 
    369369                                        <text:p text:style-name="odHiddenParagraph"><text:bookmark-start text:name="{{concat($vShowDbId, $vBlock/@idBlock)}}"/><scOd:notIfText/></text:p> 
     
    372372                                </xsl:when> 
    373373                                <xsl:otherwise> 
    374                                         <xsl:variable name="vBlock" select="ancestor::scOd:dataBlock"/> 
    375374                                        <xsl:apply-templates select="$vBlock/scOd:data/* | $vBlock/scOd:data/text()"/> 
    376375                                </xsl:otherwise> 
     
    379378                 
    380379                <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'"> 
    384383                                        <xsl:value-of select="$vBlock/title"/> 
    385384                                </xsl:when> 
    386385                                <xsl:otherwise> 
    387                                         <xsl:variable name="vBlock" select="ancestor::scOd:dataBlock"/> 
    388386                                        <xsl:value-of select="$vBlock/scOd:title"/> 
    389387                                </xsl:otherwise> 
Note: See TracChangeset for help on using the changeset viewer.