Changeset 6472


Ignore:
Timestamp:
09/07/06 17:08:07 (5 years ago)
Author:
anp
Message:

surcharge du titre dans les odTransf des dataForm

Location:
trunk/Wsp_Modeling
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/es/content/data/dataFormOdTransf/xml.xed.xml

    r6184 r6472  
    6262                </atts> 
    6363        </se:template> 
     64                 
     65        <attribute se:id="axis" se:bind="attribute" se:name="axis"> 
     66                <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
     67        </attribute> 
     68                 
    6469        <!--** 
    6570                   *  Calls 
     
    6873                <element se:id="sm:callSubModel" se:name="sm:callSubModel" se:bind="element" forcefilled="true"> 
    6974                        <atts> 
    70                                 <attribute se:bind="attribute" se:name="axis"> 
    71                                         <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    72                                 </attribute> 
     75                                <se:ref se:refid="axis"/> 
    7376                        </atts> 
    7477                </element> 
     
    8285                <element se:bind="element" se:name="sm:fieldValueEnum" se:id="sm:fieldValueEnum" forcefilled="true" se:show="ifExist"> 
    8386                        <atts> 
    84                                 <attribute se:bind="attribute" se:name="format" se:defaultvalue="label"> 
     87                                <attribute se:id="sm:fieldValueEnum_format" se:bind="attribute" se:name="format" se:defaultvalue="label"> 
    8588                                        <choiceInput> 
    8689                                                <ciItem value="label" label="name"/> 
     
    9295                        </atts> 
    9396                        <childs> 
    94                                 <element se:bind="element" se:name="sm:option" se:card="*" se:show="ifExist"> 
     97                                <element se:id="sm:fieldValueEnum_options" se:bind="element" se:name="sm:option" se:card="*" se:show="ifExist"> 
    9598                                        <atts> 
    9699                                                <attribute se:bind="attribute" se:name="key" se:mandat="true"> 
     
    107110                <element se:bind="element" se:name="sm:fieldValueOtherType" se:id="sm:fieldValueOtherType" forcefilled="true" se:show="ifExist"> 
    108111                        <atts> 
    109                                 <attribute se:bind="attribute" se:name="axis"> 
    110                                         <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    111                                 </attribute> 
     112                                <se:ref se:refid="axis"/> 
    112113                        </atts> 
    113114                </element> 
     
    115116                        <!-- 
    116117                        <atts> 
    117                                 <attribute se:bind="attribute" se:name="axis"> 
    118                                         <wordsInput trim="true"/> 
    119                                 </attribute> 
     118                                <se:ref se:refid="axis"/> 
    120119                        </atts> 
    121120                        --> 
     
    123122                                <element se:bind="element" se:name="sm:callRefModel" forcefilled="true"> 
    124123                                        <atts> 
    125                                                 <attribute se:bind="attribute" se:name="axis"> 
    126                                                         <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    127                                                 </attribute> 
     124                                                <se:ref se:refid="axis"/> 
    128125                                        </atts> 
    129126                                </element> 
     
    488485                                <element se:name="sm:axis" se:bind="element" se:card="?"> 
    489486                                        <atts> 
    490                                                 <attribute se:bind="attribute" se:name="code"> 
    491                                                         <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    492                                                 </attribute> 
     487                                                <se:ref se:refid="axis"/> 
    493488                                        </atts> 
    494489                                </element> 
     490                                <element se:id="compTitle" se:name="sm:fullTitleText" se:bind="element" se:card="?"> 
     491                                        <atts/> 
     492                                        <childs> 
     493                                                <se:choice se:card="+"> 
     494                                                        <element se:name="sm:fieldValueString" se:bind="element" tooltipTag="Seul le premier field rencontré sera affiché."> 
     495                                                                <atts> 
     496                                                                        <attribute se:id="refCode" se:name="refCode" se:bind="attribute" se:mandat="true"> 
     497                                                                                <wordsInput trim="true" notnull="true"/> 
     498                                                                        </attribute> 
     499                                                                        <attribute se:id="prefix" se:name="prefixIfExist" se:bind="attribute"> 
     500                                                                                <wordsInput trim="false"/> 
     501                                                                        </attribute> 
     502                                                                        <attribute se:id="suffix" se:name="suffixIfExist" se:bind="attribute"> 
     503                                                                                <wordsInput trim="false"/> 
     504                                                                        </attribute> 
     505                                                                </atts> 
     506                                                        </element> 
     507                                                        <element se:name="sm:fieldValueEnum" se:bind="element" tooltipTag="Seul le premier field rencontré sera affiché."> 
     508                                                                <atts> 
     509                                                                        <se:ref se:refid="refCode"/> 
     510                                                                        <se:ref se:refid="prefix"/> 
     511                                                                        <se:ref se:refid="suffix"/> 
     512                                                                        <se:ref se:refid="sm:fieldValueEnum_format"/> 
     513                                                                </atts> 
     514                                                                <childs> 
     515                                                                        <se:ref se:refid="sm:fieldValueEnum_options"/> 
     516                                                                        <insert se:bind="current"/> 
     517                                                                </childs> 
     518                                                        </element> 
     519                                                        <element se:name="sm:callSubModel" se:bind="element" tooltipTag="Seul le premier field ou subData rencontré sera affiché."> 
     520                                                                <atts> 
     521                                                                        <se:ref se:refid="refCode"/> 
     522                                                                        <!-- 
     523                                                                        <se:ref se:refid="prefix"/> 
     524                                                                        <se:ref se:refid="suffix"/> 
     525                                                                        --> 
     526                                                                        <se:ref se:refid="axis"/> 
     527                                                                </atts> 
     528                                                        </element> 
     529                                                        <element se:name="sm:fixedString" se:bind="element"> 
     530                                                                <atts> 
     531                                                                        <attribute se:name="value" se:bind="attribute" se:mandat="true"> 
     532                                                                                <wordsInput notnull="true" trim="false"/> 
     533                                                                        </attribute> 
     534                                                                </atts> 
     535                                                        </element> 
     536                                                        <element se:name="sm:dynamicString" se:bind="element"> 
     537                                                                <atts> 
     538                                                                        <attribute se:name="xpath" se:bind="attribute" se:mandat="true"> 
     539                                                                                <wordsInput notnull="true"/> 
     540                                                                        </attribute> 
     541                                                                </atts> 
     542                                                        </element> 
     543                                                </se:choice> 
     544                                                <insert se:bind="current"/> 
     545                                        </childs> 
     546                                </element> 
     547                                <se:ref se:refid="compTitle" se:name="sm:shortTitleText"/> 
    495548                                <element se:name="sm:content" se:bind="element" se:card="?" opened="true"> 
    496549                                        <childs> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionOdtTransf.xml

    r5757 r6472  
    9595                        </valeur> 
    9696                </affichage> 
    97                 <!-- 
    98                 <affichage code="fc"> 
    99                         <urlPage type="xpath-dynamique">concat('bs.doss/', resultatAgent('//agentModel', 'codeModel'), resultatAgent('//axisTransformer'), '.xml')</urlPage> 
    100                         <page> 
    101                                 <zone cle="mainZone" type="inclusion-dynamique"> 
    102                                         <source> 
    103                                                 <![CDATA[ 
    104                                                 <structure code="[![agent=//agentModel;arguments=codeModel]!][![agent=//axisTransformer]!]" racine="//[![agent=//agentModel;arguments=qNameTagRootModel]!]" xmlns:[![agent=//agentModel;arguments=prefixModel]!]="[![agent=//agentModel;arguments=nsModel]!]" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" codecomposant="[![agent=codecomposant]!]" version="1.0"> 
    105                                                         <intitule type="xpath-dynamique">resultatAgent(metaAgt, 'shortTitleText')</intitule> 
    106                                                         <valeur code="getContent"> 
    107                                                                 <source type="xslOnSrc-dynamique" href="[![dialog=../../contentFile;arguments=act:]!]"/> 
    108                                                         </valeur> 
    109                                                         <redirect code="metaAgt"> 
    110                                                                 <pathAgent type="xpath-statique">concat('@', getIdNode(.), '_meta')</pathAgent> 
    111                                                         </redirect> 
    112                                                 </structure> 
    113                                                 ]]> 
    114                                         </source> 
    115                                 </zone> 
    116                         </page> 
    117                         <valeur code="codecomposant"> 
    118                                 <source type="xpathOnSrc-dynamique">concat("concat(getIdNode(..), '", resultatAgent('//axisTransformer'), "')")</source> 
    119                         </valeur> 
    120                 </affichage> 
    121                 --> 
    12297        </groupAffichage> 
    12398 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormOdTransf.xml

    r5757 r6472  
    8989                        <urlPage type="xpath-dynamique">concat('bs.doss/', resultatAgent('//agentModel', 'codeModel'), resultatAgent('//axisTransformer'), '.xml')</urlPage> 
    9090                        <page> 
    91                                 <zone cle="mainZone" type="inclusion-dynamique"> 
    92                                         <source> 
    93                                                 <![CDATA[ 
    94                                                 <structure code="[![agent=//agentModel;arguments=codeModel]!][![agent=//axisTransformer]!]" racine="//[![agent=//agentModel;arguments=qNameTagRootModel]!]" xmlns:[![agent=//agentModel;arguments=prefixModel]!]="[![agent=//agentModel;arguments=nsModel]!]" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" codecomposant="[![agent=codecomposant]!]" version="1.0"> 
    95                                                         <!-- @API Title : titre long en texte 'pur'. --> 
    96                                                         <valeur code="fullTitleText"> 
    97                                                                 [![agent=//fullTitleBuilder]!] 
    98                                                         </valeur> 
    99                                                         <!-- @API Title : titre court en texte 'pur'. --> 
    100                                                         <valeur code="shortTitleText"> 
    101                                                                 [![agent=//shortTitleBuilder]!] 
    102                                                         </valeur> 
    103                                                         <valeur code="getContent"> 
    104                                                                 <source type="xslOnSrc-dynamique" href="[![dialog=//contentFile;arguments=act:]!]"/> 
    105                                                         </valeur> 
    106                                                 </structure>                                     
    107                                                 ]]> 
    108                                         </source> 
    109                                 </zone> 
     91                                <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:bs.xml.xsl"/> 
    11092                        </page> 
    11193                        <valeur code="codecomposant"> 
     
    11496                </affichage> 
    11597        </groupAffichage> 
    116          
    117         <valeur code="fullTitleBuilder"> 
    118                 <source type="xslOnSrc-dynamique"> 
    119                         <xsl:stylesheet  
    120                                         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    121                                         xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" 
    122                                         xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"  
    123                                         xmlns:c="composition" 
    124                                         exclude-result-prefixes="sm sc" 
    125                                         version="1.0"> 
    126                                 <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/> 
    127                                 <xsl:param name="vDialog"/> 
    128                                 <xsl:param name="vAgent"/> 
    129                                  
    130                                 <xsl:variable name="vPrimSource" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))"/> 
    131                                  
    132                                 <xsl:template match="sm:dataFormOdTransf"> 
    133                                         <xsl:apply-templates select="$vPrimSource/sm:storage/sm:fullTitleBuilder"/> 
    134                                 </xsl:template> 
    135                                 <xsl:template match="sm:fullTitleBuilder"> 
    136                                         <xsl:choose> 
    137                                                 <xsl:when test="count(*) = 1 and not(sm:fieldValue[@prefixIfExist or @suffixIfExist])"> 
    138                                                         <xsl:choose> 
    139                                                                 <xsl:when test="sm:dynamicString"> 
    140                                                                         <source type="xpath-statique"><xsl:value-of select="sm:dynamicString/@xpath"/></source> 
    141                                                                 </xsl:when> 
    142                                                                 <xsl:when test="sm:fieldValue"> 
    143                                                                         <source type="xpath-statique">sp:<xsl:value-of select="sm:fieldValue/@refCode"/></source> 
    144                                                                 </xsl:when> 
    145                                                                 <xsl:when test="sm:fixedString"> 
    146                                                                         <source><xsl:value-of select="sm:fixedString"/></source> 
    147                                                                 </xsl:when> 
    148                                                         </xsl:choose> 
    149                                                 </xsl:when> 
    150                                                 <xsl:otherwise> 
    151                                                         <source type="composition-dynamique"> 
    152                                                                 <c:composition> 
    153                                                                         <xsl:attribute name="xmlns:c">composition</xsl:attribute> 
    154                                                                         <xsl:apply-templates/> 
    155                                                                 </c:composition> 
    156                                                         </source> 
    157                                                 </xsl:otherwise> 
    158                                         </xsl:choose> 
    159                                 </xsl:template> 
    160                                  
    161                                 <xsl:template match="sm:dynamicString"> 
    162                                         <c:donnee type="xpath-statique"><xsl:value-of select="@xpath"/></c:donnee> 
    163                                 </xsl:template> 
    164                                 <xsl:template match="sm:fieldValue[@prefixIfExist or @suffixIfExist]"> 
    165                                         <c:if type="xpath-statique" test="sp:{@refCode}"><xsl:value-of select="@prefixIfExist"/><c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee><xsl:value-of select="@suffixIfExist"/></c:if> 
    166                                 </xsl:template> 
    167                                 <xsl:template match="sm:fieldValue"> 
    168                                         <c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee> 
    169                                 </xsl:template> 
    170                                 <xsl:template match="sm:fixedString"><xsl:value-of select="@value"/></xsl:template> 
    171                          
    172                                 <xsl:template match="*"/> 
    173                                 <xsl:template match="text()|@*"/> 
    174                         </xsl:stylesheet> 
    175                 </source> 
    176         </valeur> 
    177           
    178         <valeur code="shortTitleBuilder"> 
    179                 <source type="xslOnSrc-dynamique"> 
    180                         <xsl:stylesheet  
    181                                         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    182                                         xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" 
    183                                         xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"  
    184                                         xmlns:c="composition" 
    185                                         exclude-result-prefixes="sm sc" 
    186                                         version="1.0"> 
    187                                 <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/> 
    188                                 <xsl:param name="vDialog"/> 
    189                                 <xsl:param name="vAgent"/> 
    190                                  
    191                                 <xsl:variable name="vPrimSource" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))"/> 
    192                                  
    193                                 <xsl:template match="sm:dataFormOdTransf"> 
    194                                         <xsl:choose> 
    195                                                 <xsl:when test="$vPrimSource/sm:storage/sm:shortTitleBuilder/@returnFullTitleIfEmpty='yes'"> 
    196                                                         <source type="contextuel-dynamique"> 
    197                                                                 <choose> 
    198                                                                         <case xpath="resultatAgent('title')" returnXpath="true"/> 
    199                                                                         <default type="resultat-dynamique">agent=//fullTitleText</default> 
    200                                                                 </choose> 
    201                                                         </source> 
    202                                                         <valeur code="title"> 
    203                                                                 <xsl:apply-templates select="$vPrimSource/sm:storage/sm:shortTitleBuilder"/> 
    204                                                         </valeur> 
    205                                                 </xsl:when> 
    206                                                 <xsl:when test="$vPrimSource/sm:storage/sm:shortTitleBuilder"> 
    207                                                         <xsl:apply-templates select="$vPrimSource/sm:storage/sm:shortTitleBuilder"/> 
    208                                                 </xsl:when> 
    209                                                 <xsl:otherwise> 
    210                                                         <xsl:apply-templates select="$vPrimSource/sm:storage/sm:fullTitleBuilder"/> 
    211                                                 </xsl:otherwise> 
    212                                         </xsl:choose> 
    213                                 </xsl:template> 
    214                                 <xsl:template match="sm:shortTitleBuilder|sm:fullTitleBuilder"> 
    215                                         <xsl:choose> 
    216                                                 <xsl:when test="count(*) = 1"> 
    217                                                         <xsl:choose> 
    218                                                                 <xsl:when test="sm:dynamicString"> 
    219                                                                         <source type="xpath-statique"><xsl:value-of select="sm:dynamicString/@xpath"/></source> 
    220                                                                 </xsl:when> 
    221                                                                 <xsl:when test="sm:fieldValue"> 
    222                                                                         <source type="xpath-statique">sp:<xsl:value-of select="sm:fieldValue/@refCode"/></source> 
    223                                                                 </xsl:when> 
    224                                                                 <xsl:when test="sm:fixedString"> 
    225                                                                         <source><xsl:value-of select="sm:fixedString"/></source> 
    226                                                                 </xsl:when> 
    227                                                         </xsl:choose> 
    228                                                 </xsl:when> 
    229                                                 <xsl:otherwise> 
    230                                                         <source type="composition-dynamique"> 
    231                                                                 <c:composition> 
    232                                                                         <xsl:attribute name="xmlns:c">composition</xsl:attribute> 
    233                                                                         <xsl:apply-templates/> 
    234                                                                 </c:composition> 
    235                                                         </source> 
    236                                                 </xsl:otherwise> 
    237                                         </xsl:choose> 
    238                                 </xsl:template> 
    239                                  
    240                                 <xsl:template match="sm:dynamicString"> 
    241                                         <c:donnee type="xpath-statique"><xsl:value-of select="@xpath"/></c:donnee> 
    242                                 </xsl:template> 
    243                                 <xsl:template match="sm:fieldValue"> 
    244                                         <c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee> 
    245                                 </xsl:template> 
    246                                 <xsl:template match="sm:fixedString"><xsl:value-of select="@value"/></xsl:template> 
    247                          
    248                                 <xsl:template match="*"/> 
    249                                 <xsl:template match="text()|@*"/> 
    250                         </xsl:stylesheet> 
    251                 </source> 
    252         </valeur> 
    253  
     98                 
    25499        <!-- Crée la XSL permettant de construire le content à la génération --> 
    255100        <affichage code="contentFile"> 
Note: See TracChangeset for help on using the changeset viewer.