Ignore:
Timestamp:
02/26/09 19:09:00 (3 years ago)
Author:
anp
Message:

odTemplate : ajout de @axis sur rootTitle + ajout sm:dynamicString dans la définition du titre de compositionOdtTransf

File:
1 edited

Legend:

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

    r12083 r12883  
    9292         
    9393        <!-- Toutes les interrogations d'agent doivent renvoyer du texte, forcé par normalize-space --> 
    94         <xsl0:template match="sm:rootTitle"><xsl0:value-of select="@prefix"/><xsl:value-of select="normalize-space(resultatAgent('//{si(@format and @format='shortTitleText', 'shortTitleText', 'fullTitleText')}'))"/></xsl0:template> 
     94        <xsl0:template match="sm:rootTitle"> 
     95           <xsl0:choose> 
     96            <xsl0:when test="@type='shortTitle'"><xsl:value-of select="resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '{getAxisSuffix(@axis)}/shortTitleText'))"/></xsl0:when> 
     97            <xsl0:otherwise><xsl:value-of select="resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '{getAxisSuffix(@axis)}/fullTitleText'))"/></xsl0:otherwise> 
     98       </xsl0:choose> 
     99    </xsl0:template> 
    95100         
    96101        <xsl0:template match="sm:callRootModel" name="sm:callRootModel"><xsl:value-of select="parseXml(concat('&lt;root&gt;',resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '{getAxisSuffix(@axis)}/getContent')),'&lt;/root&gt;'))"/></xsl0:template> 
Note: See TracChangeset for help on using the changeset viewer.