Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 285c4795

Von Holger Will vor fast 17 Jahren hinzugefügt

  • ID 285c47953e1b3af93a220d0a25886b558bcd6a34
  • Vorgänger a5f409be
  • Nachfolger d6d74ef0

xulmenu fixes fuer Geko 1.9

Unterschiede anzeigen:

xslt/xulmenu.xsl
2 2
    xmlns:html="http://www.w3.org/1999/xhtml" 
3 3
    xmlns:svg="http://www.w3.org/2000/svg"
4 4
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
5

  
5
<xsl:output media-type="application/vnd.mozilla.xul+xml"/>
6 6
<xsl:template match="/">
7 7
  <xsl:choose>
8 8
    <xsl:when test="system-property('xsl:vendor')='Transformiix'">
9

  
9 10
      <xsl:apply-templates/>
10 11
    </xsl:when>
11 12
    <xsl:otherwise>
......
46 47
    <hbox flex="1">
47 48
      <vbox id="sidebar" style="overflow:hidden">
48 49

  
49
        <xsl:apply-templates mode="tree"/>
50
        <xsl:apply-templates mode="tree" select="menu"/>
50 51

  
51 52
        <xsl:call-template name="ArtikelSuche"/>
52 53
        <!--<iframe src="xslt/trans.xml" flex="1" id="uhr"/>-->
......
61 62

  
62 63
<!-- the top menu -->
63 64
<!-- ******************************************************************* -->
64
<xsl:template match="menu">
65
<!--<div style="background:grey">-->
66
  <menubar id="sample-menubar">
67
    <xsl:apply-templates/>
68
  </menubar>
69
<!--</div>-->
70
</xsl:template>
65
<xsl:template match="menu"><menubar id="sample-menubar" flex="1"><xsl:apply-templates/></menubar></xsl:template>
71 66
<!-- ******************************************************************* -->
72 67

  
73 68

  
......
105 100

  
106 101
<!-- template for the top menu items
107 102
*********************************************************************************  -->
108
<xsl:template match="item">
109
  <xsl:choose>
110
    <xsl:when test="item">
111
        <menu id="{@name}_menu" label="{@name}" class="menu-iconic" image="image/icons/16x16/{@id}.png">
112
          <menupopup id="file-popup">
113
    <xsl:apply-templates/>
114
          </menupopup>
115
        </menu>
116
    </xsl:when>
117
    <xsl:otherwise>
118
    <menuitem target="{@target}" link="{@link}" label="{@name}" oncommand="openLink(event)" class="menuitem-iconic" image="image/icons/16x16/{@id}.png" lxid="{@id}" onclick="openLinkNewTab(event)"/>
119
    </xsl:otherwise>
120
  </xsl:choose>
121
</xsl:template>
103
<xsl:template match="item"><xsl:choose><xsl:when test="item"><menu id="{@name}_menu" label="{@name}" class="menu-iconic" image="image/icons/16x16/{@id}.png"><menupopup id="file-popup"><xsl:apply-templates/></menupopup></menu></xsl:when><xsl:otherwise><menuitem target="{@target}" link="{@link}" label="{@name}" oncommand="openLink(event)" class="menuitem-iconic" image="image/icons/16x16/{@id}.png" lxid="{@id}" onclick="openLinkNewTab(event)"/></xsl:otherwise></xsl:choose></xsl:template>
122 104
<!-- ***************************************************************************  -->
123 105

  
124 106

  
......
184 166
      }
185 167
      else
186 168
      {
187
        var bf=document.getElementsByTagName("iframe").item(0)
169
        var bf=document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml","iframe").item(0)
188 170
        bf.setAttribute("src",path)
189 171
      }
190 172
    }

Auch abrufbar als: Unified diff