Changeset 9401
- Timestamp:
- 25.07.2007 22:28:40 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 29 modified
-
Wsp_Modeling/es/content/xEdition/smWLink.xed.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/textXhtmlTransf/bs.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/textXhtmlTransf/xhtmlContent.xsl.xsl (modified) (3 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/web (added)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/web/sm_WLink.xml.xsl (added)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/web/sm_WTooltip.xml.xsl (added)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/webSiteGenerator/scDynUiMgr.js (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_armoireUiTemplate/template.wm.xsl (modified) (4 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/widgets.xsl.xsl (modified) (3 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf.xml (modified) (2 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/widgets.xml.xsl (modified) (3 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_crossRefTableUiWidget.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_crossRefTableUiWidget/xhtmlContent.xsl.xsl (modified) (3 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf/widgets.xsl.xsl (modified) (2 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_genericWebSiteTransf.xml (modified) (2 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_genericWebSiteTransf/widgets.xml.xsl (modified) (3 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_navUiWidget.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_navUiWidget/content.xsl.xsl (modified) (2 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_openUiTemplate/template.wm.xsl (modified) (4 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_outlineUiWidget.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_outlineUiWidget/content.xsl.xsl (modified) (2 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_webSiteToWebSiteGenTransf.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_webSiteToWebSiteGenTransf/bsDescContent.xml.xsl (modified) (2 diffs)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_xhtmlToOdGenTransf.xml (modified) (1 diff)
-
Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_xhtmlToOdGenTransf/bsDescContent.xml.xsl (modified) (3 diffs)
-
Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/_common/sma/xhtmlTransf/common.xsl.xsl (modified) (2 diffs)
-
Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntCompositionXhtmlTransf.xml (modified) (1 diff)
-
Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitEditXhtmlTransf.xml (modified) (1 diff)
-
Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMcqXhtmlTransf.xml (modified) (1 diff)
-
Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMlqXhtmlTransf.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/es/content/xEdition/smWLink.xed.xml
r7733 r9401 50 50 <ciItem label="namedWindow"/> 51 51 <ciItem label="sameWindow"/> 52 <ciItem label="subWindow"/> 52 53 </choiceInput> 53 54 </attribute> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/textXhtmlTransf/bs.xml
r9255 r9401 111 111 <source type="composition-dynamique"> 112 112 <c:composition xmlns:c="composition"> 113 <c:if type="xpath-statique" test="count(//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 113 114 <c:if type="xpath-statique" test="count(//sm:tooltip) > 0 or count(//sm:noteTag) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 114 115 <c:boucleagents> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/textXhtmlTransf/xhtmlContent.xsl.xsl
r9251 r9401 47 47 > 48 48 49 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 50 <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 51 49 52 <xsl0:output method="xml" indent="no"/> 50 53 <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> … … 231 234 <xsl0:template name="uLinkTagAddTooltip"> 232 235 <xsl0:variable name="vOptions"> 233 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:behavior/@showDelay,concat('DELAY:',sm:refItem/sm:tooltip/sm:behavior/@showDelay,','),'')"/> 234 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:behavior/@showTime,concat('TEMP:',sm:refItem/sm:tooltip/sm:behavior/@showTime,','),'')"/> 235 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:behavior/@sticky,concat('STICKY:',sm:refItem/sm:tooltip/sm:behavior/@sticky,','),'')"/> 236 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:position/sm:relativeToCursor/@horizontal='leftOfCursor','LEFT:true,','')"/> 237 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,concat('OFFSETX:',sm:refItem/sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,','),'')"/> 238 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:position/sm:relativeToCursor/@vertical='aboveCursor','ABOVE:true,','')"/> 239 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,concat('OFFSETY:',sm:refItem/sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,','),'')"/> 240 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:position/sm:relativeToCursor/@followCursor='false','STATIC:true,','')"/> 241 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:position/sm:relativeToAnchor,concat('FIXTYPE:"node",FIX:[',si(sm:refItem/sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,sm:refItem/sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,'0'),',',si(sm:refItem/sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,sm:refItem/sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,'0'),'],'),'')"/> 242 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:position/sm:fixed/@baseObjectId,concat('FIXID:"',sm:refItem/sm:tooltip/sm:position/sm:fixed/@baseObjectId,'",'),'')"/> 243 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:position/sm:fixed/@horizontalOffset|sm:refItem/sm:tooltip/sm:position/sm:fixed/@verticalOffset,concat('FIX:[',si(sm:refItem/sm:tooltip/sm:position/sm:fixed/@horizontalOffset,sm:refItem/sm:tooltip/sm:position/sm:fixed/@horizontalOffset,'0'),',',si(sm:refItem/sm:tooltip/sm:position/sm:fixed/@verticalOffset,sm:refItem/sm:tooltip/sm:position/sm:fixed/@verticalOffset,'0'),'],'),'')"/> 244 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:dimensions/@maxWidth,concat('MAXWIDTH:',sm:refItem/sm:tooltip/sm:dimensions/@maxWidth,','),'')"/> 245 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:dimensions/@maxHeight,concat('MAXHEIGHT:',sm:refItem/sm:tooltip/sm:dimensions/@maxHeight,','),'')"/> 246 <xsl0:value-of select="si(sm:refItem/sm:tooltip/sm:shadow,'SHADOW:true,','')"/> 236 <xsl0:for-each select="sm:refItem"><xsl0:call-template name="tooltipOptions"/></xsl0:for-each><!-- Dans bsco:sm/web/sm_WTooltip.xml.xsl --> 247 237 </xsl0:variable> 248 238 <span> … … 275 265 <xsl0:param name="vXslUrl"/> 276 266 <xsl0:variable name="vOptions"> 277 <xsl0:value-of select="si(sm:position/sm:free/@width, concat('width=', sm:position/sm:free/@width, ','), '')"/> 278 <xsl0:value-of select="si(sm:position/sm:free/@height, concat('height=', sm:position/sm:free/@height, ','), '')"/> 279 <xsl0:value-of select="si(sm:position/sm:free/@top, concat('top=', sm:position/sm:free/@top, ','), '')"/> 280 <xsl0:value-of select="si(sm:position/sm:free/@left, concat('left=', sm:position/sm:free/@left, ','), '')"/> 281 <xsl0:value-of select="si(sm:position/sm:centerScreen, concat('width=', sm:position/sm:centerScreen/@width, ',height=', sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 282 <xsl0:value-of select="si(sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 283 <xsl0:value-of select="si(sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:windowFeatures/@scrollbars, ','), '')"/> 284 <xsl0:value-of select="si(sm:windowFeatures/@resizable, concat('resizable=', sm:windowFeatures/@resizable, ','), '')"/> 285 <xsl0:value-of select="si(sm:windowFeatures/@toolbar, concat('toolbar=', sm:windowFeatures/@toolbar, ','), '')"/> 286 <xsl0:value-of select="si(sm:windowFeatures/@menubar, concat('menubar=', sm:windowFeatures/@menubar, ','), '')"/> 287 <xsl0:value-of select="si(sm:windowFeatures/@location, concat('location=', sm:windowFeatures/@location, ','), '')"/> 288 <xsl0:value-of select="si(sm:windowFeatures/@extraOptions, concat(sm:windowFeatures/@extraOptions, ','), '')"/> 267 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 289 268 </xsl0:variable> 290 269 <xsl0:choose> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/webSiteGenerator/scDynUiMgr.js
r9211 r9401 91 91 } 92 92 } 93 }, 94 displaySubWindow: function(pUrl,pName,pOptions) { 95 this.xInitMgr(); 96 scDynUiMgr.utilities.log("scDynUiMgr.displaySubWindow("+pUrl+","+pName+","+pOptions+")"); 93 97 } 94 98 } 99 100 scDynUiMgr.utilities = { 101 fUndef : "undefined", 102 logError : function(pPre, pEx) { 103 var vMsg = "scDynUiMgr ERROR: "+pPre; 104 vMsg += (pEx != null) ? " - "+((typeof pEx.message != scDragMgr.utilities.fUndef) ? pEx.message : pEx) : ""; 105 if(window.console) { 106 window.console.log(vMsg); 107 } else { 108 alert(vMsg); 109 } 110 }, 111 log : function(pMsg) { 112 if(window.console) { 113 window.console.log(pMsg); 114 } 115 } 116 } -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_armoireUiTemplate/template.wm.xsl
r9141 r9401 48 48 exclude-result-prefixes="sm sc xsl java" 49 49 version="1.0"> 50 51 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 52 50 53 <xsl0:output indent="no"/> 51 54 … … 59 62 <!-- Parcours des transformers pour les inclusions --> 60 63 <xsl0:value-of select="execute( 61 initBuffer('checkBlock', java:java.util.HashSet.new()), 62 resultatAgent('//agentGenerator', 'fillBuffersPostXslFragmentXhtml:xhtml') 63 )"/> 64 initBuffer('checkBlock', java:java.util.HashSet.new()), 65 resultatAgent('//agentGenerator', 'fillBuffersPostXslFragmentXhtml:xhtml'), 66 si(.//sm:link[@target='subWindow'], resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary')) 67 )"/> 64 68 <xsl0:variable name="pathFillBuffer" select="concat('templatesCalled/', resultatDialogue('.../codeTemplate'), '/fillBuffers')"/> 65 69 <!-- Parcours tous les transformer pour trouver ceux qui exploitent ce template --> … … 304 308 <xsl0:template match="sm:WLink"> 305 309 <xsl0:variable name="vOptions"> 306 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 307 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 308 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 309 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 310 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 311 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 312 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 313 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 314 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 315 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 316 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 317 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 310 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 318 311 </xsl0:variable> 319 312 <a> 320 <xsl0:choose> 321 <xsl0:when test="$vOptions!=''"> 322 <xsl0:attribute name="href">javascript:window.open('<xsl0:choose> 323 <xsl0:when test="sm:link/sm:fixedURL"><xsl0:value-of select="sm:link/sm:fixedURL/@url"/></xsl0:when> 324 <xsl0:when test="sm:link/sm:next">$vDialog.hGetResultat('act:cdaction=GoToNext')</xsl0:when> 325 <xsl0:when test="sm:link/sm:previous">$vDialog.hGetResultat('act:cdaction=GoToPrec')</xsl0:when> 326 <xsl0:otherwise>$vGeneratorUtils.resultatDialog('/@@','act:')</xsl0:otherwise> <!-- GoToHome --> 327 </xsl0:choose>',<xsl0:choose> 328 <xsl0:when test="sm:link/@target='newWindow'">'_blank'</xsl0:when> 329 <xsl0:when test="sm:link/@target='sameWindow'">'_self'</xsl0:when> 330 <xsl0:when test="sm:link/@target='namedWindow'">'<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>'</xsl0:when> 331 <xsl0:otherwise>'_self'</xsl0:otherwise> 332 </xsl0:choose>,'<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>')?void(0):void(0)</xsl0:attribute> 333 </xsl0:when> 334 <xsl0:otherwise> 335 <xsl0:attribute name="href"><xsl0:choose> 336 <xsl0:when test="sm:link/sm:fixedURL"><xsl0:value-of select="sm:link/sm:fixedURL/@url"/></xsl0:when> 337 <xsl0:when test="sm:link/sm:next">$vDialog.hGetResultat('act:cdaction=GoToNext')</xsl0:when> 338 <xsl0:when test="sm:link/sm:previous">$vDialog.hGetResultat('act:cdaction=GoToPrec')</xsl0:when> 339 <xsl0:otherwise>$vGeneratorUtils.resultatDialog('/@@','act:')</xsl0:otherwise> <!-- GoToHome --> 340 </xsl0:choose></xsl0:attribute> 341 <xsl0:attribute name="target"> 342 <xsl0:choose> 343 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 344 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 345 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 346 <xsl0:otherwise>_self</xsl0:otherwise> 347 </xsl0:choose> 348 </xsl0:attribute> 349 </xsl0:otherwise> 350 </xsl0:choose> 313 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 314 <xsl0:with-param name="pUrl"><xsl0:apply-templates mode="wlinkUrl" select="sm:link/*"/></xsl0:with-param> 315 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 316 </xsl0:call-template> 351 317 <xsl0:call-template name="classAtt"/> 352 318 <xsl0:call-template name="idAtt"/> … … 361 327 </xsl0:choose></a> 362 328 </xsl0:template> 329 <xsl0:template match="sm:fixedURL" mode="wlinkUrl"><xsl0:value-of select="@url"/></xsl0:template> 330 <xsl0:template match="sm:next" mode="wlinkUrl">$vDialog.hGetResultat('act:cdaction=GoToNext')</xsl0:template> 331 <xsl0:template match="sm:previous" mode="wlinkUrl">$vDialog.hGetResultat('act:cdaction=GoToPrec')</xsl0:template> 332 <xsl0:template match="sm:home" mode="wlinkUrl">$vGeneratorUtils.resultatDialog('/@@','act:')</xsl0:template> 333 <xsl0:template match="*|text()|@*" mode="wlinkUrl"/> 363 334 364 335 <!-- sm:WButton ===================================================================== --> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf.xml
r9373 r9401 91 91 <source type="composition-dynamique"> 92 92 <c:composition xmlns:c="composition"> 93 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 93 94 <c:if type="xpath-statique" test="count(.//sm:WTooltip) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 94 95 <c:boucleagents> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/widgets.xsl.xsl
r9399 r9401 54 54 L'insertion du contenu du widget doit se faire par : <xsl0:apply-templates mode="content"/>. 55 55 --> 56 57 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 58 <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 56 59 57 60 <!-- ######### classAtt / classAttTitle : Gestion de l'attribut class="" dans les widgets. ########--> … … 458 461 <xsl0:template match="sm:WLink" mode="content"> 459 462 <xsl0:variable name="vOptions"> 460 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 461 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 462 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 463 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 464 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 465 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 466 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 467 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 468 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 469 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 470 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 471 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 463 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 472 464 </xsl0:variable> 473 465 <a> 466 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 467 <xsl0:with-param name="pUrl"><xsl0:apply-templates select="sm:link/*" mode="contentUrl"/></xsl0:with-param> 468 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 469 </xsl0:call-template> 474 470 <xsl0:call-template name="classAtt"/> 475 <xsl0:choose>476 <xsl0:when test="$vOptions!=''">477 <xsl0:attribute name="href">javascript:window.open("<xsl0:apply-templates select="sm:link/*" mode="contentUrl"/>",<xsl0:choose>478 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when>479 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when>480 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when>481 <xsl0:otherwise>"_self"</xsl0:otherwise>482 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl0:attribute>483 </xsl0:when>484 <xsl0:otherwise>485 <xsl0:attribute name="href"><xsl0:apply-templates select="sm:link/*" mode="contentUrl"/></xsl0:attribute>486 <xsl0:attribute name="target">487 <xsl0:choose>488 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when>489 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when>490 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when>491 <xsl0:otherwise>_self</xsl0:otherwise>492 </xsl0:choose>493 </xsl0:attribute>494 </xsl0:otherwise>495 </xsl0:choose>496 471 <xsl0:if test="count(sm:labelTitle) != 0"> 497 472 <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="content"/></addAttribute> … … 509 484 <xsl0:template match="sm:WTooltip" mode="content"> 510 485 <xsl0:variable name="vOptions"> 511 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showDelay,concat('DELAY:',sm:tooltip/sm:behavior/@showDelay,','),'')"/> 512 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showTime,concat('TEMP:',sm:tooltip/sm:behavior/@showTime,','),'')"/> 513 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@sticky,concat('STICKY:',sm:tooltip/sm:behavior/@sticky,','),'')"/> 514 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontal='leftOfCursor','LEFT:true,','')"/> 515 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,concat('OFFSETX:',sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,','),'')"/> 516 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@vertical='aboveCursor','ABOVE:true,','')"/> 517 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,concat('OFFSETY:',sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,','),'')"/> 518 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@followCursor='false','STATIC:true,','')"/> 519 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToAnchor,concat('FIXTYPE:"node",FIX:[',si(sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,'0'),'],'),'')"/> 520 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@baseObjectId,concat('FIXID:"',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'",'),'')"/> 521 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset|sm:tooltip/sm:position/sm:fixed/@verticalOffset,concat('FIX:[',si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset,sm:tooltip/sm:position/sm:fixed/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:fixed/@verticalOffset,sm:tooltip/sm:position/sm:fixed/@verticalOffset,'0'),'],'),'')"/> 522 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxWidth,concat('MAXWIDTH:',sm:tooltip/sm:dimensions/@maxWidth,','),'')"/> 523 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxHeight,concat('MAXHEIGHT:',sm:tooltip/sm:dimensions/@maxHeight,','),'')"/> 524 <xsl0:value-of select="si(sm:tooltip/sm:shadow,'SHADOW:true,','')"/> 486 <xsl0:call-template name="tooltipOptions"/><!-- Dans bsco:sm/web/sm_WTooltip.xml.xsl --> 525 487 </xsl0:variable> 526 488 <span> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf.xml
r9255 r9401 94 94 <c:composition xmlns:c="composition"> 95 95 <c:donnee type="xpathOnSrc-dynamique">execute(si(/descendant::sm:page[@template=codeAgent('..')]/descendant::sm:WCollapsableBlock, resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary')))</c:donnee> 96 <c:donnee type="xpathOnSrc-dynamique">execute(si(/descendant::sm:page[@template=codeAgent('..')]/descendant::sm:link[@target='subWindow'], resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary')))</c:donnee> 96 97 <c:donnee type="xpathOnSrc-dynamique">execute(si(/descendant::sm:page[@template=codeAgent('..')]/descendant::sm:WTooltip, resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary')))</c:donnee> 97 98 <c:boucleagents> … … 175 176 <source type="composition-dynamique"> 176 177 <c:composition xmlns:c="composition"> 177 <c:if type="xpath-statique" test="count(.//sm:WCollapsableBlock) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 178 <c:if type="xpath-statique" test="count(.//sm:WTooltip) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 178 <c:if type="xpath-statique" test="count(.//sm:WCollapsableBlock) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 179 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 180 <c:if type="xpath-statique" test="count(.//sm:WTooltip) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 179 181 <c:boucleagents> 180 182 <c:listeagents type="resultat-dynamique">agent=../calledTransfList</c:listeagents> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/widgets.xml.xsl
r9214 r9401 54 54 L'insertion du contenu du widget doit se faire par : <xsl0:apply-templates mode="content"/>. 55 55 --> 56 57 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 58 <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 56 59 57 60 <!-- ######### classAtt,classAttTitle : Gestion de l'attribut class="" dans les widgets. ########--> … … 260 263 <xsl0:template match="sm:WTooltip" mode="content"> 261 264 <xsl0:variable name="vOptions"> 262 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showDelay,concat('DELAY:',sm:tooltip/sm:behavior/@showDelay,','),'')"/> 263 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showTime,concat('TEMP:',sm:tooltip/sm:behavior/@showTime,','),'')"/> 264 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@sticky,concat('STICKY:',sm:tooltip/sm:behavior/@sticky,','),'')"/> 265 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontal='leftOfCursor','LEFT:true,','')"/> 266 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,concat('OFFSETX:',sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,','),'')"/> 267 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@vertical='aboveCursor','ABOVE:true,','')"/> 268 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,concat('OFFSETY:',sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,','),'')"/> 269 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@followCursor='false','STATIC:true,','')"/> 270 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToAnchor,concat('FIXTYPE:"node",FIX:[',si(sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,'0'),'],'),'')"/> 271 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@baseObjectId,concat('FIXID:"',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'",'),'')"/> 272 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset|sm:tooltip/sm:position/sm:fixed/@verticalOffset,concat('FIX:[',si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset,sm:tooltip/sm:position/sm:fixed/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:fixed/@verticalOffset,sm:tooltip/sm:position/sm:fixed/@verticalOffset,'0'),'],'),'')"/> 273 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxWidth,concat('MAXWIDTH:',sm:tooltip/sm:dimensions/@maxWidth,','),'')"/> 274 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxHeight,concat('MAXHEIGHT:',sm:tooltip/sm:dimensions/@maxHeight,','),'')"/> 275 <xsl0:value-of select="si(sm:tooltip/sm:shadow,'SHADOW:true,','')"/> 265 <xsl0:call-template name="tooltipOptions"/><!-- Dans bsco:sm/web/sm_WTooltip.xml.xsl --> 276 266 </xsl0:variable> 277 267 <span> … … 312 302 <xsl0:template match="sm:WLink" mode="content"> 313 303 <xsl0:variable name="vOptions"> 314 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 315 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 316 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 317 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 318 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 319 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 320 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 321 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 322 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 323 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 324 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 325 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 304 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 326 305 </xsl0:variable> 327 306 <a> 328 <xsl0:call-template name="classAtt"/> 329 <xsl0:choose> 330 <xsl0:when test="$vOptions!=''"> 331 <xsl0:attribute name="href">javascript:window.open("<xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/>",<xsl0:choose> 332 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when> 333 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when> 334 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when> 335 <xsl0:otherwise>"_self"</xsl0:otherwise> 336 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl0:attribute> 337 </xsl0:when> 338 <xsl0:otherwise> 339 <xsl0:attribute name="href"><xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/></xsl0:attribute> 340 <xsl0:attribute name="target"> 341 <xsl0:choose> 342 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 343 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 344 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 345 <xsl0:otherwise>_self</xsl0:otherwise> 346 </xsl0:choose> 347 </xsl0:attribute> 348 </xsl0:otherwise> 349 </xsl0:choose> 307 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 308 <xsl0:with-param name="pUrl"><xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/></xsl0:with-param> 309 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 310 </xsl0:call-template> 311 <xsl0:call-template name="classAtt"/> 350 312 <xsl0:call-template name="crossRefEntries"/> 351 313 <xsl0:if test="count(sm:labelTitle) != 0"> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_crossRefTableUiWidget.xml
r9255 r9401 87 87 <source type="composition-dynamique"> 88 88 <c:composition xmlns:c="composition"> 89 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 89 90 <c:if type="xpath-statique" test="count(.//sm:WTooltip) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 90 91 <c:boucleagents> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_crossRefTableUiWidget/xhtmlContent.xsl.xsl
r9364 r9401 45 45 xmlns:java="http://xml.apache.org/xslt/java" 46 46 exclude-result-prefixes="sm" version="1.0"> 47 48 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 49 <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 50 47 51 <xsl0:output method="xml" indent="no" omit-xml-declaration="yes" /> 48 52 <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0" /> … … 160 164 <xsl0:template match="sm:WLinkCaller" mode="contentTpl"> 161 165 <xsl0:variable name="vOptions"> 162 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 163 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 164 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 165 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 166 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 167 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 168 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 169 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 170 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 171 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 172 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 173 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 166 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 174 167 </xsl0:variable> 175 168 <a class="{@commonClass}"> 176 <xsl0:choose> 177 <xsl0:when test="$vOptions!=''"> 178 <xsl0:attribute name="href">javascript:window.open("{@url}",<xsl0:choose> 179 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when> 180 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when> 181 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when> 182 <xsl0:otherwise>"_self"</xsl0:otherwise> 183 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl0:attribute> 184 </xsl0:when> 185 <xsl0:otherwise> 186 <xsl0:attribute name="href">{@url}</xsl0:attribute> 187 <xsl0:attribute name="target"> 188 <xsl0:choose> 189 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 190 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 191 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 192 <xsl0:otherwise>_self</xsl0:otherwise> 193 </xsl0:choose> 194 </xsl0:attribute> 195 </xsl0:otherwise> 196 </xsl0:choose> 169 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 170 <xsl0:with-param name="pUrl">{@url}</xsl0:with-param> 171 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 172 </xsl0:call-template> 197 173 <xsl0:if test="count(sm:labelTitle) != 0"> 198 174 <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/node()" mode="contentTpl"/></addAttribute> … … 207 183 <xsl0:template match="sm:WTooltip" mode="contentTpl"> 208 184 <xsl0:variable name="vOptions"> 209 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showDelay,concat('DELAY:',sm:tooltip/sm:behavior/@showDelay,','),'')"/> 210 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showTime,concat('TEMP:',sm:tooltip/sm:behavior/@showTime,','),'')"/> 211 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@sticky,concat('STICKY:',sm:tooltip/sm:behavior/@sticky,','),'')"/> 212 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontal='leftOfCursor','LEFT:true,','')"/> 213 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,concat('OFFSETX:',sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,','),'')"/> 214 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@vertical='aboveCursor','ABOVE:true,','')"/> 215 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,concat('OFFSETY:',sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,','),'')"/> 216 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@followCursor='false','STATIC:true,','')"/> 217 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToAnchor,concat('FIXTYPE:"node",FIX:[',si(sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,'0'),'],'),'')"/> 218 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@baseObjectId,concat('FIXID:"',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'",'),'')"/> 219 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset|sm:tooltip/sm:position/sm:fixed/@verticalOffset,concat('FIX:[',si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset,sm:tooltip/sm:position/sm:fixed/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:fixed/@verticalOffset,sm:tooltip/sm:position/sm:fixed/@verticalOffset,'0'),'],'),'')"/> 220 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxWidth,concat('MAXWIDTH:',sm:tooltip/sm:dimensions/@maxWidth,','),'')"/> 221 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxHeight,concat('MAXHEIGHT:',sm:tooltip/sm:dimensions/@maxHeight,','),'')"/> 222 <xsl0:value-of select="si(sm:tooltip/sm:shadow,'SHADOW:true,','')"/> 185 <xsl0:call-template name="tooltipOptions"/><!-- Dans bsco:sm/web/sm_WTooltip.xml.xsl --> 223 186 </xsl0:variable> 224 187 <span class="{si(@commonClass, @commonClass, 'ttCrossRef')}_a"> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf.xml
r9361 r9401 145 145 <source type="composition-dynamique"> 146 146 <c:composition xmlns:c="composition"> 147 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 147 148 <c:boucleagents> 148 149 <c:listeagents type="resultat-dynamique">agent=../calledTransfList</c:listeagents> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf/widgets.xsl.xsl
r9372 r9401 54 54 L'insertion du contenu du widget doit se faire par : <xsl0:apply-templates mode="content"/>. 55 55 --> 56 57 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 56 58 57 59 <!-- ######### classAtt : Gestion de l'attribut class="" dans les widgets. ########--> … … 81 83 <xsl0:template match="sm:WLink" mode="content"> 82 84 <xsl0:variable name="vOptions"> 83 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 84 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 85 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 86 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 87 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 88 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 89 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 90 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 91 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 92 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 93 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 94 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 85 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 95 86 </xsl0:variable> 96 87 <a> 88 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 89 <xsl0:with-param name="pUrl"><xsl0:apply-templates select="sm:link/*" mode="nav"/></xsl0:with-param> 90 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 91 </xsl0:call-template> 97 92 <xsl0:call-template name="classAtt"/> 98 <xsl0:choose>99 <xsl0:when test="$vOptions!=''">100 <xsl:attribute name="href">javascript:window.open("<xsl0:apply-templates select="sm:link/*" mode="nav"/>",<xsl0:choose>101 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when>102 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when>103 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when>104 <xsl0:otherwise>"_self"</xsl0:otherwise>105 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl:attribute>106 </xsl0:when>107 <xsl0:otherwise>108 <xsl:attribute name="href"><xsl0:apply-templates select="sm:link/*" mode="nav"/></xsl:attribute>109 <xsl:attribute name="target">110 <xsl0:choose>111 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when>112 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when>113 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when>114 <xsl0:otherwise>_self</xsl0:otherwise>115 </xsl0:choose>116 </xsl:attribute>117 </xsl0:otherwise>118 </xsl0:choose>119 93 <xsl0:call-template name="crossRefEntries"/> 120 94 <xsl0:if test="count(sm:labelTitle) != 0"> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_genericWebSiteTransf.xml
r9288 r9401 93 93 <source type="composition-dynamique"> 94 94 <c:composition xmlns:c="composition"> 95 <c:donnee type="xpathOnSrc-dynamique">execute(si(/descendant::sm:page[@template=codeAgent('..')]/descendant::sm:link[@target='subWindow'], resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary')))</c:donnee> 95 96 <c:donnee type="xpathOnSrc-dynamique">execute(si(/descendant::sm:page[@template=codeAgent('..')]/descendant::sm:WTooltip, resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary')))</c:donnee> 96 97 <c:boucleagents> … … 174 175 <source type="composition-dynamique"> 175 176 <c:composition xmlns:c="composition"> 176 <c:if type="xpath-statique" test="count(.//sm:WTooltip) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 177 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 178 <c:if type="xpath-statique" test="count(.//sm:WTooltip) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 177 179 <c:boucleagents> 178 180 <c:listeagents type="resultat-dynamique">agent=../calledTransfList</c:listeagents> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_genericWebSiteTransf/widgets.xml.xsl
r9362 r9401 55 55 --> 56 56 57 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 58 <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 59 57 60 <!-- ######### classAtt,classAttTitle : Gestion de l'attribut class="" dans les widgets. ########--> 58 61 <xsl0:template name="classAtt"> … … 79 82 <xsl0:template match="sm:WTooltip" mode="content"> 80 83 <xsl0:variable name="vOptions"> 81 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showDelay,concat('DELAY:',sm:tooltip/sm:behavior/@showDelay,','),'')"/> 82 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showTime,concat('TEMP:',sm:tooltip/sm:behavior/@showTime,','),'')"/> 83 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@sticky,concat('STICKY:',sm:tooltip/sm:behavior/@sticky,','),'')"/> 84 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontal='leftOfCursor','LEFT:true,','')"/> 85 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,concat('OFFSETX:',sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,','),'')"/> 86 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@vertical='aboveCursor','ABOVE:true,','')"/> 87 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,concat('OFFSETY:',sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,','),'')"/> 88 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@followCursor='false','STATIC:true,','')"/> 89 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToAnchor,concat('FIXTYPE:"node",FIX:[',si(sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,'0'),'],'),'')"/> 90 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@baseObjectId,concat('FIXID:"',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'",'),'')"/> 91 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset|sm:tooltip/sm:position/sm:fixed/@verticalOffset,concat('FIX:[',si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset,sm:tooltip/sm:position/sm:fixed/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:fixed/@verticalOffset,sm:tooltip/sm:position/sm:fixed/@verticalOffset,'0'),'],'),'')"/> 92 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxWidth,concat('MAXWIDTH:',sm:tooltip/sm:dimensions/@maxWidth,','),'')"/> 93 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxHeight,concat('MAXHEIGHT:',sm:tooltip/sm:dimensions/@maxHeight,','),'')"/> 94 <xsl0:value-of select="si(sm:tooltip/sm:shadow,'SHADOW:true,','')"/> 84 <xsl0:call-template name="tooltipOptions"/><!-- Dans bsco:sm/web/sm_WTooltip.xml.xsl --> 95 85 </xsl0:variable> 96 86 <span> … … 128 118 <xsl0:template match="sm:WLink" mode="content"> 129 119 <xsl0:variable name="vOptions"> 130 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 131 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 132 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 133 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 134 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 135 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 136 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 137 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 138 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 139 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 140 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 141 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 120 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 142 121 </xsl0:variable> 143 122 <a> 123 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 124 <xsl0:with-param name="pUrl"><xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/></xsl0:with-param> 125 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 126 </xsl0:call-template> 144 127 <xsl0:call-template name="classAtt"/> 145 <xsl0:choose>146 <xsl0:when test="$vOptions!=''">147 <xsl0:attribute name="href">javascript:window.open("<xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/>",<xsl0:choose>148 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when>149 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when>150 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when>151 <xsl0:otherwise>"_self"</xsl0:otherwise>152 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl0:attribute>153 </xsl0:when>154 <xsl0:otherwise>155 <xsl0:attribute name="href"><xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/></xsl0:attribute>156 <xsl0:attribute name="target">157 <xsl0:choose>158 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when>159 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when>160 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when>161 <xsl0:otherwise>_self</xsl0:otherwise>162 </xsl0:choose>163 </xsl0:attribute>164 </xsl0:otherwise>165 </xsl0:choose>166 128 <xsl0:call-template name="crossRefEntries"/> 167 129 <xsl0:if test="count(sm:labelTitle) != 0"> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_navUiWidget.xml
r9395 r9401 92 92 93 93 <!-- @API --> 94 <!--95 94 <valeur code="fillBuffers"> 96 95 <actif type="xpath-dynamique">setEntryBuffer('checkBlock', resultatAgent('//idInDocStyle'))</actif> 97 96 <source type="composition-dynamique"> 98 97 <c:composition xmlns:c="composition"> 99 <c: donnee type="xpathOnSrc-dynamique">execute(concatExpr(sm:fillTemplateBuffers/sm:standardLibrary, resultatAgent('//agentGenerator', concat('fillBuffer', @codeLib, 'Library'))))</c:donnee>100 <c:boucleagents>98 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 99 <!-- <c:boucleagents> 101 100 <c:listeagents type="resultat-dynamique">agent=//calledStylableList</c:listeagents> 102 101 <c:resultat agent="fillBuffers"/> 103 </c:boucleagents> 102 </c:boucleagents> --> 104 103 </c:composition> 105 104 </source> 106 105 </valeur> 107 -->108 106 109 107 <!-- @API --> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_navUiWidget/content.xsl.xsl
r9394 r9401 47 47 > 48 48 49 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 50 49 51 <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 50 52 <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> … … 82 84 <xsl0:template match="sm:WLink" mode="content"> 83 85 <xsl0:variable name="vOptions"> 84 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 85 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 86 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 87 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 88 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 89 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 90 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 91 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 92 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 93 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 94 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 95 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 86 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 96 87 </xsl0:variable> 97 88 <a> 89 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 90 <xsl0:with-param name="pUrl">{resultatDialogue(string($vTargetDialog), 'act:')}</xsl0:with-param> 91 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 92 </xsl0:call-template> 98 93 <xsl0:if test="@commonClass"><xsl0:attribute name="class"><xsl0:value-of select="@commonClass"/></xsl0:attribute></xsl0:if> 99 <xsl0:choose>100 <xsl0:when test="$vOptions!=''">101 <xsl0:attribute name="href">javascript:window.open("{resultatDialogue(string($vTargetDialog), 'act:')}",<xsl0:choose>102 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when>103 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when>104 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when>105 <xsl0:otherwise>"_self"</xsl0:otherwise>106 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl0:attribute>107 </xsl0:when>108 <xsl0:otherwise>109 <xsl0:attribute name="href">{resultatDialogue(string($vTargetDialog), 'act:')}</xsl0:attribute>110 <xsl0:attribute name="target">111 <xsl0:choose>112 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when>113 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when>114 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when>115 <xsl0:otherwise>_self</xsl0:otherwise>116 </xsl0:choose>117 </xsl0:attribute>118 </xsl0:otherwise>119 </xsl0:choose>120 94 <xsl0:if test="sm:labelTitle"> 121 95 <xsl:attribute name="title"><xsl0:apply-templates select="sm:labelTitle/node()" mode="content"/></xsl:attribute> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_openUiTemplate/template.wm.xsl
r9247 r9401 49 49 exclude-result-prefixes="sm sc xsl java xhtml" 50 50 version="1.0"> 51 52 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 53 51 54 <xsl0:output indent="no"/> 52 55 … … 60 63 <!-- Parcours des transformers pour les inclusions --> 61 64 <xsl0:value-of select="execute( 62 initBuffer('checkBlock', java:java.util.HashSet.new()), 63 resultatAgent('//agentGenerator', 'fillBuffersPostXslFragmentXhtml:xhtml') 64 )"/> 65 initBuffer('checkBlock', java:java.util.HashSet.new()), 66 resultatAgent('//agentGenerator', 'fillBuffersPostXslFragmentXhtml:xhtml'), 67 si(.//sm:link[@target='subWindow'], resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary')) 68 )"/> 65 69 <xsl0:variable name="pathFillBuffer" select="concat('templatesCalled/', resultatDialogue('.../codeTemplate'), '/fillBuffers')"/> 66 70 <!-- Parcours tous les transformer pour trouver ceux qui exploitent ce template --> … … 202 206 <xsl0:template match="sm:WLink"> 203 207 <xsl0:variable name="vOptions"> 204 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 205 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 206 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 207 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 208 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 209 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 210 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 211 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 212 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 213 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 214 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 215 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 208 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 216 209 </xsl0:variable> 217 210 <a> 218 <xsl0:choose> 219 <xsl0:when test="$vOptions!=''"> 220 <xsl0:attribute name="href">javascript:window.open('<xsl0:choose> 221 <xsl0:when test="sm:link/sm:fixedURL"><xsl0:value-of select="sm:link/sm:fixedURL/@url"/></xsl0:when> 222 </xsl0:choose>',<xsl0:choose> 223 <xsl0:when test="sm:link/@target='newWindow'">'_blank'</xsl0:when> 224 <xsl0:when test="sm:link/@target='sameWindow'">'_self'</xsl0:when> 225 <xsl0:when test="sm:link/@target='namedWindow'">'<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>'</xsl0:when> 226 <xsl0:otherwise>'_self'</xsl0:otherwise> 227 </xsl0:choose>,'<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>')?void(0):void(0)</xsl0:attribute> 228 </xsl0:when> 229 <xsl0:otherwise> 230 <xsl0:attribute name="href"><xsl0:choose> 231 <xsl0:when test="sm:link/sm:fixedURL"><xsl0:value-of select="sm:link/sm:fixedURL/@url"/></xsl0:when> 232 <xsl0:when test="sm:link/sm:next">$vDialog.hGetResultat('act:cdaction=GoToNext')</xsl0:when> 233 <xsl0:when test="sm:link/sm:previous">$vDialog.hGetResultat('act:cdaction=GoToPrec')</xsl0:when> 234 <xsl0:otherwise>$vGeneratorUtils.resultatDialog('/@@','act:')</xsl0:otherwise> <!-- GoToHome --> 235 </xsl0:choose></xsl0:attribute> 236 <xsl0:attribute name="target"> 237 <xsl0:choose> 238 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 239 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 240 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 241 <xsl0:otherwise>_self</xsl0:otherwise> 242 </xsl0:choose> 243 </xsl0:attribute> 244 </xsl0:otherwise> 245 </xsl0:choose> 211 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 212 <xsl0:with-param name="pUrl"><xsl0:apply-templates mode="wlinkUrl" select="sm:link/*"/></xsl0:with-param> 213 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 214 </xsl0:call-template> 246 215 <xsl0:call-template name="classAtt"/> 247 216 <xsl0:call-template name="idAtt"/> … … 254 223 </xsl0:choose></a> 255 224 </xsl0:template> 225 <xsl0:template match="sm:fixedURL" mode="wlinkUrl"><xsl0:value-of select="@url"/></xsl0:template> 226 <xsl0:template match="*|text()|@*" mode="wlinkUrl"/> 256 227 257 228 <!-- sm:WButton ===================================================================== --> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_outlineUiWidget.xml
r9146 r9401 98 98 99 99 <!-- @API --> 100 <!--101 100 <valeur code="fillBuffers"> 102 101 <actif type="xpath-dynamique">setEntryBuffer('checkBlock', resultatAgent('//idInDocStyle'))</actif> 103 102 <source type="composition-dynamique"> 104 103 <c:composition xmlns:c="composition"> 105 <c: donnee type="xpathOnSrc-dynamique">execute(concatExpr(sm:fillTemplateBuffers/sm:standardLibrary, resultatAgent('//agentGenerator', concat('fillBuffer', @codeLib, 'Library'))))</c:donnee>106 <c:boucleagents>104 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 105 <!-- <c:boucleagents> 107 106 <c:listeagents type="resultat-dynamique">agent=//calledStylableList</c:listeagents> 108 107 <c:resultat agent="fillBuffers"/> 109 </c:boucleagents> 108 </c:boucleagents> --> 110 109 </c:composition> 111 110 </source> 112 111 </valeur> 113 -->114 112 115 113 <!-- @API --> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_outlineUiWidget/content.xsl.xsl
r9332 r9401 47 47 exclude-result-prefixes="sm xsl xalan" 48 48 > 49 50 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 49 51 50 52 <xsl0:output method="xml" encoding="UTF-8" indent="no"/> … … 662 664 <xsl0:param name="vModeBase"/> 663 665 <xsl0:variable name="vOptions"> 664 <xsl0:value-of select="si(sm:position/sm:free/@width, concat('width=', sm:position/sm:free/@width, ','), '')"/> 665 <xsl0:value-of select="si(sm:position/sm:free/@height, concat('height=', sm:position/sm:free/@height, ','), '')"/> 666 <xsl0:value-of select="si(sm:position/sm:free/@top, concat('top=', sm:position/sm:free/@top, ','), '')"/> 667 <xsl0:value-of select="si(sm:position/sm:free/@left, concat('left=', sm:position/sm:free/@left, ','), '')"/> 668 <xsl0:value-of select="si(sm:position/sm:centerScreen, concat('width=', sm:position/sm:centerScreen/@width, ',height=', sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 669 <xsl0:value-of select="si(sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 670 <xsl0:value-of select="si(sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:windowFeatures/@scrollbars, ','), '')"/> 671 <xsl0:value-of select="si(sm:windowFeatures/@resizable, concat('resizable=', sm:windowFeatures/@resizable, ','), '')"/> 672 <xsl0:value-of select="si(sm:windowFeatures/@toolbar, concat('toolbar=', sm:windowFeatures/@toolbar, ','), '')"/> 673 <xsl0:value-of select="si(sm:windowFeatures/@menubar, concat('menubar=', sm:windowFeatures/@menubar, ','), '')"/> 674 <xsl0:value-of select="si(sm:windowFeatures/@location, concat('location=', sm:windowFeatures/@location, ','), '')"/> 675 <xsl0:value-of select="si(sm:windowFeatures/@extraOptions, concat(sm:windowFeatures/@extraOptions, ','), '')"/> 666 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 676 667 </xsl0:variable> 677 668 <a> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_webSiteToWebSiteGenTransf.xml
r8569 r9401 99 99 <source type="composition-dynamique"> 100 100 <c:composition xmlns:c="composition"> 101 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 101 102 <!-- views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 102 103 ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> 103 --> <c:boucleagents> 104 --> 105 <c:boucleagents> 104 106 <c:listeagents type="resultat-dynamique">agent=../calledTransfList</c:listeagents> 105 107 <c:resultat agent="fillBuffers"/> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_webSiteToWebSiteGenTransf/bsDescContent.xml.xsl
r9400 r9401 44 44 exclude-result-prefixes="sm"> 45 45 46 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 47 46 48 <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 47 49 … … 129 131 <xsl0:template match="sm:WLink" mode="xhtml"> 130 132 <xsl0:variable name="vOptions"> 131 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 132 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 133 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 134 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 135 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 136 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 137 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 138 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 139 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 140 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 141 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 142 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 133 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 143 134 </xsl0:variable> 144 135 <a class="{$vPrefixClass}_{@internalClass} {@commonClass}"> 145 <xsl0:choose> 146 <xsl0:when test="$vOptions!=''"> 147 <xsl0:attribute name="href">javascript:window.open("<xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/>",<xsl0:choose> 148 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when> 149 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when> 150 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when> 151 <xsl0:otherwise>"_self"</xsl0:otherwise> 152 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl0:attribute> 153 </xsl0:when> 154 <xsl0:otherwise> 155 <xsl0:attribute name="href"><xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/></xsl0:attribute> 156 <xsl0:attribute name="target"> 157 <xsl0:choose> 158 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 159 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 160 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 161 <xsl0:otherwise>_self</xsl0:otherwise> 162 </xsl0:choose> 163 </xsl0:attribute> 164 </xsl0:otherwise> 165 </xsl0:choose> 136 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 137 <xsl0:with-param name="pUrl"><xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/></xsl0:with-param> 138 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 139 </xsl0:call-template> 166 140 <xsl0:if test="count(sm:labelTitle) != 0"> 167 141 <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="xhtml"/></addAttribute> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_xhtmlToOdGenTransf.xml
r8569 r9401 99 99 <source type="composition-dynamique"> 100 100 <c:composition xmlns:c="composition"> 101 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 101 102 <!-- views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 102 103 ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_xhtmlToOdGenTransf/bsDescContent.xml.xsl
r8599 r9401 43 43 xmlns:java="http://xml.apache.org/xslt/java" 44 44 exclude-result-prefixes="sm"> 45 46 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 45 47 46 48 <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 47 49 50 48 51 <xsl0:param name="vAgent"/> 49 52 <xsl0:param name="vDialog"/> 50 53 54 51 55 <xsl0:variable name="vAgentModel" select="computeNodeAgent('//agentModel')"/> 52 56 <xsl0:variable name="vAgentMeta" select="computeNodeAgent($vAgentModel/agentMeta)"/> … … 55 59 <xsl0:variable name="vPrefixClass" select="resultatAgent('//idInDocPrefix')"/> 56 60 61 57 62 <xsl0:template match="sm:xhtmlToOdGenTransf"> 58 63 <structure code="{resultatAgent($vAgentModel/codeModel)}{getAxisSuffix(sm:axis/@code)}" racine="//{resultatAgent($vAgentModel/qNameTagRootModel)}" … … 156 161 <xsl0:template match="sm:WLink" mode="xhtml"> 157 162 <xsl0:variable name="vOptions"> 158 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 159 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 160 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 161 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 162 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 163 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 164 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 165 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 166 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 167 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 168 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 169 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 163 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 170 164 </xsl0:variable> 171 165 <a class="{$vPrefixClass}_{@internalClass} {@commonClass}"> 172 <xsl0:choose> 173 <xsl0:when test="$vOptions!=''"> 174 <xsl0:attribute name="href">javascript:window.open("<xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/>",<xsl0:choose> 175 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when> 176 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when> 177 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when> 178 <xsl0:otherwise>"_self"</xsl0:otherwise> 179 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl0:attribute> 180 </xsl0:when> 181 <xsl0:otherwise> 182 <xsl0:attribute name="href"><xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/></xsl0:attribute> 183 <xsl0:attribute name="target"> 184 <xsl0:choose> 185 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 186 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 187 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 188 <xsl0:otherwise>_self</xsl0:otherwise> 189 </xsl0:choose> 190 </xsl0:attribute> 191 </xsl0:otherwise> 192 </xsl0:choose> 166 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 167 <xsl0:with-param name="pUrl"><xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/></xsl0:with-param> 168 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 169 </xsl0:call-template> 193 170 <xsl0:if test="count(sm:labelTitle) != 0"> 194 171 <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="xhtml"/></addAttribute> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/_common/sma/xhtmlTransf/common.xsl.xsl
r9104 r9401 58 58 > 59 59 60 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 61 60 62 <xsl0:output method="xml" indent="no"/> 61 63 <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> … … 387 389 </xsl0:if> 388 390 </xsl0:template> 391 <xsl0:template match="sm:link[@target='subWindow']" mode="jsAction"> 392 <xsl0:variable name="vOptions"> 393 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 394 </xsl0:variable>scDynUiMgr.displaySubWindow("<xsl0:apply-templates mode="jsAction"/>","<xsl0:value-of select="si(@windowName, @windowName, 'subWindow')"/>","<xsl0:value-of select="$pOptions"/>"); 395 </xsl0:template> 389 396 <xsl0:template match="sm:link[not(@target) or @target='sameWindow']" mode="jsAction">window.location.assign("<xsl0:apply-templates mode="jsAction"/>"); 390 397 </xsl0:template> 391 398 <xsl0:template match="sm:link" mode="jsAction"> 392 399 <xsl0:variable name="vOptions"> 393 <xsl0:value-of select="si(sm:position/sm:free/@width, concat('width=', sm:position/sm:free/@width, ','), '')"/> 394 <xsl0:value-of select="si(sm:position/sm:free/@height, concat('height=', sm:position/sm:free/@height, ','), '')"/> 395 <xsl0:value-of select="si(sm:position/sm:free/@top, concat('top=', sm:position/sm:free/@top, ','), '')"/> 396 <xsl0:value-of select="si(sm:position/sm:free/@left, concat('left=', sm:position/sm:free/@left, ','), '')"/> 397 <xsl0:value-of select="si(sm:position/sm:centerScreen, concat('width=', sm:position/sm:centerScreen/@width, ',height=', sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 398 <xsl0:value-of select="si(sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 399 <xsl0:value-of select="si(sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:windowFeatures/@scrollbars, ','), '')"/> 400 <xsl0:value-of select="si(sm:windowFeatures/@resizable, concat('resizable=', sm:windowFeatures/@resizable, ','), '')"/> 401 <xsl0:value-of select="si(sm:windowFeatures/@toolbar, concat('toolbar=', sm:windowFeatures/@toolbar, ','), '')"/> 402 <xsl0:value-of select="si(sm:windowFeatures/@menubar, concat('menubar=', sm:windowFeatures/@menubar, ','), '')"/> 403 <xsl0:value-of select="si(sm:windowFeatures/@location, concat('location=', sm:windowFeatures/@location, ','), '')"/> 404 <xsl0:value-of select="si(sm:windowFeatures/@extraOptions, concat(sm:windowFeatures/@extraOptions, ','), '')"/> 400 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 405 401 </xsl0:variable>window.open("<xsl0:apply-templates mode="jsAction"/>",<xsl0:choose> 406 402 <xsl0:when test="@target='newWindow'">"_blank"</xsl0:when> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntCompositionXhtmlTransf.xml
r6203 r9401 142 142 <source type="composition-dynamique"> 143 143 <c:composition xmlns:c="composition"> 144 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 144 145 <!-- views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 145 146 ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitEditXhtmlTransf.xml
r6203 r9401 151 151 <source type="composition-dynamique"> 152 152 <c:composition xmlns:c="composition"> 153 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 153 154 <!-- views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 154 155 ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMcqXhtmlTransf.xml
r6203 r9401 151 151 <source type="composition-dynamique"> 152 152 <c:composition xmlns:c="composition"> 153 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 153 154 <!-- views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 154 155 ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMlqXhtmlTransf.xml
r6483 r9401 151 151 <source type="composition-dynamique"> 152 152 <c:composition xmlns:c="composition"> 153 <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) > 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 153 154 <!-- views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 154 155 ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee>