Changeset 6475
- Timestamp:
- 09/07/06 18:43:50 (5 years ago)
- 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 95 95 </atts> 96 96 <childs> 97 <element se:id="sm:fieldValueEnum_option s" 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"> 98 98 <atts> 99 99 <attribute se:bind="attribute" se:name="key" se:mandat="true"> … … 513 513 </atts> 514 514 <childs> 515 <se:ref se:refid="sm:fieldValueEnum_option s"/>515 <se:ref se:refid="sm:fieldValueEnum_option"/> 516 516 <insert se:bind="current"/> 517 517 </childs> -
trunk/Wsp_Modeling/es/content/data/dataFormXhtmlTransf/xml.xed.xml
r6446 r6475 52 52 </element> 53 53 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 54 58 <se:template se:id="atts_Class"> 55 59 <attribute se:bind="attribute" se:name="internalClass"> … … 70 74 <element se:name="sm:fieldValueEnum" se:id="forField_fieldValueEnum" se:bind="element" forcefilled="true"> 71 75 <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"> 73 77 <choiceInput> 74 78 <ciItem value="label" label="name"/> … … 80 84 </atts> 81 85 <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"> 83 87 <atts> 84 88 <attribute se:name="key" se:bind="attribute" se:mandat="true"> … … 95 99 <element se:name="sm:fieldValueOtherType" se:id="forField_fieldValueOtherType" se:bind="element" forcefilled="true"> 96 100 <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"/> 100 102 </atts> 101 103 </element> … … 104 106 <element se:name="sm:callRefModel" se:bind="element" forcefilled="true"> 105 107 <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"/> 109 109 </atts> 110 110 </element> … … 216 216 <element se:name="sm:callSubModel" se:bind="element" forcefilled="true"> 217 217 <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"/> 221 219 </atts> 222 220 <childs/> … … 287 285 </atts> 288 286 </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"/> 289 345 <alternative se:bind="choice"> 290 346 <element se:name="sm:content" se:bind="element" se:card="?" opened="true" insert="collapsed"> … … 528 584 <element se:name="sm:fieldValueOtherType" se:id="nav_fieldValueOtherType" se:bind="element" forcefilled="true"> 529 585 <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"/> 533 587 <se:ref se:refid="nav_elt_field"/> 534 588 </atts> … … 541 595 <element se:name="sm:callRefModel" se:bind="element" forcefilled="true"> 542 596 <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"/> 546 598 </atts> 547 599 </element> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf.xml
r6474 r6475 77 77 </valeur> 78 78 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). --> 80 80 <affichage code="behaviorSheet"> 81 81 <urlPage type="xpath-dynamique">concat('bs.doss/', resultatAgent('//agentModel', 'codeModel'), resultatAgent('//axisTransformer'), '.xml')</urlPage> 82 82 <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"/> 104 84 </page> 105 85 106 86 <valeur code="codecomposant"> 107 87 <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:stylesheet113 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:stylesheet174 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>248 88 </valeur> 249 89
Note: See TracChangeset
for help on using the changeset viewer.