Changeset 6475


Ignore:
Timestamp:
09/07/06 18:43:50 (5 years ago)
Author:
anp
Message:

surcharge du titre dans les xhtmlTransf des dataForm

Location:
trunk/Wsp_Modeling
Files:
1 added
3 edited

Legend:

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

    r6472 r6475  
    9595                        </atts> 
    9696                        <childs> 
    97                                 <element se:id="sm:fieldValueEnum_options" se:bind="element" se:name="sm:option" se:card="*" se:show="ifExist"> 
     97                                <element se:id="sm:fieldValueEnum_option" se:bind="element" se:name="sm:option" se:card="*" se:show="ifExist"> 
    9898                                        <atts> 
    9999                                                <attribute se:bind="attribute" se:name="key" se:mandat="true"> 
     
    513513                                                                </atts> 
    514514                                                                <childs> 
    515                                                                         <se:ref se:refid="sm:fieldValueEnum_options"/> 
     515                                                                        <se:ref se:refid="sm:fieldValueEnum_option"/> 
    516516                                                                        <insert se:bind="current"/> 
    517517                                                                </childs> 
  • trunk/Wsp_Modeling/es/content/data/dataFormXhtmlTransf/xml.xed.xml

    r6446 r6475  
    5252                </element> 
    5353                 
     54                <attribute se:id="axis" se:name="axis" se:bind="attribute"> 
     55                        <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
     56                </attribute> 
     57                 
    5458                <se:template se:id="atts_Class"> 
    5559                        <attribute se:bind="attribute" se:name="internalClass"> 
     
    7074                        <element se:name="sm:fieldValueEnum" se:id="forField_fieldValueEnum" se:bind="element" forcefilled="true"> 
    7175                                <atts> 
    72                                         <attribute se:name="format" se:bind="attribute" se:defaultvalue="label"> 
     76                                        <attribute se:id="sm:fieldValueEnum_format" se:name="format" se:bind="attribute" se:defaultvalue="label"> 
    7377                                                <choiceInput> 
    7478                                                        <ciItem value="label" label="name"/> 
     
    8084                                </atts> 
    8185                                <childs> 
    82                                         <element se:name="sm:option" se:bind="element" se:card="*" se:show="ifExist"> 
     86                                        <element se:id="sm:fieldValueEnum_option" se:name="sm:option" se:bind="element" se:card="*" se:show="ifExist"> 
    8387                                                <atts> 
    8488                                                        <attribute se:name="key" se:bind="attribute" se:mandat="true"> 
     
    9599                        <element se:name="sm:fieldValueOtherType" se:id="forField_fieldValueOtherType" se:bind="element" forcefilled="true"> 
    96100                                <atts> 
    97                                         <attribute se:name="axis" se:bind="attribute"> 
    98                                                 <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    99                                         </attribute> 
     101                                        <se:ref se:refid="axis"/> 
    100102                                </atts> 
    101103                        </element> 
     
    104106                                        <element se:name="sm:callRefModel" se:bind="element" forcefilled="true"> 
    105107                                                <atts> 
    106                                                         <attribute se:name="axis" se:bind="attribute"> 
    107                                                                 <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    108                                                         </attribute> 
     108                                                        <se:ref se:refid="axis"/> 
    109109                                                </atts> 
    110110                                        </element> 
     
    216216                        <element se:name="sm:callSubModel" se:bind="element" forcefilled="true"> 
    217217                                <atts> 
    218                                         <attribute se:name="axis" se:bind="attribute"> 
    219                                                 <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    220                                         </attribute> 
     218                                        <se:ref se:refid="axis"/> 
    221219                                </atts> 
    222220                                <childs/> 
     
    287285                                        </atts> 
    288286                                </element> 
     287                                <element se:id="compTitle" se:name="sm:fullTitleText" se:bind="element" se:card="?"> 
     288                                        <atts/> 
     289                                        <childs> 
     290                                                <se:choice se:card="+"> 
     291                                                        <element se:name="sm:fieldValueString" se:bind="element" tooltipTag="Seul le premier field rencontré sera affiché."> 
     292                                                                <atts> 
     293                                                                        <attribute se:id="refCode" se:name="refCode" se:bind="attribute" se:mandat="true"> 
     294                                                                                <wordsInput trim="true" notnull="true"/> 
     295                                                                        </attribute> 
     296                                                                        <attribute se:id="prefix" se:name="prefixIfExist" se:bind="attribute"> 
     297                                                                                <wordsInput trim="false"/> 
     298                                                                        </attribute> 
     299                                                                        <attribute se:id="suffix" se:name="suffixIfExist" se:bind="attribute"> 
     300                                                                                <wordsInput trim="false"/> 
     301                                                                        </attribute> 
     302                                                                </atts> 
     303                                                        </element> 
     304                                                        <element se:name="sm:fieldValueEnum" se:bind="element" tooltipTag="Seul le premier field rencontré sera affiché."> 
     305                                                                <atts> 
     306                                                                        <se:ref se:refid="refCode"/> 
     307                                                                        <se:ref se:refid="prefix"/> 
     308                                                                        <se:ref se:refid="suffix"/> 
     309                                                                        <se:ref se:refid="sm:fieldValueEnum_format"/> 
     310                                                                </atts> 
     311                                                                <childs> 
     312                                                                        <se:ref se:refid="sm:fieldValueEnum_option"/> 
     313                                                                        <insert se:bind="current"/> 
     314                                                                </childs> 
     315                                                        </element> 
     316                                                        <element se:name="sm:callSubModel" se:bind="element" tooltipTag="Seul le premier field ou subData rencontré sera affiché."> 
     317                                                                <atts> 
     318                                                                        <se:ref se:refid="refCode"/> 
     319                                                                        <!-- 
     320                                                                        <se:ref se:refid="prefix"/> 
     321                                                                        <se:ref se:refid="suffix"/> 
     322                                                                        --> 
     323                                                                        <se:ref se:refid="axis"/> 
     324                                                                </atts> 
     325                                                        </element> 
     326                                                        <element se:name="sm:fixedString" se:bind="element"> 
     327                                                                <atts> 
     328                                                                        <attribute se:name="value" se:bind="attribute" se:mandat="true"> 
     329                                                                                <wordsInput notnull="true" trim="false"/> 
     330                                                                        </attribute> 
     331                                                                </atts> 
     332                                                        </element> 
     333                                                        <element se:name="sm:dynamicString" se:bind="element"> 
     334                                                                <atts> 
     335                                                                        <attribute se:name="xpath" se:bind="attribute" se:mandat="true"> 
     336                                                                                <wordsInput notnull="true"/> 
     337                                                                        </attribute> 
     338                                                                </atts> 
     339                                                        </element> 
     340                                                </se:choice> 
     341                                                <insert se:bind="current"/> 
     342                                        </childs> 
     343                                </element> 
     344                                <se:ref se:refid="compTitle" se:name="sm:shortTitleText"/> 
    289345                                <alternative se:bind="choice"> 
    290346                                        <element se:name="sm:content" se:bind="element" se:card="?" opened="true" insert="collapsed"> 
     
    528584                                                                <element se:name="sm:fieldValueOtherType" se:id="nav_fieldValueOtherType" se:bind="element" forcefilled="true"> 
    529585                                                                        <atts> 
    530                                                                                 <attribute se:name="axis" se:bind="attribute"> 
    531                                                                                         <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    532                                                                                 </attribute> 
     586                                                                                <se:ref se:refid="axis"/> 
    533587                                                                                <se:ref se:refid="nav_elt_field"/> 
    534588                                                                        </atts> 
     
    541595                                                                                <element se:name="sm:callRefModel" se:bind="element" forcefilled="true"> 
    542596                                                                                        <atts> 
    543                                                                                                 <attribute se:name="axis" se:bind="attribute"> 
    544                                                                                                         <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 
    545                                                                                                 </attribute> 
     597                                                                                                <se:ref se:refid="axis"/> 
    546598                                                                                        </atts> 
    547599                                                                                </element> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf.xml

    r6474 r6475  
    7777        </valeur> 
    7878         
    79         <!-- @API Produit la(es) feuille(s) de comportement associée(s) à ce générateur (FC racine). --> 
     79        <!-- @API Produit la(es) feuille(s) de comportement associée(s) à ce transformer (FC racine). -->        
    8080         <affichage code="behaviorSheet"> 
    8181                <urlPage type="xpath-dynamique">concat('bs.doss/', resultatAgent('//agentModel', 'codeModel'), resultatAgent('//axisTransformer'), '.xml')</urlPage> 
    8282                <page> 
    83                         <zone cle="mainZone" type="inclusion-dynamique"> 
    84                                 <source><![CDATA[<?xml version="1.0" encoding="UTF-8"?> 
    85                                         <structure code="[![agent=//agentModel;arguments=codeModel]!][![agent=//axisTransformer]!]" racine="//[![agent=//agentModel;arguments=qNameTagRootModel]!]" codecomposant="[![agent=codecomposant]!]"  
    86                                                         xmlns:[![agent=//agentModel;arguments=prefixModel]!]="[![agent=//agentModel;arguments=nsModel]!]"  
    87                                                         xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"  
    88                                                         xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive"  version="1.0"> 
    89  
    90                                                  [![agent=nav]!] 
    91                                  
    92                                                 <!-- @API Title : titre long en texte 'pur'. --> 
    93                                                 <valeur code="fullTitleText"> 
    94                                                         [![agent=fullTitleBuilder]!] 
    95                                                 </valeur> 
    96                                                 <!-- @API Title : titre court en texte 'pur'. --> 
    97                                                 <valeur code="shortTitleText"> 
    98                                                         [![agent=shortTitleBuilder]!] 
    99                                                 </valeur> 
    100                                                 [![agent=xhtmlContent]!] 
    101                                         </structure> 
    102                                 ]]></source> 
    103                         </zone> 
     83                        <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:bs.xml.xsl"/> 
    10484                </page> 
    105                   
     85         
    10686                <valeur code="codecomposant"> 
    10787                        <source type="xpathOnSrc-dynamique">concat("concat(getIdNode(..), '_meta", resultatAgent('//axisTransformer'), "')")</source> 
    108                 </valeur> 
    109                   
    110                 <valeur code="fullTitleBuilder"> 
    111                         <source type="xslOnSrc-dynamique"> 
    112                                 <xsl:stylesheet  
    113                                                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    114                                                 xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" 
    115                                                 xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"  
    116                                                 xmlns:c="composition" 
    117                                                 exclude-result-prefixes="sm sc" 
    118                                                 version="1.0"> 
    119                                         <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/> 
    120                                         <xsl:param name="vDialog"/> 
    121                                         <xsl:param name="vAgent"/> 
    122                                          
    123                                         <xsl:variable name="vPrimSource" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))"/> 
    124                                          
    125                                         <xsl:template match="sm:dataFormXhtmlTransf"> 
    126                                                 <xsl:apply-templates select="$vPrimSource/sm:storage/sm:fullTitleBuilder"/> 
    127                                         </xsl:template> 
    128                                         <xsl:template match="sm:fullTitleBuilder"> 
    129                                                 <xsl:choose> 
    130                                                         <xsl:when test="count(*) = 1 and not(sm:fieldValue[@prefixIfExist or @suffixIfExist])"> 
    131                                                                 <xsl:choose> 
    132                                                                         <xsl:when test="sm:dynamicString"> 
    133                                                                                 <source type="xpath-statique"><xsl:value-of select="sm:dynamicString/@xpath"/></source> 
    134                                                                         </xsl:when> 
    135                                                                         <xsl:when test="sm:fieldValue"> 
    136                                                                                 <source type="xpath-statique">sp:<xsl:value-of select="sm:fieldValue/@refCode"/></source> 
    137                                                                         </xsl:when> 
    138                                                                         <xsl:when test="sm:fixedString"> 
    139                                                                                 <source><xsl:value-of select="sm:fixedString"/></source> 
    140                                                                         </xsl:when> 
    141                                                                 </xsl:choose> 
    142                                                         </xsl:when> 
    143                                                         <xsl:otherwise> 
    144                                                                 <source type="composition-dynamique"> 
    145                                                                         <c:composition> 
    146                                                                                 <xsl:attribute name="xmlns:c">composition</xsl:attribute> 
    147                                                                                 <xsl:apply-templates/> 
    148                                                                         </c:composition> 
    149                                                                 </source> 
    150                                                         </xsl:otherwise> 
    151                                                 </xsl:choose> 
    152                                         </xsl:template> 
    153                                          
    154                                         <xsl:template match="sm:dynamicString"> 
    155                                                 <c:donnee type="xpath-statique"><xsl:value-of select="@xpath"/></c:donnee> 
    156                                         </xsl:template> 
    157                                         <xsl:template match="sm:fieldValue[@prefixIfExist or @suffixIfExist]"> 
    158                                                 <c:if type="xpath-statique" test="boolean(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> 
    159                                         </xsl:template> 
    160                                         <xsl:template match="sm:fieldValue"> 
    161                                                 <c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee> 
    162                                         </xsl:template> 
    163                                         <xsl:template match="sm:fixedString"><xsl:value-of select="@value"/></xsl:template> 
    164                                  
    165                                         <xsl:template match="*"/> 
    166                                         <xsl:template match="text()|@*"/> 
    167                                 </xsl:stylesheet> 
    168                         </source> 
    169                 </valeur> 
    170                   
    171                 <valeur code="shortTitleBuilder"> 
    172                         <source type="xslOnSrc-dynamique"> 
    173                                 <xsl:stylesheet  
    174                                                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    175                                                 xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" 
    176                                                 xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"  
    177                                                 xmlns:c="composition" 
    178                                                 exclude-result-prefixes="sm sc" 
    179                                                 version="1.0"> 
    180                                         <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/> 
    181                                         <xsl:param name="vDialog"/> 
    182                                         <xsl:param name="vAgent"/> 
    183                                          
    184                                         <xsl:variable name="vPrimSource" select="computeNodeAgent(computeNodeAgent('//agentModel', 'source'))"/> 
    185                                          
    186                                         <xsl:template match="sm:dataFormXhtmlTransf"> 
    187                                                 <xsl:choose> 
    188                                                         <xsl:when test="$vPrimSource/sm:storage/sm:shortTitleBuilder/@returnFullTitleIfEmpty='yes'"> 
    189                                                                 <source type="contextuel-dynamique"> 
    190                                                                         <choose> 
    191                                                                                 <case xpath="resultatAgent('title')" returnXpath="true"/> 
    192                                                                                 <default type="resultat-dynamique">agent=//fullTitleText</default> 
    193                                                                         </choose> 
    194                                                                 </source> 
    195                                                                 <valeur code="title"> 
    196                                                                         <xsl:apply-templates select="$vPrimSource/sm:storage/sm:shortTitleBuilder"/> 
    197                                                                 </valeur> 
    198                                                         </xsl:when> 
    199                                                         <xsl:when test="$vPrimSource/sm:storage/sm:shortTitleBuilder"> 
    200                                                                 <xsl:apply-templates select="$vPrimSource/sm:storage/sm:shortTitleBuilder"/> 
    201                                                         </xsl:when> 
    202                                                         <xsl:otherwise> 
    203                                                                 <xsl:apply-templates select="$vPrimSource/sm:storage/sm:fullTitleBuilder"/> 
    204                                                         </xsl:otherwise> 
    205                                                 </xsl:choose> 
    206                                         </xsl:template> 
    207                                         <xsl:template match="sm:shortTitleBuilder|sm:fullTitleBuilder"> 
    208                                                 <xsl:choose> 
    209                                                         <xsl:when test="count(*) = 1 and not(sm:fieldValue[@prefixIfExist or @suffixIfExist])"> 
    210                                                                 <xsl:choose> 
    211                                                                         <xsl:when test="sm:dynamicString"> 
    212                                                                                 <source type="xpath-statique"><xsl:value-of select="sm:dynamicString/@xpath"/></source> 
    213                                                                         </xsl:when> 
    214                                                                         <xsl:when test="sm:fieldValue"> 
    215                                                                                 <source type="xpath-statique">sp:<xsl:value-of select="sm:fieldValue/@refCode"/></source> 
    216                                                                         </xsl:when> 
    217                                                                         <xsl:when test="sm:fixedString"> 
    218                                                                                 <source><xsl:value-of select="sm:fixedString"/></source> 
    219                                                                         </xsl:when> 
    220                                                                 </xsl:choose> 
    221                                                         </xsl:when> 
    222                                                         <xsl:otherwise> 
    223                                                                 <source type="composition-dynamique"> 
    224                                                                         <c:composition> 
    225                                                                                 <xsl:attribute name="xmlns:c">composition</xsl:attribute> 
    226                                                                                 <xsl:apply-templates/> 
    227                                                                         </c:composition> 
    228                                                                 </source> 
    229                                                         </xsl:otherwise> 
    230                                                 </xsl:choose> 
    231                                         </xsl:template> 
    232                                          
    233                                         <xsl:template match="sm:dynamicString"> 
    234                                                 <c:donnee type="xpath-statique"><xsl:value-of select="@xpath"/></c:donnee> 
    235                                         </xsl:template> 
    236                                         <xsl:template match="sm:fieldValue[@prefixIfExist or @suffixIfExist]"> 
    237                                                 <c:if type="xpath-statique" test="boolean(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> 
    238                                         </xsl:template> 
    239                                         <xsl:template match="sm:fieldValue"> 
    240                                                 <c:donnee type="xpath-statique">sp:<xsl:value-of select="@refCode"/></c:donnee> 
    241                                         </xsl:template> 
    242                                         <xsl:template match="sm:fixedString"><xsl:value-of select="@value"/></xsl:template> 
    243                                  
    244                                         <xsl:template match="*"/> 
    245                                         <xsl:template match="text()|@*"/> 
    246                                 </xsl:stylesheet> 
    247                         </source> 
    24888                </valeur> 
    24989                  
Note: See TracChangeset for help on using the changeset viewer.