Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" version="1.1"/>
- <xsl:template match="html">
- <xsl:element name="title">
- <xsl:text>Omega</xsl:text>
- </xsl:element>
- <xsl:element name="link">
- <xsl:attribute name="rel">
- <xsl:text>stylesheet</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="type">
- <xsl:text>text/css</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="href">
- <xsl:text>Omega.css</xsl:text>
- </xsl:attribute>
- </xsl:element>
- <xsl:element name="script">
- <xsl:attribute name="type">
- <xsl:text>text/javascript</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="language">
- <xsl:text>JavaScript</xsl:text>
- </xsl:attribute>
- <xsl:text>function showpanel(id) { document.getElementById(id).style.visibility = "visible"; } function hidepanel(id) { document.getElementById(id).style.visibility = "hidden"; }</xsl:text>
- </xsl:element>
- </xsl:template>
- <xsl:template match="folder">
- <div class="menu">
- <xsl:attribute name="onmouseout">
- <xsl:text>hidepanel('</xsl:text>
- <xsl:value-of select="@id"/>
- <xsl:text>');</xsl:text>
- </xsl:attribute>
- <div class="item">
- <xsl:attribute name="onmouseover">
- <xsl:text>showpanel('</xsl:text>
- <xsl:value-of select="@id"/>
- <xsl:text>'); navigate('mirc:did -f htmlbar 1')</xsl:text>
- </xsl:attribute>
- <a>
- <xsl:attribute name="href">
- <xsl:text>mirc:echo -s  </xsl:text>
- <xsl:value-of select="@name"/>
- </xsl:attribute>
- <xsl:value-of select="@name"/>
- </a>
- </div>
- <div class="panel">
- <xsl:attribute name="id">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- <xsl:attribute name="onmouseover">
- <xsl:text>showpanel('</xsl:text>
- <xsl:value-of select="@id"/>
- <xsl:text>');</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="onclick">
- <xsl:text>hidepanel(this.id);</xsl:text>
- </xsl:attribute>
- <xsl:apply-templates select="subfolder"/>
- <xsl:apply-templates select="item"/>
- </div>
- </div>
- </xsl:template>
- <xsl:template match="subfolder">
- <div class="submenu">
- <xsl:attribute name="onmouseout">
- <xsl:text>hidepanel('</xsl:text>
- <xsl:value-of select="@id"/>
- <xsl:text>');</xsl:text>
- </xsl:attribute>
- <div class="subitem">
- <xsl:attribute name="onmouseover">
- <xsl:text>showpanel('</xsl:text>
- <xsl:value-of select="@id"/>
- <xsl:text>');</xsl:text>
- </xsl:attribute>
- <xsl:value-of select="@name"/>
- </div>
- <div class="subpanel">
- <xsl:attribute name="id">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- <xsl:attribute name="onmouseover">
- <xsl:text>showpanel('</xsl:text>
- <xsl:value-of select="@id"/>
- <xsl:text>');</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="onclick">
- <xsl:text>hidepanel(this.id);</xsl:text>
- </xsl:attribute>
- <xsl:apply-templates select="subfolder"/>
- <xsl:apply-templates select="item"/>
- </div>
- </div>
- </xsl:template>
- <xsl:template match="item">
- <div class="item2">
- <xsl:choose>
- <xsl:when test="starts-with(@path,'-')">
- <xsl:element name="hr"/>
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href">
- <xsl:text>mirc:</xsl:text>
- <xsl:value-of select="@path"/>
- </xsl:attribute>
- <xsl:value-of select="@name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement