Ignore:
Timestamp:
07/25/07 22:28:40 (5 years ago)
Author:
sam
Message:
  • mutualisation elts bs sm:tooltip et sm:link
  • sm:link/@target='subWindow' début.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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> 
Note: See TracChangeset for help on using the changeset viewer.