Changeset 11139


Ignore:
Timestamp:
06/04/08 16:09:57 (4 years ago)
Author:
anp
Message:

debug .cond dans odTemplate

File:
1 edited

Legend:

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

    r10765 r11139  
    494494        </xsl0:template> 
    495495        <xsl0:template match="sm:when"> 
    496                 <xsl:when test="{si(@xpath, @xpath, 'false')}"> 
    497                         <xsl0:apply-templates/> 
    498                 </xsl:when> 
     496                <xsl0:variable name="vMatch"> 
     497                        <xsl0:choose> 
     498                                <xsl0:when test="@sc:refUri"> 
     499                                        <xsl0:value-of select="concat('resultatAgent(''//cond_', generate-id(.), ''', .)')"/> 
     500                                </xsl0:when> 
     501                                <xsl0:when test="@xpath"> 
     502                                        <xsl0:value-of select="@xpath"/> 
     503                                </xsl0:when> 
     504                                <xsl0:otherwise> 
     505                                        <xsl0:value-of select="'false'"/> 
     506                                </xsl0:otherwise> 
     507                        </xsl0:choose> 
     508                </xsl0:variable> 
     509                <xsl:when test="{$vMatch}"><xsl0:apply-templates select="*"/></xsl:when> 
    499510        </xsl0:template> 
    500511        <xsl0:template match="sm:otherwise"> 
Note: See TracChangeset for help on using the changeset viewer.