Changeset 6754


Ignore:
Timestamp:
10/02/06 22:31:34 (5 years ago)
Author:
sam
Message:

Ticket #29 - compositionXhtmlTransf: donner la possibilité à WCaptionBlock de poser le caption au dessus du contenu

Location:
trunk/Wsp_Modeling
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/es/content/organisation/compositionXhtmlTransf/xml.xed.xml

    r6639 r6754  
    203203                        <element se:id="sm:WCaptionBlock_Ctx" se:name="sm:WCaptionBlock" se:bind="element"> 
    204204                                <atts> 
     205                                        <attribute se:name="position" se:bind="attribute"> 
     206                                                <choiceInput> 
     207                                                        <ciItem label="bottom"/> 
     208                                                        <ciItem label="top"/> 
     209                                                </choiceInput> 
     210                                        </attribute> 
    205211                                        <se:ref se:refid="atts_Class"/> 
    206212                                </atts> 
     
    546552                        <element se:name="sm:WCaptionBlock" se:bind="element" se:id="sm:WCaptionBlock_Fix"> 
    547553                                <atts> 
     554                                        <attribute se:name="position" se:bind="attribute"> 
     555                                                <choiceInput> 
     556                                                        <ciItem label="bottom"/> 
     557                                                        <ciItem label="top"/> 
     558                                                </choiceInput> 
     559                                        </attribute> 
    548560                                        <se:ref se:refid="atts_Class"/> 
    549561                                </atts> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/widgets.xml.xsl

    r6639 r6754  
    104104        <!-- sm:WCollapsableBlock ===================================================================== --> 
    105105        <xsl0:template match="sm:WCollapsableBlock" mode="content"> 
    106          
    107106                <xsl0:variable name="vClassOpen" select="concat(si(@internalClass,concat($vPrefixClass,@internalClass,'_open')),si(@commonClass,concat(' ',@commonClass,'_open')))"/> 
    108107                <xsl0:variable name="vClassClosed" select="concat(si(@internalClass,concat($vPrefixClass,@internalClass,'_closed')),si(@commonClass,concat(' ',@commonClass,'_closed')))"/> 
     
    176175                        <xsl0:call-template name="classAtt"/> 
    177176                        <xsl0:call-template name="crossRefEntries"/> 
     177                        <xsl0:if test="@position='top'"> 
     178                                <ifText><div> 
     179                                        <xsl0:call-template name="classAtt"> 
     180                                                <xsl0:with-param name="pSuffix" select="'ti'"/> 
     181                                        </xsl0:call-template> 
     182                                        <span> 
     183                                                <xsl0:call-template name="classAtt"> 
     184                                                        <xsl0:with-param name="pSuffix" select="'tiIn'"/> 
     185                                                </xsl0:call-template> 
     186                                                <xsl0:apply-templates select="sm:caption/*" mode="content"/> 
     187                                        </span> 
     188                                </div></ifText> 
     189                        </xsl0:if> 
    178190                        <div> 
    179191                                <xsl0:call-template name="classAtt"> 
     
    182194                                <xsl0:apply-templates mode="content" select="sm:content/*"/> 
    183195                        </div> 
    184                         <ifText><div class="{$vPrefixClass}{@internalClass}_ti {si(@commonClass, concat(@commonClass, '_ti'))}"> 
    185                                 <xsl0:call-template name="classAtt"> 
    186                                         <xsl0:with-param name="pSuffix" select="'ti'"/> 
    187                                 </xsl0:call-template> 
    188                                 <span> 
     196                        <xsl0:if test="not(@position='top')"> 
     197                                <ifText><div> 
    189198                                        <xsl0:call-template name="classAtt"> 
    190                                                 <xsl0:with-param name="pSuffix" select="'tiIn'"/> 
     199                                                <xsl0:with-param name="pSuffix" select="'ti'"/> 
    191200                                        </xsl0:call-template> 
    192                                         <xsl0:apply-templates select="sm:caption/*" mode="content"/> 
    193                                 </span> 
    194                         </div></ifText> 
     201                                        <span> 
     202                                                <xsl0:call-template name="classAtt"> 
     203                                                        <xsl0:with-param name="pSuffix" select="'tiIn'"/> 
     204                                                </xsl0:call-template> 
     205                                                <xsl0:apply-templates select="sm:caption/*" mode="content"/> 
     206                                        </span> 
     207                                </div></ifText> 
     208                        </xsl0:if> 
    195209                </div> 
    196210        </xsl0:template> 
Note: See TracChangeset for help on using the changeset viewer.