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

Suppression de webMacro

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_armoireUiTemplate/template.xsl.xsl

    r10307 r10487  
    4646                xmlns:xsl="http://www.w3.org/1999/XSL/TransformAlias"  
    4747                xmlns:java="http://xml.apache.org/xslt/java"  
    48                 exclude-result-prefixes="sm sc xsl java" 
     48                exclude-result-prefixes="sm sc xsl" 
    4949                version="1.0"> 
    5050 
    51         <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
    52  
    53         <xsl0:output indent="no"/> 
     51        <xsl0:import href="bsco:sm/webSiteTemplate/template.xsl.xsl"/> 
     52 
     53        <xsl0:output method="xml" indent="no" encoding="UTF-8"/> 
     54        <xsl0:namespace-alias stylesheet-prefix="xsl" result-prefix="xsl0"/> 
    5455         
    5556        <xsl0:param name="vDialog"/> 
    5657        <xsl0:param name="vAgent"/> 
    5758         
    58         <xsl0:variable name="vCodeTemplate" select="resultatDialogue('.../codeTemplate')"/> 
    59  
    6059        <xsl0:template match="sm:armoireUiTemplate"> 
    61  
    62                 <!-- Parcours des transformers pour les inclusions --> 
    63                 <xsl0:value-of select="execute( 
    64                     initBuffer('checkBlock', java:java.util.HashSet.new()),  
    65                     resultatAgent('//agentGenerator', 'fillBuffersPostXslFragmentXhtml:xhtml'), 
    66                     resultatAgent('//agentGenerator', 'fillBufferCoLib'), 
    67                     si(.//sm:link[@target='subWindow'], resultatAgent('//agentGenerator', 'fillBufferDynUiMgr')) 
    68                    )"/>                  
    69                 <xsl0:variable name="pathFillBuffer" select="concat('templatesCalled/', resultatDialogue('.../codeTemplate'), '/fillBuffers')"/> 
    70                 <!-- Parcours tous les transformer pour trouver ceux qui exploitent ce template --> 
    71                 <xsl0:for-each select="agentsLies(dialog('...//linksTransf'))"> 
    72                         <!-- Source:<xsl0:value-of select="pathAgent(.)"/> - agentFillBuffer : <xsl0:value-of select="pathAgent(agent($pathFillBuffer, .))"/> --> 
    73                         <xsl0:value-of select="resultatAgent(agent($pathFillBuffer, .))"/> 
    74                 </xsl0:for-each> 
    75                 <!-- Parcours tous les transformers et widgets directement appelés par le template --> 
    76                 <xsl0:for-each select="parseXml(resultatAgent('//calledStylableList'))/liste/item"> 
    77                         <xsl0:value-of select="resultatAgent(concat(., '/fillBuffers'))"/> 
    78                 </xsl0:for-each> 
    79                 <xsl0:value-of select="initBuffer('checkBlock')"/> 
    80                 <!-- Ajout des traitements dynamiques XSL au chargelent de la page dans les browsers 
    81                                 cf. http://www.w3.org/Math/XSL/ 
    82                  --> 
    83                 <xsl0:if test="resultatAgent('//standard/mmlNamespace') = 'yes'"> 
    84                         <!-- copie des ressources --> 
    85                         <xsl0:variable name="vMmlXslPath" select="resultatAgent('//',  
    86                                                                                                                 concat( 
    87                                                                                                                         'res:src=bsco:sm/webSiteTemplate/mml',  
    88                                                                                                                         resultatAgent(srcPathFolder),  
    89                                                                                                                         ';mutabledst=', 
    90                                                                                                                         'ui.doss/site/lib/mml' 
    91                                                                                                                 ))"/> 
    92                         <!-- Déclaration des XSL : résolu coté wm --> 
    93                         <xsl0:text disable-output-escaping="yes"><![CDATA[<?xml-stylesheet type="text/xsl" href="$vGeneratorUtils.translatePubUri2DestUrl(']]></xsl0:text><xsl0:value-of select="$vMmlXslPath"/><xsl0:text disable-output-escaping="yes"><![CDATA[/pmathml.xsl')"?>]]></xsl0:text> 
    94                 </xsl0:if> 
    95                 <!-- Contenu --> 
    96                 <html> 
    97                         <xsl0:if test="resultatAgent('//standard/xslMethod') = 'xml'"> 
    98                                 <xsl0:attribute name="xmlns">http://www.w3.org/1999/xhtml</xsl0:attribute> 
    99                         </xsl0:if> 
    100                         <xsl0:if test="resultatAgent('//standard/mmlNamespace') = 'yes'"> 
    101                         <xsl0:attribute name="xmlns:math">http://www.w3.org/1998/Math/MathML</xsl0:attribute> 
    102                         </xsl0:if> 
    103                         <xsl0:if test="resultatAgent('//standard/svgNamespace') = 'yes'"> 
    104                                 <xsl0:attribute name="xmlns:svg">http://www.w3.org/2000/svg</xsl0:attribute> 
    105                         </xsl0:if> 
    106                         <xsl0:if test="resultatAgent('//agentGenerator', 'debug') != 'no'"> 
    107                                 <xsl0:comment> 
    108                                         standard : <xsl0:value-of select="resultatAgent('//standard')"/> 
    109                                         dialog : $vDialog.hGetUrlInInstance() 
    110                                         outline :  
    111                                         $vGeneratorUtils.resultatAgent(null, "outline:ancestors-siblings;descendants;") 
    112                                 </xsl0:comment> 
    113                         </xsl0:if><xsl0:text> 
    114 </xsl0:text> 
    115                         <head><xsl0:text> 
    116 </xsl0:text> 
    117         <xsl0:variable name="vWinTitle"><xsl0:apply-templates select="sm:windowTitle/*"  mode="titlebuilder"/></xsl0:variable> 
    118         <title><xsl0:value-of select="normalize-space($vWinTitle)"/></title><xsl0:text> 
    119 </xsl0:text> 
    120 <xsl0:if test="resultatAgent('//standard/xslMethod') = 'xml'"> 
    121         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><xsl0:text> 
    122 </xsl0:text> 
    123 </xsl0:if> 
    124  
    125 <xsl0:if test="@blockCache!='no'"> 
    126 <!-- Elimination des caches clients --> 
    127         <meta http-equiv="Cache-Control" content="no-cache"/><xsl0:text> 
    128 </xsl0:text> 
    129         <meta http-equiv="Pragma" content="no-cache"/><xsl0:text> 
    130 </xsl0:text> 
    131         <meta http-equiv="expires" name="Expires" content="Fri, 01 Jan 1990 00:00:00 GMT"/><xsl0:text> 
    132 </xsl0:text> 
    133         <meta http-equiv="Content-Style-Type" content="text/css"/> 
    134 </xsl0:if> 
    135 <xsl0:apply-templates select="sm:metaTags/*" mode="metaTags"/><xsl0:text> 
    136  
    137 </xsl0:text>#set $destUrlTemplateResInSite = "<xsl0:value-of select="resultatAgent('templateResources')"/>" 
    138 <xsl0:if test="count(sm:resources/@favicon)!=0"><xsl0:text> 
    139 </xsl0:text><link rel="shortcut icon" href="$vGeneratorUtils.translatePubUri2DestUrl($destUrlTemplateResInSite)/{sm:resources/@favicon}" type="image/x-icon"/> 
    140 </xsl0:if> 
    141 (!(inc=css.withTag)!)<!-- Inclusions CSS issues des transformers --> 
    142 (!(inc=css.link)!) 
    143 <xsl0:variable name="vDestUrlStyle" select="resultatDialogue('.../destUrlStyle')"/><!-- Customizables Styles du modèle--> 
    144 <xsl0:if test="$vDestUrlStyle">#set $destUrlStyle = "<xsl0:value-of select="$vDestUrlStyle"/>" 
    145 <link rel="stylesheet" href="$vGeneratorUtils.translatePubUri2DestUrl($destUrlStyle)" type="text/css"/><xsl0:text> 
    146 </xsl0:text> 
    147 </xsl0:if> 
    148                                  
    149 <xsl0:value-of select="resultatDialogue('.../initUiServices')" disable-output-escaping="yes"/><!-- Initialisation du scContext et des services --> 
    150 (!(inc=js.withTag)!)<!-- Inclusions JS issues des transformers --> 
    151 (!(inc=js.link)!)        
    152 <xsl0:apply-templates select="sm:styles/*" mode="styles"/> 
    153 </head><xsl0:text> 
    154 </xsl0:text> 
    155 <body><xsl0:text> 
    156 </xsl0:text> 
    157         <div id="pageBody"> 
    158                 <xsl0:apply-templates select="sm:headerOut"/> 
    159                 <div id="container_1"><div id="container_2"><div id="container_3"><div id="container_4"><div id="container_5"> 
    160                         <xsl0:apply-templates select="sm:container/sm:headerIn"/> 
    161                         <xsl0:apply-templates select="sm:container/sm:mainArea"/> 
    162                         <xsl0:apply-templates select="sm:container/sm:footerIn"/> 
    163                 </div></div></div></div></div> 
    164                 <xsl0:apply-templates select="sm:footerOut"/> 
    165         </div><xsl0:text> 
    166 </xsl0:text> 
    167 </body><xsl0:text> 
    168 </xsl0:text> 
    169 </html> 
     60                 
     61                <xsl0:call-template name="initBuffers"/> 
     62                 
     63                <xsl:stylesheet version="1.0" exclude-result-prefixes="java"> 
     64                        <xsl:output method="xml" indent="no" encoding="UTF-8"/> 
     65                        <xsl:param name="vDialog"/> 
     66                        <xsl:param name="vAgent"/> 
     67                        <xsl:template match="*"> 
     68                 
     69                                <!-- Ajout des traitements dynamiques XSL au chargelent de la page dans les browsers 
     70                                                cf. http://www.w3.org/Math/XSL/ 
     71                                 --> 
     72                                <xsl0:if test="resultatAgent('//standard/mmlNamespace') = 'yes'"> 
     73                                        <!-- copie des ressources --> 
     74                                        <xsl0:variable name="vMmlXslPath" select="resultatAgent('//',  
     75                                                                                                concat( 
     76                                                                                                        'res:src=bsco:sm/webSiteTemplate/mml',  
     77                                                                                                        resultatAgent(srcPathFolder),  
     78                                                                                                        ';mutabledst=', 
     79                                                                                                        'ui.doss/site/lib/mml' 
     80                                                                                                ))"/> 
     81                                        <!-- Déclaration de la xsl math --> 
     82                                        <xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="<xsl:value-of select="translatePubPath2DestUrl(&quot;{$vMmlXslPath}/pmathml.xsl&quot;)"/>"</xsl:processing-instruction> 
     83                                </xsl0:if> 
     84                                <!-- Contenu --> 
     85                                <html> 
     86                                        <xsl0:if test="resultatAgent('//standard/xslMethod') = 'xml'"> 
     87                                                <xsl0:attribute name="xmlns">http://www.w3.org/1999/xhtml</xsl0:attribute> 
     88                                        </xsl0:if> 
     89                                        <xsl0:if test="resultatAgent('//standard/mmlNamespace') = 'yes'"> 
     90                                                <xsl0:attribute name="xmlns:math">http://www.w3.org/1998/Math/MathML</xsl0:attribute> 
     91                                        </xsl0:if> 
     92                                        <xsl0:if test="resultatAgent('//standard/svgNamespace') = 'yes'"> 
     93                                                <xsl0:attribute name="xmlns:svg">http://www.w3.org/2000/svg</xsl0:attribute> 
     94                                        </xsl0:if> 
     95                                        <xsl0:if test="resultatAgent('//agentGenerator', 'debug') != 'no'"> 
     96                                                <xsl:comment> 
     97                                                        standard : <xsl0:value-of select="resultatAgent('//standard')"/> 
     98                                                        dialog : <xsl:value-of select="pathDialogAgent($vDialog)"/> 
     99                                                        outline :  
     100                                                        <xsl:value-of select="resultatAgent($vDialog, 'outline:ancestors-siblings;descendants;')"/> 
     101                                                </xsl:comment> 
     102                                        </xsl0:if> 
     103                                        <head> 
     104                                                <xsl:variable name="vWinTitle"><xsl0:apply-templates select="sm:windowTitle/*"/></xsl:variable> 
     105                                                <title><xsl:value-of select="normalize-space($vWinTitle)"/></title> 
     106                                                <xsl0:if test="resultatAgent('//standard/xslMethod') = 'xml'"> 
     107                                                        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
     108                                                </xsl0:if> 
     109                                         
     110                                                <xsl0:if test="@blockCache!='no'"> 
     111                                                        <!-- Elimination des caches clients --> 
     112                                                        <meta http-equiv="Cache-Control" content="no-cache"/> 
     113                                                        <meta http-equiv="Pragma" content="no-cache"/> 
     114                                                        <meta http-equiv="expires" name="Expires" content="Fri, 01 Jan 1990 00:00:00 GMT"/> 
     115                                                </xsl0:if> 
     116                                                <meta http-equiv="Content-Style-Type" content="text/css"/> 
     117                                                <xsl0:apply-templates select="sm:metaTags/*" mode="metaTags"/> 
     118                                                <xsl0:if test="sm:resources/@favicon"> 
     119                                                        <link type="image/x-icon" rel="shortcut icon" href="{{translatePubPath2DestUrl(&quot;{$vDestUrlTemplateResInSite}/{sm:resources/@favicon}&quot;)}}"/> 
     120                                                </xsl0:if> 
     121                                                (!(inc=css.withTag)!)<!-- Inclusions CSS issues des transformers --> 
     122                                                (!(inc=css.link)!) 
     123                                                <xsl0:value-of select="resultatDialogue('.../initUiServices')" disable-output-escaping="yes"/><!-- Initialisation du scContext et des services --> 
     124                                                (!(inc=js.withTag)!)<!-- Inclusions JS issues des transformers --> 
     125                                                (!(inc=js.link)!)        
     126                                                <xsl0:apply-templates select="sm:styles/*"/> 
     127                                        </head> 
     128                                        <body> 
     129                                                <div id="pageBody"> 
     130                                                        <xsl0:apply-templates select="sm:headerOut"/> 
     131                                                        <div id="container_1"><div id="container_2"><div id="container_3"><div id="container_4"><div id="container_5"> 
     132                                                                <xsl0:apply-templates select="sm:container/sm:headerIn"/> 
     133                                                                <xsl0:apply-templates select="sm:container/sm:mainArea"/> 
     134                                                                <xsl0:apply-templates select="sm:container/sm:footerIn"/> 
     135                                                        </div></div></div></div></div> 
     136                                                        <xsl0:apply-templates select="sm:footerOut"/> 
     137                                                </div> 
     138                                        </body> 
     139                                </html> 
     140                        </xsl:template> 
     141                </xsl:stylesheet> 
    170142        </xsl0:template> 
    171143         
    172144        <xsl0:template match="sm:headerOut|sm:headerIn|sm:mainArea|sm:footerIn|sm:footerOut"> 
    173 <!--            <div id="{local-name(.)}"> --> 
    174145                        <xsl0:choose> 
    175146                                <!-- LAYOUT DIV --> 
     
    221192<!--            </div> --> 
    222193        </xsl0:template> 
    223  
    224         <xsl0:template match="sm:callMainZone">(!(inc=zone.mainZone.<xsl0:value-of select="si(@format, @format, 'xhtml')"/>.<xsl0:value-of select="resultatAgent('//standard/xslMethod')"/>)!)</xsl0:template> 
    225         <xsl0:template match="sm:callOutline">$(vGeneratorUtils.executeXsl("outline<xsl0:value-of select="getIdNode(.)"/>.xsl", $vGeneratorUtils.resultatAgent(null, "outline:ancestors-siblings;descendants;"), null))</xsl0:template> 
    226         <xsl0:template match="sm:callZone">(!(inc=zone.<xsl0:value-of select="@key"/>.<xsl0:value-of select="si(@format, @format, 'xhtml')"/>.<xsl0:value-of select="resultatAgent('//standard/xslMethod')"/>)!)</xsl0:template> 
    227         <xsl0:template match="sm:callRootModel"> 
    228                 <xsl0:choose> 
    229                         <xsl0:when test="not(@format!='xhtml')">(!(inc=evalWm.<xsl0:value-of select="si(@format, @format, 'xhtml')"/>.<xsl0:value-of select="resultatAgent('//standard/xslMethod')"/>.$vGeneratorUtils.resultatAgent($vGeneratorUtils.getPathAgentRoot('<xsl0:value-of select="getAxisSuffix(@axis)"/>/xhtmlContent'), null, '<zoneContent>', '</zoneContent>'))!)</xsl0:when> 
    230                         <xsl0:otherwise>(!(inc=evalWm.<xsl0:value-of select="@format"/>.<xsl0:value-of select="resultatAgent('//standard/xslMethod')"/>.$vGeneratorUtils.resultatAgent($vGeneratorUtils.getPathAgentRoot('<xsl0:value-of select="getAxisSuffix(@axis)"/>/xhtmlContent'), null, '<zoneContent>', '</zoneContent>'))!)</xsl0:otherwise> 
    231                 </xsl0:choose>           
    232         </xsl0:template>         
    233         <!-- Projet d'implémentation sm:callModel/sm:root, sm:callModel/sm:current ... 
    234         <xsl0:template match="sm:callModel"><xsl0:apply-templates/></xsl0:template> 
    235         <xsl0:template match="sm:root">(!(inc=evalWm.xhtml.<xsl0:value-of select="resultatAgent('//standard/xslMethod')"/>.$vGeneratorUtils.resultatAgent($vGeneratorUtils.getPathAgentRoot('<xsl0:value-of select="getAxisSuffix(@axis)"/>/xhtmlContent'), null, '<zoneContent>', '</zoneContent>'))!)</xsl0:template>  
    236         <xsl0:template match="sm:current">(!(inc=evalWm.xhtml.<xsl0:value-of select="resultatAgent('//standard/xslMethod')"/>.$vGeneratorUtils.resultatAgent(concat($vGeneratorUtils.switchAxis($vAgent.hGetAgentPrinc().hGetCode(), '<xsl0:value-of select="@axis"/>'), '/xhtmlContent'), null, '<zoneContent>', '</zoneContent>'))!)</xsl0:template>   
    237         --> 
    238                   
    239194                  
    240195        <!-- sm:WText ===================================================================== --> 
     
    243198        </xsl0:template> 
    244199 
    245         <!-- sm:WXhtmlFragment ===================================================================== --> 
    246         <xsl0:template match="sm:WXhtmlFragment"> 
    247                 <xsl0:value-of select="." disable-output-escaping="yes"/> 
    248         </xsl0:template> 
    249  
    250         <!-- sm:Widget ===================================================================== --> 
    251         <xsl0:template match="sm:Widget"> 
    252                 <xsl0:choose> 
    253                         <xsl0:when test="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/contentFormat'))='xhtml'">(!(inc=evalWm.xhtml.<xsl0:value-of select="resultatAgent('//standard/xslMethod')"/>.$vGeneratorUtils.resultatAgent("/@@/tplWidget_<xsl0:value-of select="getIdFromPath(@sc:refUri)"/>", null, "<zoneContent>", "</zoneContent>"))!)</xsl0:when> 
    254                         <xsl0:otherwise>$vGeneratorUtils.resultatAgent("/@@/tplWidget_<xsl0:value-of select="getIdFromPath(@sc:refUri)"/>", null)</xsl0:otherwise> 
    255                 </xsl0:choose> 
    256         </xsl0:template>         
    257  
    258200        <!-- sm:WImage ===================================================================== --> 
    259201        <xsl0:template match="sm:WImage"> 
    260 #set $pubUriImage = "<xsl0:value-of select="resultatAgent('//', 
    261                                                                                                                         concat( 
    262                                                                                                                                 'res:src=wsp:',  
    263                                                                                                                                 @sc:refUri,  
    264                                                                                                                                 ';mutabledst=', 
    265                                                                                                                                 resultatDialogue('.../destPathTemplateResInSite'), 
    266                                                                                                                                 '/', 
    267                                                                                                                                 java:substring(string(@sc:refUri), java:lastIndexOf(string(@sc:refUri), '/')+1) 
    268                                                                                                                         ))"/>" 
    269 <img src="$vGeneratorUtils.translatePubUri2DestUrl($pubUriImage)" alt="{@altText}"> 
     202<img src="{{translatePubPath2DestUrl(&quot;{ 
     203                                resultatAgent('//', 
     204                                concat( 
     205                                        'res:src=wsp:',  
     206                                        @sc:refUri,  
     207                                        ';mutabledst=', 
     208                                        resultatDialogue('.../destPathTemplateResInSite'), 
     209                                        '/', 
     210                                        java:substring(string(@sc:refUri), java:lastIndexOf(string(@sc:refUri), '/')+1) 
     211                                )) 
     212                        }&quot;)}}" alt="{@altText}"> 
    270213                        <xsl0:call-template name="classAtt"/> 
    271214                        <xsl0:call-template name="idAtt"/></img> 
     
    289232                </span> 
    290233        </xsl0:template> 
    291  
    292         <!-- sm:WLink ===================================================================== --> 
    293         <xsl0:template match="sm:WLink"> 
    294                 <xsl0:variable name="vOptions"> 
    295                         <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 
    296                 </xsl0:variable> 
    297                 <a> 
    298                         <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 
    299                                 <xsl0:with-param name="pUrl"><xsl0:apply-templates mode="wlinkUrl" select="sm:link/*"/></xsl0:with-param> 
    300                                 <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 
    301                         </xsl0:call-template> 
    302                         <xsl0:call-template name="classAtt"/> 
    303                         <xsl0:call-template name="idAtt"/> 
    304                         <xsl0:if test="count(sm:labelTitle) != 0"> 
    305 <!--                            <xsl0:variable name="vlabelTitle"><xsl0:apply-templates select="sm:labelTitle/*"/></xsl0:variable> 
    306                                 <xsl0:attribute name="title"><xsl0:value-of select="string(parseXml($vlabelTitle))"/></xsl0:attribute> 
    307  -->                            <xsl0:attribute name="title"><xsl0:apply-templates select="sm:labelTitle/*"/></xsl0:attribute> 
    308                         </xsl0:if> 
    309                         <xsl0:choose> 
    310                                 <xsl0:when test="count(sm:label/*) = 0">&#160;</xsl0:when> 
    311                                 <xsl0:otherwise><span><xsl0:apply-templates select="sm:label/*"/></span></xsl0:otherwise> 
    312                         </xsl0:choose></a> 
    313         </xsl0:template> 
    314         <xsl0:template match="sm:fixedURL" mode="wlinkUrl"><xsl0:value-of select="@url"/></xsl0:template> 
    315         <xsl0:template match="sm:next" mode="wlinkUrl">$vDialog.hGetResultat('act:cdaction=GoToNext')</xsl0:template> 
    316         <xsl0:template match="sm:previous" mode="wlinkUrl">$vDialog.hGetResultat('act:cdaction=GoToPrec')</xsl0:template> 
    317         <xsl0:template match="sm:home" mode="wlinkUrl">$vGeneratorUtils.resultatDialog('/@@','act:')</xsl0:template> 
    318         <xsl0:template match="*|text()|@*" mode="wlinkUrl"/> 
    319  
    320         <!-- sm:WButton ===================================================================== --> 
    321         <xsl0:template match="sm:WButton"> 
    322                 <a href="javascript:void(0);"> 
    323                         <xsl0:attribute name="onclick"> 
    324                                 <xsl0:choose> 
    325                                         <xsl0:when test="sm:action/sm:close">window.top.close();</xsl0:when> 
    326                                         <xsl0:when test="sm:action/sm:print">window.print();</xsl0:when> 
    327                                         <xsl0:when test="sm:action/sm:jsFragment"><xsl0:value-of select="sm:action/sm:jsFragment/@command"/></xsl0:when> 
    328                                 </xsl0:choose> 
    329                         </xsl0:attribute> 
    330                         <xsl0:call-template name="classAtt"/> 
    331                         <xsl0:call-template name="idAtt"/> 
    332                         <xsl0:if test="count(sm:labelTitle) != 0"> 
    333                                 <xsl0:attribute name="title"><xsl0:apply-templates select="sm:labelTitle/*"/></xsl0:attribute> 
    334                         </xsl0:if> 
    335                         <xsl0:choose> 
    336                                 <xsl0:when test="count(sm:label/*) = 0">&#160;</xsl0:when> 
    337                                 <xsl0:otherwise><span><xsl0:apply-templates select="sm:label/*"/></span></xsl0:otherwise> 
    338                         </xsl0:choose></a> 
    339         </xsl0:template> 
    340  
    341         <!-- sm:WObject ===================================================================== --> 
    342         <xsl0:template match="sm:WObject"> 
    343 #set $pubUriObject = "<xsl0:value-of select="resultatAgent('//', 
    344                                                                                                                         concat( 
    345                                                                                                                                 'res:src=wsp:',  
    346                                                                                                                                 @sc:refUri,  
    347                                                                                                                                 ';mutabledst=', 
    348                                                                                                                                 resultatDialogue('.../destPathTemplateResInSite'), 
    349                                                                                                                                 '/', 
    350                                                                                                                                 java:substring(string(@sc:refUri), java:lastIndexOf(string(@sc:refUri), '/')+1) 
    351                                                                                                                         ))"/>" 
    352 <object codebase="{sm:codebase/@value}" classid="{sm:classid/@value}" height="{sm:height/sm:fixedValue/@value}" width="{sm:width/sm:fixedValue/@value}"> 
    353                         <xsl0:call-template name="classAtt"/> 
    354                         <xsl0:call-template name="idAtt"/> 
    355                         <param name="src" value="$vGeneratorUtils.translatePubUri2DestUrl($pubUriObject)"/> 
    356                         <xsl0:apply-templates select="sm:param" mode="objParams"/> 
    357                         <embed pluginspage="{sm:pluginspage/@value}" height="{sm:height/sm:fixedValue/@value}" width="{sm:width/sm:fixedValue/@value}" type="{sm:type/@value}" src="$vGeneratorUtils.translatePubUri2DestUrl($pubUriObject)"> 
    358                                 <xsl0:call-template name="classAtt"/> 
    359                                 <xsl0:if test="@id"> 
    360                                         <xsl0:attribute name="name"><xsl0:value-of select="@id"/></xsl0:attribute> 
    361                                 </xsl0:if> 
    362                                 <xsl0:apply-templates select="sm:param" mode="objParamsEmbedAtts"/> 
    363                         </embed> 
    364                         <xsl0:if test="count(sm:altContent)!=0"> 
    365                                 <noembed> 
    366                                         <xsl0:apply-templates select="sm:altContent/*"/> 
    367                                 </noembed>       
    368                         </xsl0:if> 
    369                 </object> 
    370         </xsl0:template> 
    371  
    372         <xsl0:template match="sm:param" mode="objParams"> 
    373                 <param name="{@name}"> 
    374                         <xsl0:attribute name="value"><xsl0:apply-templates mode="xhtmlUrl"/></xsl0:attribute> 
    375                 </param>  
    376         </xsl0:template> 
    377         <xsl0:template match="node()" mode="objParams"/> 
    378  
    379         <xsl0:template match="sm:param" mode="objParamsEmbedAtts"> 
    380                 <xsl0:attribute name="{@name}"><xsl0:apply-templates mode="xhtmlUrl"/></xsl0:attribute> 
    381         </xsl0:template> 
    382         <xsl0:template match="node()" mode="objParamsEmbedAtts"/> 
    383  
    384         <xsl0:template match="sm:fixedValue" mode="xhtmlUrl"><xsl0:value-of select="@value"/></xsl0:template> 
    385         <xsl0:template match="node()" mode="xhtmlUrl"/> 
    386  
    387         <xsl0:template match="sm:title"> 
    388                 <xsl0:apply-templates mode="titlebuilder"/> 
    389         </xsl0:template> 
    390          
    391         <!-- titlebuilder ===================================================================== --> 
    392         <xsl0:template match="sm:rootTitle" mode="titlebuilder"> 
    393                 <xsl0:choose> 
    394                         <xsl0:when test="@type='shortTitle'">$vGeneratorUtils.<xsl0:value-of select="si(resultatAgent('//standard/xslMethod') = 'xml', 'escapeXml', 'escapeHtml')"/>($vGeneratorUtils.resultatAgent($vGeneratorUtils.getPathAgentRoot("<xsl0:value-of select="getAxisSuffix(@axis)"/>/shortTitleText"), null))</xsl0:when> 
    395                         <xsl0:otherwise>$vGeneratorUtils.<xsl0:value-of select="si(resultatAgent('//standard/xslMethod') = 'xml', 'escapeXml', 'escapeHtml')"/>($vGeneratorUtils.resultatAgent($vGeneratorUtils.getPathAgentRoot("<xsl0:value-of select="getAxisSuffix(@axis)"/>/fullTitleText"), null))</xsl0:otherwise> 
    396                 </xsl0:choose> 
    397         </xsl0:template> 
    398         <xsl0:template match="sm:pageTitle" mode="titlebuilder">$vGeneratorUtils.<xsl0:value-of select="si(resultatAgent('//standard/xslMethod') = 'xml', 'escapeXml', 'escapeHtml')"/>($vGeneratorUtils.getTitleAgent($vAgent))</xsl0:template> 
    399         <xsl0:template match="sm:fixedString" mode="titlebuilder"><xsl0:value-of select="@value"/></xsl0:template> 
    400         <xsl0:template match="sm:callZone" mode="titlebuilder">(!(inc=zone.<xsl0:value-of select="@key"/>.<xsl0:value-of select="si(@format, @format, 'text')"/>.text)!)</xsl0:template> 
    401         <xsl0:template match="sm:callRootModel" mode="titlebuilder">(!(inc=evalWm.<xsl0:value-of select="si(@format, @format, 'text')"/>.text.$vGeneratorUtils.resultatAgent($vGeneratorUtils.getPathAgentRoot('<xsl0:value-of select="getAxisSuffix(@axis)"/>/xhtmlContent'), null))!)</xsl0:template> 
    402         <xsl0:template match="*|text()|@*" mode="titlebuilder"/> 
    403          
    404         <!-- metaTags ===================================================================== --> 
    405         <xsl0:template match="sm:meta" mode="metaTags"><xsl0:text> 
    406 </xsl0:text><meta name="{@name}"><xsl0:attribute name="content"><xsl0:apply-templates mode="metaTags"/></xsl0:attribute></meta> 
    407         </xsl0:template> 
    408         <xsl0:template match="sm:fixedContent" mode="metaTags"><xsl0:value-of select="@value"/></xsl0:template> 
    409         <xsl0:template match="sm:callZone" mode="metaTags">$vGeneratorUtils.<xsl0:value-of select="si(resultatAgent('//standard/xslMethod') = 'xml', 'escapeXml', 'escapeHtml')"/>((!(inc=zone.<xsl0:value-of select="@key"/>.<xsl0:value-of select="si(@format, @format, 'text')"/>.text)!))</xsl0:template> 
    410         <xsl0:template match="sm:callRootModel" mode="metaTags">$vGeneratorUtils.<xsl0:value-of select="si(resultatAgent('//standard/xslMethod') = 'xml', 'escapeXml', 'escapeHtml')"/>((!(inc=evalWm.<xsl0:value-of select="si(@format, @format, 'text')"/>.text.$vGeneratorUtils.resultatAgent($vGeneratorUtils.getPathAgentRoot('<xsl0:value-of select="getAxisSuffix(@axis)"/>/xhtmlContent'), null))!))</xsl0:template> 
    411         <xsl0:template match="*|text()|@*" mode="metaTags"/> 
    412          
    413         <!-- styleSheetTags ===================================================================== --> 
    414         <xsl0:template match="sm:styleSheet" mode="styles"><link type="text/css" rel="stylesheet" href="$vGeneratorUtils.translatePubUri2DestUrl($destUrlTemplateResInSite)/{@src}"><xsl0:if test="@media"><xsl0:attribute name="media"><xsl0:value-of select="@media"/></xsl0:attribute></xsl0:if></link><xsl0:text> 
    415 </xsl0:text></xsl0:template> 
    416         <xsl0:template match="sm:styleSheet[@srcFrom='publishFiles']" mode="styles"> 
    417 #set $pubUriStyle = "/<xsl0:value-of select="@src"/>" 
    418 <link type="text/css" rel="stylesheet" href="$vGeneratorUtils.translatePubUri2DestUrl($pubUriStyle)"><xsl0:if test="@media"><xsl0:attribute name="media"><xsl0:value-of select="@media"/></xsl0:attribute></xsl0:if></link><xsl0:text> 
    419 </xsl0:text></xsl0:template> 
    420         <xsl0:template match="*|text()|@*" mode="styles"/> 
    421          
    422         <!-- Class & Id attibute helper templates ===================================================================== --> 
    423         <xsl0:template name="classAtt"> 
    424                 <xsl0:if test="@class"> 
    425                         <xsl0:attribute name="class"><xsl0:value-of select="@class"/></xsl0:attribute> 
    426                 </xsl0:if> 
    427         </xsl0:template> 
    428         <xsl0:template name="idAtt"> 
    429                 <xsl0:if test="@id"> 
    430                         <xsl0:attribute name="id"><xsl0:value-of select="@id"/></xsl0:attribute> 
    431                 </xsl0:if> 
    432         </xsl0:template> 
    433                  
     234         
    434235        <xsl0:template match="*|text()|@*"/> 
    435236</xsl0:stylesheet> 
Note: See TracChangeset for help on using the changeset viewer.