Ignore:
Timestamp:
02/07/08 18:49:13 (4 years ago)
Author:
sys
Message:

Suppression de webMacro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_transparentUiFrame.xml

    r10364 r10487  
    154154                                </zone> 
    155155                        </page> 
    156                 </affichage>             
     156                </affichage> 
     157 
     158 
    157159 
    158160                <affichage code="index"> 
    159                         <urlPage type="xpath-dynamique">si(resultatAgent('//agentGenerator', 'standard/xslMethod') = 'html', 'ui.doss/site/index.html.wm', 'ui.doss/site/index.xhtml.wm')</urlPage> 
     161                        <urlPage type="xpath-dynamique">si(resultatAgent('//agentGenerator', 'standard/xslMethod') = 'html', 'ui.doss/site/index.html.dyn.xsl', 'ui.doss/site/index.xhtml.dyn.xsl')</urlPage> 
    160162                        <page> 
    161                                 <modele>wmTemplate-xhtml</modele> 
    162                                 <zone cle="mainZone" type="contextuel-dynamique"> 
    163                                         <choose> 
    164                                                 <case xpath="resultatAgent('//isIframe')='true' and resultatAgent('//agentGenerator', 'standard/xslMethod') = 'html'" type="inclusion-dynamique"> 
    165                                                         <source><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    166 <html> 
    167         <head> 
    168                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
    169         [![agent=includeHead]!] 
    170         </head> 
    171         <body style="overflow: hidden; border:none; padding:0px; margin:0px;"><iframe id="mainFrame" name="mainFrame" src="lib/blank.html" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0"></iframe></body>  
    172 </html>]]></source> 
    173                                                 </case> 
    174                                                 <case xpath="resultatAgent('//isFramset')='true' and resultatAgent('//agentGenerator', 'standard/xslMethod') = 'html'" type="inclusion-dynamique"> 
    175                                                         <source><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    176 <html> 
    177         <head> 
    178                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
    179         [![agent=includeHead]!] 
    180         </head> 
    181         <frameset><frame id="mainFrame" name="mainFrame" src="lib/blank.html" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0"></frame><noframes><body>Your browser does not handle frames, certain aspects of this site may not work properly.</body></noframes></frameset>    
    182 </html>]]></source> 
    183                                                 </case> 
    184                                                 <case xpath="resultatAgent('//isIframe')='true'" type="inclusion-dynamique"> 
    185                                                         <source><![CDATA[<?xml version="1.0" encoding="UTF-8"?> 
    186 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    187 <html xmlns="http://www.w3.org/1999/xhtml"> 
    188         <head> 
    189                 <meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8"/> 
    190         [![agent=includeHead]!] 
    191         </head> 
    192         <body style="overflow: hidden; border:none; padding:0px; margin:0px;"><iframe id="mainFrame" name="mainFrame" src="lib/blank.xhtml" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0"></iframe></body>         
    193 </html>]]></source> 
    194                                                 </case> 
    195                                                 <case xpath="resultatAgent('//isFramset')='true'" type="inclusion-dynamique"> 
    196                                                         <source><![CDATA[<?xml version="1.0" encoding="UTF-8"?> 
    197 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    198 <html xmlns="http://www.w3.org/1999/xhtml"> 
    199         <head> 
    200                 <meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8"/> 
    201         [![agent=includeHead]!] 
    202         </head> 
    203         <frameset><frame id="mainFrame" name="mainFrame" src="lib/blank.xhtml" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0"></frame></frameset>     
    204 </html>]]></source> 
    205                                                 </case> 
    206                                                 <case xpath="resultatAgent('//agentGenerator', 'standard/xslMethod') = 'html'"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    207 <html> 
    208         <head> 
    209                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
    210                 <meta http-equiv="Refresh" content="0;URL=$vDialog.hGetResultat('/@@', 'act:')"> 
    211                 <title></title> 
    212         </head> 
    213         <body></body> 
    214 </html>]]></case> 
    215                                                 <default><![CDATA[<?xml version="1.0" encoding="UTF-8"?> 
    216 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    217 <html xmlns="http://www.w3.org/1999/xhtml"> 
    218         <head> 
    219                 <meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8"/> 
    220                 <meta http-equiv="Refresh" content="0;URL=$vDialog.hGetResultat('/@@', 'act:')"/> 
    221                 <title></title> 
    222         </head> 
    223         <body></body> 
    224 </html>]]></default> 
    225                                         </choose> 
     163                                <modele>xslTemplate-xhtml</modele> 
     164                                <zone cle="mainZone" type="xslOnSrc-dynamique"> 
     165<xsl0:stylesheet  
     166                xmlns:xsl0="http://www.w3.org/1999/XSL/Transform" 
     167                xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling"  
     168                xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"  
     169                xmlns:xsl="http://www.w3.org/1999/XSL/TransformAlias"  
     170                xmlns:java="http://xml.apache.org/xslt/java"  
     171                xmlns:xhtml="http://www.w3.org/1999/xhtml" 
     172                exclude-result-prefixes="sm sc xsl xhtml" 
     173                version="1.0"> 
     174 
     175        <xsl0:import href="bsco:sm/webSiteTemplate/template.xsl.xsl"/> 
     176 
     177        <xsl0:output method="xml" indent="no" encoding="UTF-8"/> 
     178        <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> 
     179         
     180        <xsl0:param name="vDialog"/> 
     181        <xsl0:param name="vAgent"/> 
     182         
     183        <xsl0:variable name="xslMethod" select="resultatAgent('//agentGenerator', 'standard/xslMethod')"/> 
     184         
     185        <xsl0:template match="*"> 
     186                <xsl:stylesheet version="1.0" exclude-result-prefixes="java"> 
     187                         
     188                        <xsl:output method="{$xslMethod}" indent="no" encoding="UTF-8" > 
     189                                <xsl0:if test="$xslMethod='html'"> 
     190                                        <xsl0:attribute name="doctype-public">-//W3C//DTD HTML 4.01 Transitional//EN</xsl0:attribute> 
     191                                        <xsl0:attribute name="doctype-system">http://www.w3.org/TR/html4/loose.dtd</xsl0:attribute> 
     192                                </xsl0:if> 
     193                        </xsl:output> 
     194                        <xsl:param name="vDialog"/> 
     195                        <xsl:param name="vAgent"/> 
     196                        <xsl:template match="*"> 
     197                                <html> 
     198                                        <xsl0:if test="$xslMethod='xml'"> 
     199                                                <xsl0:attribute name="xmlns">http://www.w3.org/1999/xhtml</xsl0:attribute> 
     200                                        </xsl0:if> 
     201                                        <head> 
     202                                                <meta http-equiv="Content-Type" content="text/{si(xslMethod='html', 'html', 'xhtml')}; charset=utf-8"/> 
     203                                                <xsl0:choose> 
     204                                                        <xsl0:when test="resultatAgent('//isFrame')='true'"> 
     205                                                                <xsl0:variable name="loadStartPage">scOnLoads[scOnLoads.length] = { onLoad: function(){ $("mainFrame").src = scUrlToLoad;}, loadSortKey: "ZZloadRootPage"}</xsl0:variable> 
     206                                                                <xsl0:value-of select="execute( 
     207                                                                                resultatAgent('//agentGenerator', 'fillBufferCoLib'), 
     208                                                                                setEntryBuffer('js.postLink', 'loadStartPage', $loadStartPage) 
     209                                                                   )"/> 
     210                                                                <title><xsl:value-of select="resultatAgent('@@/contentRoot', 'fullTitleText')"/></title> 
     211                                                                <xsl0:if test="sm:styleResources/@favicon"> 
     212                                                                        <link type="image/x-icon" rel="shortcut icon" href="{{translatePubPath2DestUrl(&quot;{sm:styleResources/@favicon}&quot;)}}"/> 
     213                                                                </xsl0:if>                                                               
     214                                                                <script type="text/JavaScript"> 
     215                                                                        var scServices = {}; 
     216                                                                        <!-- Service générique de chargement de pages --> 
     217                                                                        scServices["scLoad"] = { 
     218                                                                                loadFromRoot : function(pUrl) {$("mainFrame").src = pUrl;}, 
     219                                                                                getUrlFromRoot:function(pHref){if(!this.fRootOffset) this.fRootOffset = window.location.href.lastIndexOf("/")+1; return pHref.substring(this.fRootOffset);} 
     220                                                                        } 
     221                                                                        <!-- scUrlToLoad : API pour permettre de modifier la page à charger par un service de type locationStorage. --> 
     222                                                                        var scUrlToLoad = "<xsl:value-of select="resultatAgent('/@@', 'act:')"/>"; 
     223                                                                </script> 
     224                                                                <xsl0:for-each select="parseXml(resultatAgent('//uiServiceList'))/liste/item"> 
     225                                                                        <xsl0:value-of select="resultatAgent(concat(., '/declareInPage'))"/> 
     226                                                                </xsl0:for-each> 
     227        (!(inc=js.withTag)!) 
     228        (!(inc=js.link)!) 
     229                                                        </xsl0:when> 
     230                                                        <xsl0:otherwise> 
     231                                                                <meta http-equiv="Refresh" content="0;URL={{resultatAgent('/@@', 'act:')}}"/> 
     232                                                                <title/> 
     233                                                        </xsl0:otherwise> 
     234                                                </xsl0:choose> 
     235                                        </head> 
     236                                        <xsl0:choose> 
     237                                                <xsl0:when test="resultatAgent('//isFramset')='true'"> 
     238                                                        <frameset><frame id="mainFrame" name="mainFrame" src="lib/blank.html" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0"></frame><noframes><body>Your browser does not handle frames, certain aspects of this site may not work properly.</body></noframes></frameset>    
     239                                                </xsl0:when> 
     240                                                <xsl0:when test="resultatAgent('//isIframe')='true'"> 
     241                                                        <body style="overflow: hidden; border:none; padding:0px; margin:0px;"><iframe id="mainFrame" name="mainFrame" src="lib/blank.xhtml" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0"></iframe></body>         
     242                                                </xsl0:when> 
     243                                                <xsl0:otherwise> 
     244                                                        <body/> 
     245                                                </xsl0:otherwise> 
     246                                        </xsl0:choose> 
     247                                </html> 
     248                        </xsl:template> 
     249                </xsl:stylesheet> 
     250        </xsl0:template> 
     251</xsl0:stylesheet> 
    226252                                </zone> 
    227253                        </page> 
    228                         <valeur code="includeHead"> 
    229                                 <source type="composition-dynamique">                                    
    230                                         <c:composition xmlns:c="composition"> 
    231 <c:donnee type="xpath-dynamique">execute(resultatAgent('//agentGenerator', 'fillBufferCoLib'))</c:donnee> 
    232         <title>$vGeneratorUtils.escapeHtml($vGeneratorUtils.resultatAgent('@@/contentRoot', 'fullTitleText'))</title> 
    233 <c:if test="sm:styleResources/@favicon != ''" type="xpath-statique">#set $vUrlIcon = "<c:donnee type="xpath-statique">sm:styleResources/@favicon</c:donnee>" 
    234         <link rel="shortcut icon" test="$vUrlIcon" href="$vGeneratorUtils.translatePubUri2DestUrl($vUrlIcon)" type="image/x-icon"/> 
    235 </c:if> 
    236         <script type="text/JavaScript"> 
    237                 var scServices = {}; 
    238                 <!-- Service générique de chargement de pages --> 
    239                 scServices["scLoad"] = { 
    240                         loadFromRoot : function(pUrl) {$("mainFrame").src = pUrl;}, 
    241                         getUrlFromRoot:function(pHref){if(!this.fRootOffset) this.fRootOffset = window.location.href.lastIndexOf("/")+1; return pHref.substring(this.fRootOffset);} 
    242                 } 
    243                 <!-- scUrlToLoad : API pour permettre de modifier la page à charger par un service de type locationStorage. --> 
    244                 var scUrlToLoad = "$vDialog.hGetResultat('/@@', 'act:')"; 
    245         </script> 
    246         <c:donnee type="xpath-dynamique">execute(setEntryBuffer('js.postLink', 'loadStartPage', 'scOnLoads[scOnLoads.length] = { onLoad: function(){ $("mainFrame").src = scUrlToLoad;}, loadSortKey: "ZZloadRootPage"}'))</c:donnee> 
    247         <c:boucleagents> 
    248                 <c:listeagents type="resultat-dynamique">agent=//uiServiceList</c:listeagents> 
    249                 <c:resultat agent="declareInPage"/>  
    250         </c:boucleagents> 
    251         (!(inc=js.withTag)!) 
    252         (!(inc=js.link)!) 
    253                         </c:composition></source> 
    254                         </valeur> 
    255254                </affichage> 
     255                 
    256256        </groupAffichage> 
    257257         
     
    271271                                                <c:donnee type="xpath-dynamique">setEntryBuffer('js', 'initScServices', '/*0*/ var scServices = window.opener ? window.opener.scServices : window.parent.scServices;')</c:donnee> 
    272272                                                <c:if type="xpath-statique" test="boolean(sm:rootContext/sm:*/sm:ifContextNotFound/sm:goToHome)"> 
    273                                                         <c:donnee type="xpath-dynamique">setEntryBuffer('js', 'notFoundScServices', concat('/*1*/ if(!scServices) window.location.href="$vGeneratorUtils.resolveDestUri2DestUrl("', si(resultatAgent('//agentGenerator', 'standard/xslMethod') = 'html', '/index.html', '/index.xhtml'), '")";'))</c:donnee> 
     273                                                        <c:donnee type="xpath-dynamique"><![CDATA[setEntryBuffer('js', 'notFoundScServices', concat('xslFragment:/*1*/ if(!scServices) window.location.href="<xsl:value-of select="resolveDestUri2DestUrl(', si(resultatAgent('//agentGenerator', 'standard/xslMethod') = 'html', '/index.html', '/index.xhtml'), ')"/>";'))]]></c:donnee> 
    274274                                                </c:if> 
    275275                                                <c:boucleagents> 
     
    281281                                <default type="composition-dynamique">                                   
    282282                                        <c:composition xmlns:c="composition"> 
    283                                                 <c:donnee type="xpath-dynamique">execute( 
     283                                                <c:donnee type="xpath-dynamique"><![CDATA[execute( 
    284284                                                        setEntryBuffer('js', 'initScServices', '/*0*/ var scServices = {};'), 
    285                                                         setEntryBuffer('js', 'initScLoadSvc', '/*1*/ scServices["scLoad"] = {loadFromRoot:function(pUrl){window.location.href="$vGeneratorUtils.resolveDestUri2DestUrl("/")"+pUrl;}, getUrlFromRoot:function(pHref){if(!this.fRootOffset) this.fRootOffset = window.location.href.length + 1 - $vDialog.hGetPageResultat().getDestUrl().length(); return pHref.substring(this.fRootOffset);}};') 
    286                                                 )</c:donnee> 
     285                                                        setEntryBuffer('js', 'initScLoadSvc', 'xslFragment:/*1*/ scServices["scLoad"] = {loadFromRoot:function(pUrl){window.location.href="<xsl:value-of select="resolveDestUri2DestUrl(&quot;/&quot;)"/>)"+pUrl;}, getUrlFromRoot:function(pHref){if(!this.fRootOffset) this.fRootOffset = window.location.href.length <xsl:value-of select="1 - java:length(java:getDestUrl(java:hGetPageResultat($vDialog)))"/>; return pHref.substring(this.fRootOffset);}};') 
     286                                                )]]></c:donnee> 
    287287                                                <c:boucleagents> 
    288288                                                        <c:listeagents type="resultat-dynamique">agent=//uiServiceList</c:listeagents> 
Note: See TracChangeset for help on using the changeset viewer.