Changeset 6824

Show
Ignore:
Timestamp:
09.10.2006 19:22:13 (3 years ago)
Author:
sam
Message:

Correction Ticket #38 - Bugs dans la gestion de sm:title (pbs d'axis, de préfix & suffix) / integration de [6629]

Location:
branches/3.2.x/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/3.2.x/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/bsDescContent.xml.xsl

    r6169 r6824  
    702702                <valeur code="callTitle_{generate-id()}"> 
    703703                        <xsl0:choose> 
    704                                 <xsl0:when test="count(*) &lt; 2"> 
     704                                <xsl0:when test="count(*) &lt; 2 and count(sm:binaryTitle/@prefix)=0 and  count(sm:binaryTitle/@suffix)=0"> 
    705705                                        <!-- binaryTile seul --> 
    706                                         <source type="xpath-dynamique">resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent()), '/meta.xml')), '_meta<xsl0:value-of select="getAxisSuffix(@axis)"/>/<xsl0:value-of select="si(sm:binaryTitle/@format, sm:binaryTitle/@format, 'fullTitleText')"/>'))</source> 
     706                                        <source type="xpath-dynamique">resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent()), '/meta.xml')), '_meta<xsl0:value-of select="getAxisSuffix(sm:binaryTitle/@axis)"/>/<xsl0:value-of select="si(sm:binaryTitle/@format, sm:binaryTitle/@format, 'fullTitleText')"/>'))</source> 
    707707                                </xsl0:when> 
    708708                                <xsl0:otherwise> 
     
    717717                                        </source> 
    718718                                        <valeur code="title"> 
    719                                                 <source type="xpath-dynamique">resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent()), '/meta.xml')), '_meta<xsl0:value-of select="getAxisSuffix(@axis)"/>/<xsl0:value-of select="si(sm:binaryTitle/@format, sm:binaryTitle/@format, 'fullTitleText')"/>'))</source> 
     719                                                <source type="xpath-dynamique">resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent()), '/meta.xml')), '_meta<xsl0:value-of select="getAxisSuffix(sm:binaryTitle/@axis)"/>/<xsl0:value-of select="si(sm:binaryTitle/@format, sm:binaryTitle/@format, 'fullTitleText')"/>'))</source> 
    720720                                                <resultat cache="*"/> 
    721721                                        </valeur> 
  • branches/3.2.x/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_xhtmlToOdGenTransf/bsDescContent.xml.xsl

    r6184 r6824  
    279279                <valeur code="callTitle_{generate-id()}"> 
    280280                        <xsl0:choose> 
    281                                 <xsl0:when test="count(*) &lt; 2"> 
     281                                <xsl0:when test="count(*) &lt; 2 and count(sm:modelTitle/@prefix)=0 and  count(sm:modelTitle/@suffix)=0"> 
    282282                                        <!-- modelTile seul --> 
    283                                         <source type="xpath-dynamique">resultatAgent(concat('@', getIdNode(.), '_meta<xsl0:value-of select="getAxisSuffix(@axis)"/>/<xsl0:value-of select="si(sm:modelTitle/@format, sm:modelTitle/@format, 'fullTitleText')"/>'))</source> 
     283                                        <source type="xpath-dynamique">resultatAgent(concat('@', switchAxis(codeAgent('//'), '<xsl0:value-of select="sm:modelTitle/@axis"/>'), '/<xsl0:value-of select="si(sm:modelTitle/@format, sm:modelTitle/@format, 'fullTitleText')"/>'))</source> 
    284284                                </xsl0:when> 
    285285                                <xsl0:otherwise> 
     
    294294                                        </source> 
    295295                                        <valeur code="title"> 
    296                                                 <source type="xpath-dynamique">resultatAgent(concat('@', getIdNode(.), '_meta<xsl0:value-of select="getAxisSuffix(@axis)"/>/<xsl0:value-of select="si(sm:modelTitle/@format, sm:modelTitle/@format, 'fullTitleText')"/>'))</source> 
     296                                                <source type="xpath-dynamique">resultatAgent(concat('@', switchAxis(codeAgent('//'), '<xsl0:value-of select="sm:modelTitle/@axis"/>'), '/<xsl0:value-of select="si(sm:modelTitle/@format, sm:modelTitle/@format, 'fullTitleText')"/>'))</source> 
    297297                                                <resultat cache="*"/> 
    298298                                        </valeur>