- Timestamp:
- 02/27/09 20:28:09 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryOdTransf/bs.xml.xsl
r12775 r12901 65 65 <xsl0:variable name="vCodeTransformer" select="resultatAgent('//codeTransformer')"/> 66 66 <xsl0:variable name="vAgentModel" select="computeNodeAgent('//agentModel')"/> 67 68 <xsl0:include href="bsco:sm/od/getContent.xsl.xsl"/> 67 69 68 70 <xsl0:template match="sm:binaryOdTransf"> … … 89 91 90 92 <!-- agents propres au type de widget utilisé--> 91 <xsl0:apply-templates select="sm:content/* "/>93 <xsl0:apply-templates select="sm:content/* | sm:fullTitleText | sm:shortTitleText"/> 92 94 93 95 <!-- @API --> … … 95 97 <pathAgent type="xpath-statique">concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent()), '/meta.xml')), '_meta')</pathAgent> 96 98 </redirect> 97 <!-- @API --> 98 <valeur code="fullTitleText"> 99 <source type="xpath-dynamique">resultatAgent('//metaAgt', 'fullTitleText')</source> 100 </valeur> 101 <!-- @API --> 102 <valeur code="shortTitleText"> 103 <source type="xpath-dynamique">resultatAgent('//metaAgt', 'shortTitleText')</source> 104 </valeur> 99 <xsl0:if test="count(sm:fullTitleText)=0"> 100 <!-- Pas de paramétrage de la vue titre, mais des meta dans le modèle => on force les agents de titre par défaut --> 101 <!-- @API Title : titre long en texte 'pur'. --> 102 <valeur code="fullTitleText"> 103 <source type="xpath-dynamique">resultatAgent('//metaAgt', 'fullTitleText')</source> 104 </valeur> 105 </xsl0:if> 106 <xsl0:if test="count(sm:shortTitleText)=0"> 107 <!-- @API Title : titre court en texte 'pur'. --> 108 <valeur code="shortTitleText"> 109 <source type="xpath-dynamique">resultatAgent('//metaAgt', 'shortTitleText')</source> 110 </valeur> 111 </xsl0:if> 105 112 </structure> 106 113 </xsl0:template> 114 115 <!-- ### 116 # title views 117 ### --> 118 <xsl0:template match="sm:fullTitleText|sm:shortTitleText"> 119 <valeur code="{local-name()}"> 120 <xsl0:choose> 121 <xsl0:when test="sm:callBinaryMeta"> 122 <source type="xpath-dynamique">resultatAgent(concat('@', resultatAgent('//codeMeta'), '<xsl0:value-of select="getAxisSuffix(sm:callBinaryMeta/@axis)"/>', '/<xsl0:value-of select="local-name()"/>'))</source> 123 </xsl0:when> 124 <xsl0:when test="sm:fixedTitle"> 125 <source><xsl0:value-of select="sm:fixedTitle/@value"/></source> 126 </xsl0:when> 127 <xsl0:otherwise> 128 <source type="composition-dynamique"> 129 <c:composition> 130 <xsl0:attribute name="xmlns:c">composition</xsl0:attribute> 131 <xsl0:apply-templates/> 132 </c:composition> 133 </source> 134 </xsl0:otherwise> 135 </xsl0:choose> 136 </valeur> 137 </xsl0:template> 138 139 <xsl0:template match="sm:dynamicString[ancestor::sm:fullTitleText or ancestor::sm:shortTitleText]"> 140 <c:donnee type="xslOnSrc-dynamique"> 141 <xsl0:text disable-output-escaping="yes"> 142 <![CDATA[ 143 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 144 xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" 145 xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" 146 xmlns:java="http://xml.apache.org/xslt/java" 147 xmlns:xalan="http://xml.apache.org/xalan" 148 exclude-result-prefixes="xalan" version="1.0"> 149 <xsl:output method="xml" indent="no" omit-xml-declaration="yes"/> 150 <xsl:param name="vAgent"/> 151 <xsl:param name="vDialog"/> 152 ]]> 153 </xsl0:text> 154 <xsl:template match="*"> 155 <xsl0:apply-templates/> 156 </xsl:template> 157 <xsl0:text disable-output-escaping="yes"> 158 <![CDATA[ 159 </xsl:stylesheet> 160 ]]> 161 </xsl0:text> 162 </c:donnee> 163 </xsl0:template> 164 165 <xsl0:template match="sm:binaryFileName"> 166 <!-- sm:binaryFileName est obligatoirement en dernière position. --> 167 <xsl0:choose> 168 <xsl0:when test="@format='trimExtension'"> 169 <xsl:value-of select="substring-before(java:hGetName(srcFileAgent()), '.')"/> 170 </xsl0:when> 171 <xsl0:otherwise> 172 <xsl:value-of select="java:hGetName(srcFileAgent())"/> 173 </xsl0:otherwise> 174 </xsl0:choose> 175 </xsl0:template> 107 176 108 177 <!--**
Note: See TracChangeset
for help on using the changeset viewer.