Ignore:
Timestamp:
12/12/06 15:28:02 (5 years ago)
Author:
anp
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/bsDescContent.xml.xsl

    r7577 r7711  
    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"/> 
     
    723724                                                <xsl0:otherwise> 
    724725                                                        <xsl0:variable name="vMainFileName" select="computeNodeAgent($vAgentModel/source)/sm:structure/sm:mainFile/@name"/> 
    725                                                         <source type="xpath-dynamique">concat(resultatAgent('//', concat( 'res:src=src:', java:hGetUri(srcFileAgent()))), '/', '<xsl0:value-of select="$vMainFileName"/>')</source> 
     726                                                        <source type="xpath-dynamique"> 
     727                                                                concat(resultatAgent('//', concat( 'res:src=src:', java:hGetUri(srcFileAgent()))), '/' 
     728                                                                <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 --> 
     729                                                                        ,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])"/>') 
     730                                                                </xsl0:for-each> 
     731                                                                ) 
     732                                                        </source> 
     733                                                        <!-- <source type="xpath-dynamique">concat(resultatAgent('//', concat( 'res:src=src:', java:hGetUri(srcFileAgent()))), '/', '<xsl0:value-of select="$vMainFileName"/>')</source>--> 
    726734                                                </xsl0:otherwise> 
    727735                                        </xsl0:choose> 
Note: See TracChangeset for help on using the changeset viewer.