Changeset 7712


Ignore:
Timestamp:
12/12/06 15:48:32 (5 years ago)
Author:
anp
Message:

55plusieurs fichiers sont maintenant autorisés dans la mainFile de la folderPrim

Location:
branches/3.2.x/Wsp_Modeling
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2.x/Wsp_Modeling/es/content/resources/folderPrim/xml.xed.xml

    r6184 r7712  
    8484                                                <element se:name="sm:mainFile" se:bind="element" se:card="1"> 
    8585                                                        <atts> 
    86                                                                 <attribute se:name="name" se:bind="attribute" se:mandat="true"> 
     86                                                                <attribute se:name="name" se:bind="attribute" se:mandat="true" tooltiptext="Possibilité de spécifier plusieurs noms de fichier séparés par des virgules. ex : 'index.html, index.htm'"> 
    8787                                                                        <wordsInput notnull="true" trim="true" flex="1"/> 
    8888                                                                </attribute> 
  • branches/3.2.x/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/bsDescContent.xml.xsl

    r6824 r7712  
    4545        xmlns:sfile="http://www.utc.fr/ics/scenari/v3/file" 
    4646        xmlns:java="http://xml.apache.org/xslt/java"  
    47         exclude-result-prefixes="sm"> 
     47        xmlns:xalan="http://xml.apache.org/xalan" 
     48        exclude-result-prefixes="sm xalan"> 
    4849         
    4950        <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 
     
    634635                                                <xsl0:otherwise> 
    635636                                                        <xsl0:variable name="vMainFileName" select="computeNodeAgent($vAgentModel/source)/sm:structure/sm:mainFile/@name"/> 
    636                                                         <source type="xpath-dynamique">concat(resultatAgent('//', concat( 'res:src=src:', java:hGetUri(srcFileAgent()))), '/', '<xsl0:value-of select="$vMainFileName"/>')</source> 
     637                                                        <source type="xpath-dynamique"> 
     638                                                                concat(resultatAgent('//', concat( 'res:src=src:', java:hGetUri(srcFileAgent()))), '/' 
     639                                                                <xsl0:for-each select="xalan:tokenize($vMainFileName, ',')"><!-- NOTE : on utilise le caractère ',' et non 'espace' comme séparateur car un nom de fichier peut contenir un espace; si aucun fichier trouvé, on prend le premier --> 
     640                                                                        ,si(java:hGetStatus(java:hFindSource(srcFileAgent(), '<xsl0:value-of select="normalize-space(current())"/>'))='1', '<xsl0:value-of select="normalize-space(current())"/>', '<xsl0:value-of select="si(position()=last(), xalan:tokenize($vMainFileName, ',')[1])"/>') 
     641                                                                </xsl0:for-each> 
     642                                                                ) 
     643                                                        </source> 
     644                                                        <!--<source type="xpath-dynamique">concat(resultatAgent('//', concat( 'res:src=src:', java:hGetUri(srcFileAgent()))), '/', '<xsl0:value-of select="$vMainFileName"/>')</source>--> 
    637645                                                </xsl0:otherwise> 
    638646                                        </xsl0:choose> 
Note: See TracChangeset for help on using the changeset viewer.