Changeset 9401 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_crossRefTableUiWidget/xhtmlContent.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_crossRefTableUiWidget/xhtmlContent.xsl.xsl
r9364 r9401 45 45 xmlns:java="http://xml.apache.org/xslt/java" 46 46 exclude-result-prefixes="sm" version="1.0"> 47 48 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 49 <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 50 47 51 <xsl0:output method="xml" indent="no" omit-xml-declaration="yes" /> 48 52 <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0" /> … … 160 164 <xsl0:template match="sm:WLinkCaller" mode="contentTpl"> 161 165 <xsl0:variable name="vOptions"> 162 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 163 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 164 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 165 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 166 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 167 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 168 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 169 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 170 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 171 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 172 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 173 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 166 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 174 167 </xsl0:variable> 175 168 <a class="{@commonClass}"> 176 <xsl0:choose> 177 <xsl0:when test="$vOptions!=''"> 178 <xsl0:attribute name="href">javascript:window.open("{@url}",<xsl0:choose> 179 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when> 180 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when> 181 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when> 182 <xsl0:otherwise>"_self"</xsl0:otherwise> 183 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?void(0):void(0)</xsl0:attribute> 184 </xsl0:when> 185 <xsl0:otherwise> 186 <xsl0:attribute name="href">{@url}</xsl0:attribute> 187 <xsl0:attribute name="target"> 188 <xsl0:choose> 189 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 190 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 191 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 192 <xsl0:otherwise>_self</xsl0:otherwise> 193 </xsl0:choose> 194 </xsl0:attribute> 195 </xsl0:otherwise> 196 </xsl0:choose> 169 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 170 <xsl0:with-param name="pUrl">{@url}</xsl0:with-param> 171 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 172 </xsl0:call-template> 197 173 <xsl0:if test="count(sm:labelTitle) != 0"> 198 174 <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/node()" mode="contentTpl"/></addAttribute> … … 207 183 <xsl0:template match="sm:WTooltip" mode="contentTpl"> 208 184 <xsl0:variable name="vOptions"> 209 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showDelay,concat('DELAY:',sm:tooltip/sm:behavior/@showDelay,','),'')"/> 210 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showTime,concat('TEMP:',sm:tooltip/sm:behavior/@showTime,','),'')"/> 211 <xsl0:value-of select="si(sm:tooltip/sm:behavior/@sticky,concat('STICKY:',sm:tooltip/sm:behavior/@sticky,','),'')"/> 212 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontal='leftOfCursor','LEFT:true,','')"/> 213 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,concat('OFFSETX:',sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,','),'')"/> 214 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@vertical='aboveCursor','ABOVE:true,','')"/> 215 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,concat('OFFSETY:',sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,','),'')"/> 216 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@followCursor='false','STATIC:true,','')"/> 217 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToAnchor,concat('FIXTYPE:"node",FIX:[',si(sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,'0'),'],'),'')"/> 218 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@baseObjectId,concat('FIXID:"',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'",'),'')"/> 219 <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset|sm:tooltip/sm:position/sm:fixed/@verticalOffset,concat('FIX:[',si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset,sm:tooltip/sm:position/sm:fixed/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:fixed/@verticalOffset,sm:tooltip/sm:position/sm:fixed/@verticalOffset,'0'),'],'),'')"/> 220 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxWidth,concat('MAXWIDTH:',sm:tooltip/sm:dimensions/@maxWidth,','),'')"/> 221 <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxHeight,concat('MAXHEIGHT:',sm:tooltip/sm:dimensions/@maxHeight,','),'')"/> 222 <xsl0:value-of select="si(sm:tooltip/sm:shadow,'SHADOW:true,','')"/> 185 <xsl0:call-template name="tooltipOptions"/><!-- Dans bsco:sm/web/sm_WTooltip.xml.xsl --> 223 186 </xsl0:variable> 224 187 <span class="{si(@commonClass, @commonClass, 'ttCrossRef')}_a">
Note: See TracChangeset
for help on using the changeset viewer.