Changeset 9401 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_xhtmlToOdGenTransf/bsDescContent.xml.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_xhtmlToOdGenTransf/bsDescContent.xml.xsl
r8599 r9401 43 43 xmlns:java="http://xml.apache.org/xslt/java" 44 44 exclude-result-prefixes="sm"> 45 46 <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 45 47 46 48 <xsl0:output method="xml" encoding="UTF-8" indent="no"/> 47 49 50 48 51 <xsl0:param name="vAgent"/> 49 52 <xsl0:param name="vDialog"/> 50 53 54 51 55 <xsl0:variable name="vAgentModel" select="computeNodeAgent('//agentModel')"/> 52 56 <xsl0:variable name="vAgentMeta" select="computeNodeAgent($vAgentModel/agentMeta)"/> … … 55 59 <xsl0:variable name="vPrefixClass" select="resultatAgent('//idInDocPrefix')"/> 56 60 61 57 62 <xsl0:template match="sm:xhtmlToOdGenTransf"> 58 63 <structure code="{resultatAgent($vAgentModel/codeModel)}{getAxisSuffix(sm:axis/@code)}" racine="//{resultatAgent($vAgentModel/qNameTagRootModel)}" … … 156 161 <xsl0:template match="sm:WLink" mode="xhtml"> 157 162 <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="', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+",top="', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+",'),'')"/> 163 <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width="', '+screen.availWidth', '+",height="', '+screen.availHeight', '+",'),'')"/> 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 --> 170 164 </xsl0:variable> 171 165 <a class="{$vPrefixClass}_{@internalClass} {@commonClass}"> 172 <xsl0:choose> 173 <xsl0:when test="$vOptions!=''"> 174 <xsl0:attribute name="href">javascript:window.open("<xsl0:apply-templates select="sm:link/*" mode="xhtmlUrl"/>",<xsl0:choose> 175 <xsl0:when test="sm:link/@target='newWindow'">"_blank"</xsl0:when> 176 <xsl0:when test="sm:link/@target='sameWindow'">"_self"</xsl0:when> 177 <xsl0:when test="sm:link/@target='namedWindow'">"<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>"</xsl0:when> 178 <xsl0:otherwise>"_self"</xsl0:otherwise> 179 </xsl0:choose>,"<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>")?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> 193 170 <xsl0:if test="count(sm:labelTitle) != 0"> 194 171 <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="xhtml"/></addAttribute>
Note: See TracChangeset
for help on using the changeset viewer.