Changeset 9401 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf/widgets.xsl.xsl
- Timestamp:
- 07/25/07 22:28:40 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf/widgets.xsl.xsl
r9372 r9401 54 54 L'insertion du contenu du widget doit se faire par : <xsl0:apply-templates mode="content"/>. 55 55 --> 56 57 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 56 58 57 59 <!-- ######### classAtt : Gestion de l'attribut class="" dans les widgets. ########--> … … 81 83 <xsl0:template match="sm:WLink" mode="content"> 82 84 <xsl0:variable name="vOptions"> 83 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 84 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 85 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 86 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 87 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 88 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 89 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 90 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 91 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 92 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 93 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 94 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 85 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 95 86 </xsl0:variable> 96 87 <a> 88 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 89 <xsl0:with-param name="pUrl"><xsl0:apply-templates select="sm:link/*" mode="nav"/></xsl0:with-param> 90 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 91 </xsl0:call-template> 97 92 <xsl0:call-template name="classAtt"/> 98 <xsl0:choose>99 <xsl0:when test="$vOptions!=''">100 <xsl:attribute name="href">javascript:window.open("<xsl0:apply-templates select="sm:link/*" mode="nav"/>",<xsl0:choose>101 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when>102 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when>103 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when>104 <xsl0:otherwise>"_self"</xsl0:otherwise>105 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl:attribute>106 </xsl0:when>107 <xsl0:otherwise>108 <xsl:attribute name="href"><xsl0:apply-templates select="sm:link/*" mode="nav"/></xsl:attribute>109 <xsl:attribute name="target">110 <xsl0:choose>111 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when>112 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when>113 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when>114 <xsl0:otherwise>_self</xsl0:otherwise>115 </xsl0:choose>116 </xsl:attribute>117 </xsl0:otherwise>118 </xsl0:choose>119 93 <xsl0:call-template name="crossRefEntries"/> 120 94 <xsl0:if test="count(sm:labelTitle) != 0">
Note: See TracChangeset
for help on using the changeset viewer.