Changeset 9401

Show
Ignore:
Timestamp:
25.07.2007 22:28:40 (3 years ago)
Author:
sam
Message:

- mutualisation elts bs sm:tooltip et sm:link
- sm:link/@target='subWindow' début.

Location:
trunk
Files:
3 added
29 modified

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/es/content/xEdition/smWLink.xed.xml

    r7733 r9401  
    5050                                        <ciItem label="namedWindow"/> 
    5151                                        <ciItem label="sameWindow"/> 
     52                                        <ciItem label="subWindow"/> 
    5253                                </choiceInput> 
    5354                        </attribute> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/textXhtmlTransf/bs.xml

    r9255 r9401  
    111111                                <source type="composition-dynamique"> 
    112112                                        <c:composition xmlns:c="composition"> 
     113                                                <c:if type="xpath-statique" test="count(//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    113114                                                <c:if type="xpath-statique" test="count(//sm:tooltip) &gt; 0 or count(//sm:noteTag) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 
    114115                                                <c:boucleagents> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/textXhtmlTransf/xhtmlContent.xsl.xsl

    r9251 r9401  
    4747        > 
    4848         
     49        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     50        <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 
     51 
    4952        <xsl0:output method="xml" indent="no"/> 
    5053        <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> 
     
    231234        <xsl0:template name="uLinkTagAddTooltip"> 
    232235                <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:&quot;node&quot;,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:&quot;',sm:refItem/sm:tooltip/sm:position/sm:fixed/@baseObjectId,'&quot;,'),'')"/> 
    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 --> 
    247237                </xsl0:variable> 
    248238                <span> 
     
    275265                <xsl0:param name="vXslUrl"/> 
    276266                <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=&quot;', '+(screen.availWidth-', sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    282                         <xsl0:value-of select="si(sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    289268                </xsl0:variable> 
    290269                <xsl0:choose> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/webSiteGenerator/scDynUiMgr.js

    r9211 r9401  
    9191                        } 
    9292                } 
     93        }, 
     94        displaySubWindow: function(pUrl,pName,pOptions) { 
     95                this.xInitMgr(); 
     96                scDynUiMgr.utilities.log("scDynUiMgr.displaySubWindow("+pUrl+","+pName+","+pOptions+")"); 
    9397        } 
    9498} 
     99 
     100scDynUiMgr.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  
    4848                exclude-result-prefixes="sm sc xsl java" 
    4949                version="1.0"> 
     50 
     51        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     52 
    5053        <xsl0:output indent="no"/> 
    5154         
     
    5962                <!-- Parcours des transformers pour les inclusions --> 
    6063                <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                   )"/>                  
    6468                <xsl0:variable name="pathFillBuffer" select="concat('templatesCalled/', resultatDialogue('.../codeTemplate'), '/fillBuffers')"/> 
    6569                <!-- Parcours tous les transformer pour trouver ceux qui exploitent ce template --> 
     
    304308        <xsl0:template match="sm:WLink"> 
    305309                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    311                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    318311                </xsl0:variable> 
    319312                <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> 
    351317                        <xsl0:call-template name="classAtt"/> 
    352318                        <xsl0:call-template name="idAtt"/> 
     
    361327                        </xsl0:choose></a> 
    362328        </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"/> 
    363334 
    364335        <!-- sm:WButton ===================================================================== --> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf.xml

    r9373 r9401  
    9191                                <source type="composition-dynamique"> 
    9292                                        <c:composition xmlns:c="composition"> 
     93                                                <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    9394                                                <c:if type="xpath-statique" test="count(.//sm:WTooltip) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if>  
    9495                                                <c:boucleagents> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_binaryXhtmlTransf/widgets.xsl.xsl

    r9399 r9401  
    5454                L'insertion du contenu du widget doit se faire par : <xsl0:apply-templates mode="content"/>. 
    5555        --> 
     56 
     57        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     58        <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 
    5659         
    5760        <!-- ######### classAtt / classAttTitle : Gestion de l'attribut class="" dans les widgets. ########-->   
     
    458461        <xsl0:template match="sm:WLink" mode="content"> 
    459462                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    465                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    472464                </xsl0:variable> 
    473465                <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> 
    474470                        <xsl0:call-template name="classAtt"/> 
    475                         <xsl0:choose> 
    476                                 <xsl0:when test="$vOptions!=''"> 
    477                                         <xsl0:attribute name="href">javascript:window.open(&quot;<xsl0:apply-templates select="sm:link/*" mode="contentUrl"/>&quot;,<xsl0:choose> 
    478                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    479                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    480                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    481                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    482                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?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> 
    496471                        <xsl0:if test="count(sm:labelTitle) != 0"> 
    497472                                <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="content"/></addAttribute> 
     
    509484        <xsl0:template match="sm:WTooltip" mode="content"> 
    510485                <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:&quot;node&quot;,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:&quot;',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'&quot;,'),'')"/> 
    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 --> 
    525487                </xsl0:variable> 
    526488                <span> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf.xml

    r9255 r9401  
    9494                                        <c:composition xmlns:c="composition"> 
    9595                                                <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> 
    9697                                                <c:donnee type="xpathOnSrc-dynamique">execute(si(/descendant::sm:page[@template=codeAgent('..')]/descendant::sm:WTooltip, resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary')))</c:donnee> 
    9798                                                <c:boucleagents> 
     
    175176                                <source type="composition-dynamique"> 
    176177                                        <c:composition xmlns:c="composition"> 
    177                                                         <c:if type="xpath-statique" test="count(.//sm:WCollapsableBlock) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    178                                                         <c:if type="xpath-statique" test="count(.//sm:WTooltip) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 
     178                                                <c:if type="xpath-statique" test="count(.//sm:WCollapsableBlock) &gt; 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']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
     180                                                <c:if type="xpath-statique" test="count(.//sm:WTooltip) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 
    179181                                                <c:boucleagents> 
    180182                                                        <c:listeagents type="resultat-dynamique">agent=../calledTransfList</c:listeagents> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/widgets.xml.xsl

    r9214 r9401  
    5454                L'insertion du contenu du widget doit se faire par : <xsl0:apply-templates mode="content"/>. 
    5555        --> 
     56 
     57        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     58        <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 
    5659 
    5760        <!-- ######### classAtt,classAttTitle : Gestion de l'attribut class="" dans les widgets. ########-->     
     
    260263        <xsl0:template match="sm:WTooltip" mode="content"> 
    261264                <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:&quot;node&quot;,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:&quot;',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'&quot;,'),'')"/> 
    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 --> 
    276266                </xsl0:variable> 
    277267                <span> 
     
    312302        <xsl0:template match="sm:WLink" mode="content"> 
    313303                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    319                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    326305                </xsl0:variable> 
    327306                <a> 
    328                         <xsl0:call-template name="classAtt"/> 
    329                         <xsl0:choose> 
    330                                 <xsl0:when test="$vOptions!=''"> 
    331                                         <xsl0:attribute name="href">javascript:window.open(&quot;<xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/>&quot;,<xsl0:choose> 
    332                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    333                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    334                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    335                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    336                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?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"/> 
    350312                        <xsl0:call-template name="crossRefEntries"/> 
    351313                        <xsl0:if test="count(sm:labelTitle) != 0"> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_crossRefTableUiWidget.xml

    r9255 r9401  
    8787                <source type="composition-dynamique"> 
    8888                        <c:composition xmlns:c="composition"> 
     89                                        <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    8990                                        <c:if type="xpath-statique" test="count(.//sm:WTooltip) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if>  
    9091                                        <c:boucleagents> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_crossRefTableUiWidget/xhtmlContent.xsl.xsl

    r9364 r9401  
    4545        xmlns:java="http://xml.apache.org/xslt/java"  
    4646        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 
    4751        <xsl0:output method="xml" indent="no" omit-xml-declaration="yes" /> 
    4852        <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0" /> 
     
    160164        <xsl0:template match="sm:WLinkCaller" mode="contentTpl"> 
    161165                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    167                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    174167                </xsl0:variable> 
    175168                <a class="{@commonClass}"> 
    176                         <xsl0:choose> 
    177                                 <xsl0:when test="$vOptions!=''"> 
    178                                         <xsl0:attribute name="href">javascript:window.open(&quot;{@url}&quot;,<xsl0:choose> 
    179                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    180                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    181                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    182                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    183                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?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> 
    197173                        <xsl0:if test="count(sm:labelTitle) != 0"> 
    198174                                <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/node()" mode="contentTpl"/></addAttribute> 
     
    207183        <xsl0:template match="sm:WTooltip" mode="contentTpl"> 
    208184                <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:&quot;node&quot;,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:&quot;',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'&quot;,'),'')"/> 
    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 --> 
    223186                </xsl0:variable> 
    224187                <span class="{si(@commonClass, @commonClass, 'ttCrossRef')}_a"> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf.xml

    r9361 r9401  
    145145                                <source type="composition-dynamique"> 
    146146                                        <c:composition xmlns:c="composition"> 
     147                                                <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    147148                                                <c:boucleagents> 
    148149                                                        <c:listeagents type="resultat-dynamique">agent=../calledTransfList</c:listeagents> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf/widgets.xsl.xsl

    r9372 r9401  
    5454                L'insertion du contenu du widget doit se faire par : <xsl0:apply-templates mode="content"/>. 
    5555        --> 
     56 
     57        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
    5658         
    5759        <!-- ######### classAtt : Gestion de l'attribut class="" dans les widgets. ########-->   
     
    8183        <xsl0:template match="sm:WLink" mode="content"> 
    8284                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    88                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    9586                </xsl0:variable> 
    9687                <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> 
    9792                        <xsl0:call-template name="classAtt"/> 
    98                         <xsl0:choose> 
    99                                 <xsl0:when test="$vOptions!=''"> 
    100                                         <xsl:attribute name="href">javascript:window.open(&quot;<xsl0:apply-templates select="sm:link/*" mode="nav"/>&quot;,<xsl0:choose> 
    101                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    102                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    103                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    104                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    105                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?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> 
    11993                        <xsl0:call-template name="crossRefEntries"/> 
    12094                        <xsl0:if test="count(sm:labelTitle) != 0"> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_genericWebSiteTransf.xml

    r9288 r9401  
    9393                                <source type="composition-dynamique">                                    
    9494                                        <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> 
    9596                                                <c:donnee type="xpathOnSrc-dynamique">execute(si(/descendant::sm:page[@template=codeAgent('..')]/descendant::sm:WTooltip, resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary')))</c:donnee> 
    9697                                                <c:boucleagents> 
     
    174175                                <source type="composition-dynamique"> 
    175176                                        <c:composition xmlns:c="composition"> 
    176                                                         <c:if type="xpath-statique" test="count(.//sm:WTooltip) &gt; 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']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
     178                                                <c:if type="xpath-statique" test="count(.//sm:WTooltip) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferTooltipLibrary'))</c:donnee></c:if> 
    177179                                                <c:boucleagents> 
    178180                                                        <c:listeagents type="resultat-dynamique">agent=../calledTransfList</c:listeagents> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_genericWebSiteTransf/widgets.xml.xsl

    r9362 r9401  
    5555        --> 
    5656 
     57        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     58        <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 
     59 
    5760        <!-- ######### classAtt,classAttTitle : Gestion de l'attribut class="" dans les widgets. ########-->     
    5861        <xsl0:template name="classAtt"> 
     
    7982        <xsl0:template match="sm:WTooltip" mode="content"> 
    8083                <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:&quot;node&quot;,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:&quot;',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'&quot;,'),'')"/> 
    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 --> 
    9585                </xsl0:variable> 
    9686                <span> 
     
    128118        <xsl0:template match="sm:WLink" mode="content"> 
    129119                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    135                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    142121                </xsl0:variable> 
    143122                <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> 
    144127                        <xsl0:call-template name="classAtt"/> 
    145                         <xsl0:choose> 
    146                                 <xsl0:when test="$vOptions!=''"> 
    147                                         <xsl0:attribute name="href">javascript:window.open(&quot;<xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/>&quot;,<xsl0:choose> 
    148                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    149                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    150                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    151                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    152                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?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> 
    166128                        <xsl0:call-template name="crossRefEntries"/> 
    167129                        <xsl0:if test="count(sm:labelTitle) != 0"> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_navUiWidget.xml

    r9395 r9401  
    9292         
    9393        <!-- @API --> 
    94         <!--  
    9594        <valeur code="fillBuffers"> 
    9695                <actif type="xpath-dynamique">setEntryBuffer('checkBlock', resultatAgent('//idInDocStyle'))</actif> 
    9796                <source type="composition-dynamique"> 
    9897                        <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']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
     99        <!--                            <c:boucleagents> 
    101100                                        <c:listeagents type="resultat-dynamique">agent=//calledStylableList</c:listeagents> 
    102101                                        <c:resultat agent="fillBuffers"/>  
    103                                 </c:boucleagents> 
     102                                </c:boucleagents>        --> 
    104103                        </c:composition> 
    105104                </source> 
    106105        </valeur> 
    107          --> 
    108106          
    109107        <!-- @API --> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_navUiWidget/content.xsl.xsl

    r9394 r9401  
    4747        > 
    4848         
     49        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     50 
    4951        <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 
    5052        <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> 
     
    8284        <xsl0:template match="sm:WLink" mode="content"> 
    8385                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    89                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    9687                </xsl0:variable> 
    9788                <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> 
    9893                        <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(&quot;{resultatDialogue(string($vTargetDialog), 'act:')}&quot;,<xsl0:choose> 
    102                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    103                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    104                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    105                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    106                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?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> 
    12094                        <xsl0:if test="sm:labelTitle"> 
    12195                        <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  
    4949                exclude-result-prefixes="sm sc xsl java xhtml" 
    5050                version="1.0"> 
     51 
     52        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     53 
    5154        <xsl0:output indent="no"/> 
    5255         
     
    6063                <!-- Parcours des transformers pour les inclusions --> 
    6164                <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                   )"/>                  
    6569                <xsl0:variable name="pathFillBuffer" select="concat('templatesCalled/', resultatDialogue('.../codeTemplate'), '/fillBuffers')"/> 
    6670                <!-- Parcours tous les transformer pour trouver ceux qui exploitent ce template --> 
     
    202206        <xsl0:template match="sm:WLink"> 
    203207                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    209                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    216209                </xsl0:variable> 
    217210                <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> 
    246215                        <xsl0:call-template name="classAtt"/> 
    247216                        <xsl0:call-template name="idAtt"/> 
     
    254223                        </xsl0:choose></a> 
    255224        </xsl0:template> 
     225        <xsl0:template match="sm:fixedURL" mode="wlinkUrl"><xsl0:value-of select="@url"/></xsl0:template> 
     226        <xsl0:template match="*|text()|@*" mode="wlinkUrl"/> 
    256227 
    257228        <!-- sm:WButton ===================================================================== --> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_outlineUiWidget.xml

    r9146 r9401  
    9898         
    9999        <!-- @API --> 
    100         <!--  
    101100        <valeur code="fillBuffers"> 
    102101                <actif type="xpath-dynamique">setEntryBuffer('checkBlock', resultatAgent('//idInDocStyle'))</actif> 
    103102                <source type="composition-dynamique"> 
    104103                        <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']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
     105        <!--                            <c:boucleagents> 
    107106                                        <c:listeagents type="resultat-dynamique">agent=//calledStylableList</c:listeagents> 
    108107                                        <c:resultat agent="fillBuffers"/>  
    109                                 </c:boucleagents> 
     108                                </c:boucleagents>        --> 
    110109                        </c:composition> 
    111110                </source> 
    112111        </valeur> 
    113          --> 
    114112          
    115113        <!-- @API --> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_outlineUiWidget/content.xsl.xsl

    r9332 r9401  
    4747        exclude-result-prefixes="sm xsl xalan" 
    4848        > 
     49 
     50        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
    4951         
    5052        <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 
     
    662664                <xsl0:param name="vModeBase"/> 
    663665                <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=&quot;', '+(screen.availWidth-', sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    669                         <xsl0:value-of select="si(sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    676667                </xsl0:variable> 
    677668                <a> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_webSiteToWebSiteGenTransf.xml

    r8569 r9401  
    9999                                <source type="composition-dynamique"> 
    100100                                        <c:composition xmlns:c="composition"> 
     101                                                <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    101102<!--                                            views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 
    102103                                                  ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> 
    103 -->                                             <c:boucleagents> 
     104--> 
     105                                                <c:boucleagents> 
    104106                                                        <c:listeagents type="resultat-dynamique">agent=../calledTransfList</c:listeagents> 
    105107                                                        <c:resultat agent="fillBuffers"/>  
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_webSiteToWebSiteGenTransf/bsDescContent.xml.xsl

    r9400 r9401  
    4444        exclude-result-prefixes="sm"> 
    4545         
     46        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     47 
    4648        <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 
    4749         
     
    129131        <xsl0:template match="sm:WLink" mode="xhtml"> 
    130132                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    136                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    143134                </xsl0:variable> 
    144135                <a class="{$vPrefixClass}_{@internalClass} {@commonClass}"> 
    145                         <xsl0:choose> 
    146                                 <xsl0:when test="$vOptions!=''"> 
    147                                         <xsl0:attribute name="href">javascript:window.open(&quot;<xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/>&quot;,<xsl0:choose> 
    148                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    149                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    150                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    151                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    152                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?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> 
    166140                        <xsl0:if test="count(sm:labelTitle) != 0"> 
    167141                                <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  
    9999                                <source type="composition-dynamique"> 
    100100                                        <c:composition xmlns:c="composition"> 
     101                                                <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    101102<!--                                            views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 
    102103                                                  ->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  
    4343        xmlns:java="http://xml.apache.org/xslt/java"  
    4444        exclude-result-prefixes="sm"> 
     45 
     46        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
    4547         
    4648        <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 
    4749         
     50 
    4851        <xsl0:param name="vAgent"/> 
    4952        <xsl0:param name="vDialog"/> 
    5053         
     54 
    5155        <xsl0:variable name="vAgentModel" select="computeNodeAgent('//agentModel')"/> 
    5256        <xsl0:variable name="vAgentMeta" select="computeNodeAgent($vAgentModel/agentMeta)"/> 
     
    5559        <xsl0:variable name="vPrefixClass" select="resultatAgent('//idInDocPrefix')"/> 
    5660         
     61 
    5762        <xsl0:template match="sm:xhtmlToOdGenTransf"> 
    5863                <structure code="{resultatAgent($vAgentModel/codeModel)}{getAxisSuffix(sm:axis/@code)}" racine="//{resultatAgent($vAgentModel/qNameTagRootModel)}" 
     
    156161        <xsl0:template match="sm:WLink" mode="xhtml"> 
    157162                <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=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    163                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    170164                </xsl0:variable> 
    171165                <a class="{$vPrefixClass}_{@internalClass} {@commonClass}"> 
    172                         <xsl0:choose> 
    173                                 <xsl0:when test="$vOptions!=''"> 
    174                                         <xsl0:attribute name="href">javascript:window.open(&quot;<xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/>&quot;,<xsl0:choose> 
    175                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    176                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    177                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    178                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    179                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?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> 
    193170                        <xsl0:if test="count(sm:labelTitle) != 0"> 
    194171                                <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  
    5858        > 
    5959         
     60        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     61         
    6062        <xsl0:output method="xml" indent="no"/> 
    6163        <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> 
     
    387389        </xsl0:if> 
    388390        </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(&quot;<xsl0:apply-templates mode="jsAction"/>&quot;,&quot;<xsl0:value-of select="si(@windowName, @windowName, 'subWindow')"/>&quot;,&quot;<xsl0:value-of select="$pOptions"/>&quot;); 
     395        </xsl0:template> 
    389396        <xsl0:template match="sm:link[not(@target) or @target='sameWindow']" mode="jsAction">window.location.assign(&quot;<xsl0:apply-templates mode="jsAction"/>&quot;); 
    390397        </xsl0:template> 
    391398        <xsl0:template match="sm:link" mode="jsAction"> 
    392399                <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=&quot;', '+(screen.availWidth-', sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    398                         <xsl0:value-of select="si(sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    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 --> 
    405401                </xsl0:variable>window.open(&quot;<xsl0:apply-templates mode="jsAction"/>&quot;,<xsl0:choose> 
    406402                                        <xsl0:when test="@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntCompositionXhtmlTransf.xml

    r6203 r9401  
    142142                                <source type="composition-dynamique"> 
    143143                                        <c:composition xmlns:c="composition"> 
     144                                                <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    144145<!--                                            views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 
    145146                                                  ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitEditXhtmlTransf.xml

    r6203 r9401  
    151151                                <source type="composition-dynamique"> 
    152152                                        <c:composition xmlns:c="composition"> 
     153                                                <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    153154<!--                                            views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 
    154155                                                  ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMcqXhtmlTransf.xml

    r6203 r9401  
    151151                                <source type="composition-dynamique"> 
    152152                                        <c:composition xmlns:c="composition"> 
     153                                                <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    153154<!--                                            views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 
    154155                                                  ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee> 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_assmntUnitMlqXhtmlTransf.xml

    r6483 r9401  
    151151                                <source type="composition-dynamique"> 
    152152                                        <c:composition xmlns:c="composition"> 
     153                                                <c:if type="xpath-statique" test="count(.//sm:link[@target='subWindow']) &gt; 0"><c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary'))</c:donnee></c:if> 
    153154<!--                                            views.xhtmlContent.fillBuffers : <c:donnee type="xpath-dynamique">resultatAgent('//idInDocPrefix')</c:donnee> 
    154155                                                  ->fillBuffersChilds : <c:donnee type="resultat-dynamique">agent=../calledTransfList</c:donnee>