Changeset 9279

Show
Ignore:
Timestamp:
20.06.2007 10:57:59 (3 years ago)
Author:
sys
Message:

compositionXhtmlTransf : ajout de sm:content//sm:for//sm:choose

Location:
trunk/Wsp_Modeling
Files:
2 modified

Legend:

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

    r9278 r9279  
    237237                                        <se:ref se:refid="sm:callPartMeta"/> 
    238238                                        <se:ref se:refid="sm:callModel"/> 
     239                                        <element se:name="sm:choose" se:bind="element" forcefilled="true"> 
     240                                                <childs> 
     241                                                        <element se:name="sm:when" se:bind="element" se:card="+"> 
     242                                                                <atts> 
     243                                                                        <attribute se:name="codes" se:bind="attribute" tooltiptext="&organisation.composition.codes;"> 
     244                                                                                <wordsInput trim="true" filterRegExp="^([a-zA-Z0-9 ]+|\*)$"/> 
     245                                                                        </attribute> 
     246                                                                        <attribute se:name="xpath" se:bind="attribute" tooltiptext="&organisation.composition.xPath;"> 
     247                                                                                <wordsInput trim="true" frenchPonct="false"/> 
     248                                                                        </attribute> 
     249                                                                </atts> 
     250                                                                <childs> 
     251                                                                        <se:ref se:refid="choiceLabel_Ctx"/> 
     252                                                                        <insert se:bind="current"/> 
     253                                                                </childs> 
     254                                                        </element> 
     255                                                        <element se:name="sm:otherwise" se:bind="element" se:card="?" insert="true"> 
     256                                                                <childs> 
     257                                                                        <se:ref se:refid="choiceLabel_Ctx"/> 
     258                                                                        <insert se:bind="current"/> 
     259                                                                </childs> 
     260                                                        </element> 
     261                                                </childs> 
     262                                        </element> 
    239263                                        <se:ref se:refid="sm:WLink_Ctx"/> 
    240264                                        <se:ref se:refid="sm:WTooltip_Ctx"/> 
     
    254278                                        <se:ref se:refid="sm:callPartMeta"/> 
    255279                                        <se:ref se:refid="sm:callModel"/> 
     280                                        <element se:name="sm:choose" se:bind="element" forcefilled="true"> 
     281                                                <childs> 
     282                                                        <element se:name="sm:when" se:bind="element" se:card="+"> 
     283                                                                <atts> 
     284                                                                        <attribute se:name="codes" se:bind="attribute" tooltiptext="&organisation.composition.codes;"> 
     285                                                                                <wordsInput trim="true" filterRegExp="^([a-zA-Z0-9 ]+|\*)$"/> 
     286                                                                        </attribute> 
     287                                                                        <attribute se:name="xpath" se:bind="attribute" tooltiptext="&organisation.composition.xPath;"> 
     288                                                                                <wordsInput trim="true" frenchPonct="false"/> 
     289                                                                        </attribute> 
     290                                                                </atts> 
     291                                                                <childs> 
     292                                                                        <se:ref se:refid="choiceLabelTitle_Ctx"/> 
     293                                                                        <insert se:bind="current"/> 
     294                                                                </childs> 
     295                                                        </element> 
     296                                                        <element se:name="sm:otherwise" se:bind="element" se:card="?" insert="true"> 
     297                                                                <childs> 
     298                                                                        <se:ref se:refid="choiceLabelTitle_Ctx"/> 
     299                                                                        <insert se:bind="current"/> 
     300                                                                </childs> 
     301                                                        </element> 
     302                                                </childs> 
     303                                        </element> 
    256304                                </se:choice> 
    257305                                <insert se:bind="current"/> 
     
    267315                        </element> 
    268316                        <se:ref se:refid="sm:callModel"/> 
     317                        <element se:name="sm:choose" se:bind="element" forcefilled="true"> 
     318                                <childs> 
     319                                        <element se:name="sm:when" se:bind="element" se:card="+"> 
     320                                                <atts> 
     321                                                        <attribute se:name="codes" se:bind="attribute" tooltiptext="&organisation.composition.codes;"> 
     322                                                                <wordsInput trim="true" filterRegExp="^([a-zA-Z0-9 ]+|\*)$"/> 
     323                                                        </attribute> 
     324                                                        <attribute se:name="xpath" se:bind="attribute" tooltiptext="&organisation.composition.xPath;"> 
     325                                                                <wordsInput trim="true" frenchPonct="false"/> 
     326                                                        </attribute> 
     327                                                </atts> 
     328                                                <childs> 
     329                                                        <se:ref se:refid="choiceContent_Ctx"/> 
     330                                                        <insert se:bind="current"/> 
     331                                                </childs> 
     332                                        </element> 
     333                                        <element se:name="sm:otherwise" se:bind="element" se:card="?" insert="true"> 
     334                                                <childs> 
     335                                                        <se:ref se:refid="choiceContent_Ctx"/> 
     336                                                        <insert se:bind="current"/> 
     337                                                </childs> 
     338                                        </element> 
     339                                </childs> 
     340                        </element> 
    269341                        <element se:id="sm:WSimpleBlock_Ctx" se:name="sm:WSimpleBlock" se:bind="element" forcefilled="true" tooltipTag="&organisation.composition.simpleBlock;"> 
    270342                                <atts> 
     
    402474                                                        <element se:name="sm:ttTitle" se:bind="element" se:card="?"> 
    403475                                                                <childs> 
    404                                                                         <se:choice se:card="*" se:show="ifExist"> 
     476                                                                        <se:choice se:id="choiceTtTitle_Ctx" se:card="*" se:show="ifExist"> 
    405477                                                                                <se:ref se:refid="sm:fixedString"/> 
    406478                                                                                <se:ref se:refid="sm:title_Ctx"/> 
     
    408480                                                                                <se:ref se:refid="sm:callPartMeta"/> 
    409481                                                                                <se:ref se:refid="sm:callModel"/> 
     482                                                                                <element se:name="sm:choose" se:bind="element" forcefilled="true"> 
     483                                                                                        <childs> 
     484                                                                                                <element se:name="sm:when" se:bind="element" se:card="+"> 
     485                                                                                                        <atts> 
     486                                                                                                                <attribute se:name="codes" se:bind="attribute" tooltiptext="&organisation.composition.codes;"> 
     487                                                                                                                        <wordsInput trim="true" filterRegExp="^([a-zA-Z0-9 ]+|\*)$"/> 
     488                                                                                                                </attribute> 
     489                                                                                                                <attribute se:name="xpath" se:bind="attribute" tooltiptext="&organisation.composition.xPath;"> 
     490                                                                                                                        <wordsInput trim="true" frenchPonct="false"/> 
     491                                                                                                                </attribute> 
     492                                                                                                        </atts> 
     493                                                                                                        <childs> 
     494                                                                                                                <se:ref se:refid="choiceTtTitle_Ctx"/> 
     495                                                                                                                <insert se:bind="current"/> 
     496                                                                                                        </childs> 
     497                                                                                                </element> 
     498                                                                                                <element se:name="sm:otherwise" se:bind="element" se:card="?" insert="true"> 
     499                                                                                                        <childs> 
     500                                                                                                                <se:ref se:refid="choiceTtTitle_Ctx"/> 
     501                                                                                                                <insert se:bind="current"/> 
     502                                                                                                        </childs> 
     503                                                                                                </element> 
     504                                                                                        </childs> 
     505                                                                                </element> 
    410506                                                                                <se:ref se:refid="sm:WLink_Ctx"/> 
    411507                                                                                <se:ref se:refid="sm:Widget_Ctx"/> 
     
    502598                                                <se:ref se:refid="sm:callPartMeta"/> 
    503599                                                <se:ref se:refid="sm:callModel"/> 
     600                                                <element se:name="sm:choose" se:bind="element" forcefilled="true"> 
     601                                                        <childs> 
     602                                                                <element se:name="sm:when" se:bind="element" se:card="+"> 
     603                                                                        <atts> 
     604                                                                                <attribute se:name="codes" se:bind="attribute" tooltiptext="&organisation.composition.codes;"> 
     605                                                                                        <wordsInput trim="true" filterRegExp="^([a-zA-Z0-9 ]+|\*)$"/> 
     606                                                                                </attribute> 
     607                                                                                <attribute se:name="xpath" se:bind="attribute" tooltiptext="&organisation.composition.xPath;"> 
     608                                                                                        <wordsInput trim="true" frenchPonct="false"/> 
     609                                                                                </attribute> 
     610                                                                        </atts> 
     611                                                                        <childs> 
     612                                                                                <se:ref se:refid="choiceFreeBlock_Ctx"/> 
     613                                                                                <insert se:bind="current"/> 
     614                                                                        </childs> 
     615                                                                </element> 
     616                                                                <element se:name="sm:otherwise" se:bind="element" se:card="?" insert="true"> 
     617                                                                        <childs> 
     618                                                                                <se:ref se:refid="choiceFreeBlock_Ctx"/> 
     619                                                                                <insert se:bind="current"/> 
     620                                                                        </childs> 
     621                                                                </element> 
     622                                                        </childs> 
     623                                                </element> 
    504624                                                <se:ref se:refid="sm:title_Ctx"/> 
    505625                                                <se:ref se:refid="sm:WSimpleBlock_Ctx"/> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/bs.xml.xsl

    r9217 r9279  
    617617                </xsl:when> 
    618618        </xsl0:template> 
     619        <xsl0:template match="sm:for//sm:when" mode="content"> 
     620                <xsl:when test="{si(@codes, concat('../sp:', java:replaceAll(string(@codes), '\s', ' | ../sp:')), @xpath)}"> 
     621                        <xsl0:apply-templates mode="content"/> 
     622                </xsl:when> 
     623        </xsl0:template> 
    619624        <xsl0:template match="sm:otherwise" mode="content"> 
    620625                <xsl:otherwise>