Ignore:
Timestamp:
03/11/08 17:35:30 (4 years ago)
Author:
anp
Message:

genOd : meilleur gestion de la taille des titres et de l'espacement titre/BP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/model/sources/academic/gen/_od/transf/Pb/pb.transf

    r952 r1264  
    55                <sm:inDataOrder> 
    66                        <sm:for codes="info"> 
    7                                 <sm:WParagraph style="spaceBeforePb" display="always"/> 
     7                                <sm:choose> 
     8                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     9FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     10                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     11                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     12                                                        <!--Utile car : 
     13- on désire un espacement sans le bg  
     14- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     15                                                </sm:WParagraph> 
     16                                        </sm:when> 
     17                                        <sm:otherwise> 
     18                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     19                                        </sm:otherwise> 
     20                                </sm:choose> 
    821                                <sm:WParagraph style="pbTitle" display="ifNotNull"> 
    922                                        <sm:dynamicString> 
     
    1427                        </sm:for> 
    1528                        <sm:for codes="def"> 
    16                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    17                                         <!--Utile car : 
    18 - on désire un espacement sans le bg  
    19 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    20                                 </sm:WParagraph> 
     29                                <sm:choose> 
     30                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     31FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     32                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     33                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     34                                                        <!--Utile car : 
     35- on désire un espacement sans le bg  
     36- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     37                                                </sm:WParagraph> 
     38                                        </sm:when> 
     39                                        <sm:otherwise> 
     40                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     41                                        </sm:otherwise> 
     42                                </sm:choose> 
    2143                                <sm:WSection style="pbDef"> 
    2244                                        <sm:label> 
     
    4163                        </sm:for> 
    4264                        <sm:for codes="ex"> 
    43                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    44                                         <!--Utile car : 
    45 - on désire un espacement sans le bg  
    46 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    47                                 </sm:WParagraph> 
     65                                <sm:choose> 
     66                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     67FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     68                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     69                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     70                                                        <!--Utile car : 
     71- on désire un espacement sans le bg  
     72- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     73                                                </sm:WParagraph> 
     74                                        </sm:when> 
     75                                        <sm:otherwise> 
     76                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     77                                        </sm:otherwise> 
     78                                </sm:choose> 
    4879                                <sm:WSection style="pbEx"> 
    4980                                        <sm:label> 
     
    6899                        </sm:for> 
    69100                        <sm:for codes="rem"> 
    70                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    71                                         <!--Utile car : 
    72 - on désire un espacement sans le bg  
    73 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    74                                 </sm:WParagraph> 
     101                                <sm:choose> 
     102                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     103FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     104                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     105                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     106                                                        <!--Utile car : 
     107- on désire un espacement sans le bg  
     108- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     109                                                </sm:WParagraph> 
     110                                        </sm:when> 
     111                                        <sm:otherwise> 
     112                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     113                                        </sm:otherwise> 
     114                                </sm:choose> 
    75115                                <sm:WSection style="pbRem"> 
    76116                                        <sm:label> 
     
    95135                        </sm:for> 
    96136                        <sm:for codes="adv"> 
    97                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    98                                         <!--Utile car : 
    99 - on désire un espacement sans le bg  
    100 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    101                                 </sm:WParagraph> 
     137                                <sm:choose> 
     138                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     139FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     140                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     141                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     142                                                        <!--Utile car : 
     143- on désire un espacement sans le bg  
     144- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     145                                                </sm:WParagraph> 
     146                                        </sm:when> 
     147                                        <sm:otherwise> 
     148                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     149                                        </sm:otherwise> 
     150                                </sm:choose> 
    102151                                <sm:WSection style="pbAdv"> 
    103152                                        <sm:label> 
     
    122171                        </sm:for> 
    123172                        <sm:for codes="warning"> 
    124                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    125                                         <!--Utile car : 
    126 - on désire un espacement sans le bg  
    127 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    128                                 </sm:WParagraph> 
     173                                <sm:choose> 
     174                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     175FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     176                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     177                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     178                                                        <!--Utile car : 
     179- on désire un espacement sans le bg  
     180- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     181                                                </sm:WParagraph> 
     182                                        </sm:when> 
     183                                        <sm:otherwise> 
     184                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     185                                        </sm:otherwise> 
     186                                </sm:choose> 
    129187                                <sm:WSection style="pbWarning"> 
    130188                                        <sm:label> 
     
    149207                        </sm:for> 
    150208                        <sm:for codes="comp"> 
    151                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    152                                         <!--Utile car : 
    153 - on désire un espacement sans le bg  
    154 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    155                                 </sm:WParagraph> 
     209                                <sm:choose> 
     210                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     211FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     212                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     213                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     214                                                        <!--Utile car : 
     215- on désire un espacement sans le bg  
     216- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     217                                                </sm:WParagraph> 
     218                                        </sm:when> 
     219                                        <sm:otherwise> 
     220                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     221                                        </sm:otherwise> 
     222                                </sm:choose> 
    156223                                <sm:WSection style="pbComp"> 
    157224                                        <sm:label> 
     
    176243                        </sm:for> 
    177244                        <sm:for codes="meth"> 
    178                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    179                                         <!--Utile car : 
    180 - on désire un espacement sans le bg  
    181 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    182                                 </sm:WParagraph> 
     245                                <sm:choose> 
     246                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     247FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     248                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     249                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     250                                                        <!--Utile car : 
     251- on désire un espacement sans le bg  
     252- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     253                                                </sm:WParagraph> 
     254                                        </sm:when> 
     255                                        <sm:otherwise> 
     256                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     257                                        </sm:otherwise> 
     258                                </sm:choose> 
    183259                                <sm:WSection style="pbMeth"> 
    184260                                        <sm:label> 
     
    203279                        </sm:for> 
    204280                        <sm:for codes="remind"> 
    205                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    206                                         <!--Utile car : 
    207 - on désire un espacement sans le bg  
    208 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    209                                 </sm:WParagraph> 
     281                                <sm:choose> 
     282                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     283FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     284                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     285                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     286                                                        <!--Utile car : 
     287- on désire un espacement sans le bg  
     288- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     289                                                </sm:WParagraph> 
     290                                        </sm:when> 
     291                                        <sm:otherwise> 
     292                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     293                                        </sm:otherwise> 
     294                                </sm:choose> 
    210295                                <sm:WSection style="pbRemind"> 
    211296                                        <sm:label> 
     
    230315                        </sm:for> 
    231316                        <sm:for codes="basic"> 
    232                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    233                                         <!--Utile car : 
    234 - on désire un espacement sans le bg  
    235 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    236                                 </sm:WParagraph> 
     317                                <sm:choose> 
     318                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     319FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     320                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     321                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     322                                                        <!--Utile car : 
     323- on désire un espacement sans le bg  
     324- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     325                                                </sm:WParagraph> 
     326                                        </sm:when> 
     327                                        <sm:otherwise> 
     328                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     329                                        </sm:otherwise> 
     330                                </sm:choose> 
    237331                                <sm:WSection style="pbBasic"> 
    238332                                        <sm:label> 
     
    257351                        </sm:for> 
    258352                        <sm:for codes="syntax"> 
    259                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    260                                         <!--Utile car : 
    261 - on désire un espacement sans le bg  
    262 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    263                                 </sm:WParagraph> 
     353                                <sm:choose> 
     354                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     355FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     356                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     357                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     358                                                        <!--Utile car : 
     359- on désire un espacement sans le bg  
     360- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     361                                                </sm:WParagraph> 
     362                                        </sm:when> 
     363                                        <sm:otherwise> 
     364                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     365                                        </sm:otherwise> 
     366                                </sm:choose> 
    264367                                <sm:WSection style="pbSyntax"> 
    265368                                        <sm:label> 
     
    284387                        </sm:for> 
    285388                        <sm:for codes="legal"> 
    286                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    287                                         <!--Utile car : 
    288 - on désire un espacement sans le bg  
    289 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    290                                 </sm:WParagraph> 
     389                                <sm:choose> 
     390                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     391FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     392                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     393                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     394                                                        <!--Utile car : 
     395- on désire un espacement sans le bg  
     396- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     397                                                </sm:WParagraph> 
     398                                        </sm:when> 
     399                                        <sm:otherwise> 
     400                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     401                                        </sm:otherwise> 
     402                                </sm:choose> 
    291403                                <sm:WSection style="pbLegal"> 
    292404                                        <sm:label> 
     
    311423                        </sm:for> 
    312424                        <sm:for codes="simul"> 
    313                                 <sm:WParagraph style="spaceBeforePb" display="always"> 
    314                                         <!--Utile car : 
    315 - on désire un espacement sans le bg  
    316 - OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
    317                                 </sm:WParagraph> 
     425                                <sm:choose> 
     426                                        <!--# Insertion d'un espace SSi on n'est pas en première position 
     427FIXME : écrire count(preceding-sibling::sp :*)>0 et passer celà dans un openOdWidget apres passage SC3.5 (namespace sp non déclaré dans SC3.4)--> 
     428                                        <sm:when xpath="count(preceding-sibling::*[starts-with(name(), 'sp:')])&gt;0"> 
     429                                                <sm:WParagraph style="spaceBeforePb" display="always"> 
     430                                                        <!--Utile car : 
     431- on désire un espacement sans le bg  
     432- OO ne gère pas la liaison tite-contenu lorsque l'on a une section aussitot aprés un titre (http://www.openoffice.org/issues/show_bug.cgi?id=81957)--> 
     433                                                </sm:WParagraph> 
     434                                        </sm:when> 
     435                                        <sm:otherwise> 
     436                                                <sm:WParagraph style="spaceBeforePbSmall" display="always"/> 
     437                                        </sm:otherwise> 
     438                                </sm:choose> 
    318439                                <sm:WSection style="pbSimul"> 
    319440                                        <sm:label> 
Note: See TracChangeset for help on using the changeset viewer.