Changeset 9401 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_armoireUiTemplate/template.wm.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_armoireUiTemplate/template.wm.xsl
r9141 r9401 48 48 exclude-result-prefixes="sm sc xsl java" 49 49 version="1.0"> 50 51 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 52 50 53 <xsl0:output indent="no"/> 51 54 … … 59 62 <!-- Parcours des transformers pour les inclusions --> 60 63 <xsl0:value-of select="execute( 61 initBuffer('checkBlock', java:java.util.HashSet.new()), 62 resultatAgent('//agentGenerator', 'fillBuffersPostXslFragmentXhtml:xhtml') 63 )"/> 64 initBuffer('checkBlock', java:java.util.HashSet.new()), 65 resultatAgent('//agentGenerator', 'fillBuffersPostXslFragmentXhtml:xhtml'), 66 si(.//sm:link[@target='subWindow'], resultatAgent('//agentGenerator', 'fillBufferDynUiLibrary')) 67 )"/> 64 68 <xsl0:variable name="pathFillBuffer" select="concat('templatesCalled/', resultatDialogue('.../codeTemplate'), '/fillBuffers')"/> 65 69 <!-- Parcours tous les transformer pour trouver ceux qui exploitent ce template --> … … 304 308 <xsl0:template match="sm:WLink"> 305 309 <xsl0:variable name="vOptions"> 306 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 307 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 308 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 309 <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 310 <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 311 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 312 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 313 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 314 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 315 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 316 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 317 <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 310 <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 318 311 </xsl0:variable> 319 312 <a> 320 <xsl0:choose> 321 <xsl0:when test="$vOptions!=''"> 322 <xsl0:attribute name="href">javascript:window.open('<xsl0:choose> 323 <xsl0:when test="sm:link/sm:fixedURL"><xsl0:value-of select="sm:link/sm:fixedURL/@url"/></xsl0:when> 324 <xsl0:when test="sm:link/sm:next">$vDialog.hGetResultat('act:cdaction=GoToNext')</xsl0:when> 325 <xsl0:when test="sm:link/sm:previous">$vDialog.hGetResultat('act:cdaction=GoToPrec')</xsl0:when> 326 <xsl0:otherwise>$vGeneratorUtils.resultatDialog('/@@','act:')</xsl0:otherwise> <!-- GoToHome --> 327 </xsl0:choose>',<xsl0:choose> 328 <xsl0:when test="sm:link/@target='newWindow'">'_blank'</xsl0:when> 329 <xsl0:when test="sm:link/@target='sameWindow'">'_self'</xsl0:when> 330 <xsl0:when test="sm:link/@target='namedWindow'">'<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>'</xsl0:when> 331 <xsl0:otherwise>'_self'</xsl0:otherwise> 332 </xsl0:choose>,'<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>')?void(0):void(0)</xsl0:attribute> 333 </xsl0:when> 334 <xsl0:otherwise> 335 <xsl0:attribute name="href"><xsl0:choose> 336 <xsl0:when test="sm:link/sm:fixedURL"><xsl0:value-of select="sm:link/sm:fixedURL/@url"/></xsl0:when> 337 <xsl0:when test="sm:link/sm:next">$vDialog.hGetResultat('act:cdaction=GoToNext')</xsl0:when> 338 <xsl0:when test="sm:link/sm:previous">$vDialog.hGetResultat('act:cdaction=GoToPrec')</xsl0:when> 339 <xsl0:otherwise>$vGeneratorUtils.resultatDialog('/@@','act:')</xsl0:otherwise> <!-- GoToHome --> 340 </xsl0:choose></xsl0:attribute> 341 <xsl0:attribute name="target"> 342 <xsl0:choose> 343 <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 344 <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 345 <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 346 <xsl0:otherwise>_self</xsl0:otherwise> 347 </xsl0:choose> 348 </xsl0:attribute> 349 </xsl0:otherwise> 350 </xsl0:choose> 313 <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 314 <xsl0:with-param name="pUrl"><xsl0:apply-templates mode="wlinkUrl" select="sm:link/*"/></xsl0:with-param> 315 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 316 </xsl0:call-template> 351 317 <xsl0:call-template name="classAtt"/> 352 318 <xsl0:call-template name="idAtt"/> … … 361 327 </xsl0:choose></a> 362 328 </xsl0:template> 329 <xsl0:template match="sm:fixedURL" mode="wlinkUrl"><xsl0:value-of select="@url"/></xsl0:template> 330 <xsl0:template match="sm:next" mode="wlinkUrl">$vDialog.hGetResultat('act:cdaction=GoToNext')</xsl0:template> 331 <xsl0:template match="sm:previous" mode="wlinkUrl">$vDialog.hGetResultat('act:cdaction=GoToPrec')</xsl0:template> 332 <xsl0:template match="sm:home" mode="wlinkUrl">$vGeneratorUtils.resultatDialog('/@@','act:')</xsl0:template> 333 <xsl0:template match="*|text()|@*" mode="wlinkUrl"/> 363 334 364 335 <!-- sm:WButton ===================================================================== -->
Note: See TracChangeset
for help on using the changeset viewer.