Changeset 7712 for branches/3.2.x/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/bsDescContent.xml.xsl
- Timestamp:
- 12/12/06 15:48:32 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2.x/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/bsDescContent.xml.xsl
r6824 r7712 45 45 xmlns:sfile="http://www.utc.fr/ics/scenari/v3/file" 46 46 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"> 48 49 49 50 <xsl0:output method="xml" encoding="UTF-8" indent="no"/> … … 634 635 <xsl0:otherwise> 635 636 <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>--> 637 645 </xsl0:otherwise> 638 646 </xsl0:choose>
Note: See TracChangeset
for help on using the changeset viewer.