home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
AIMP2
/
aimp_2.61.583.exe
/
$TEMP
/
YandexPackSetup.msi
/
fil0ABBC8336273AC2BD1C784429621E4D8
< prev
next >
Wrap
Extensible Markup Language
|
2010-07-12
|
2KB
|
63 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE stylesheet SYSTEM "chrome://yasearch/locale/yasearch.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<xsl:output method="xml" encoding="UTF-8" indent="no"/>
<xsl:param name="cbl" select="'{'"/>
<xsl:param name="cbr" select="'}'"/>
<xsl:template match="button">
<vbox title="{@text|@chevrontext}" label="{@chevrontext}" image="{@image}">
<toolbarbutton id="yasearch-partner-button"
image="{@image}" tooltiptext="{@tooltip}" label="{@text}">
<xsl:if test="not(@text)">
<xsl:attribute name="class">
<xsl:text>yasearch-no-label</xsl:text>
</xsl:attribute>
</xsl:if>
<xsl:attribute name="oncommand">
<xsl:value-of select="concat('if (Ya.checkOnCommandEvent(event)) Ya.loadURI("', @url, '", event')"/>
<xsl:if test="@action">
<xsl:value-of select="concat(',', $cbl, 'action:', @action, $cbr)"/>
</xsl:if>
<xsl:text>);</xsl:text>
</xsl:attribute>
<xsl:choose>
<xsl:when test="count(./link) > 0">
<xsl:attribute name="type">
<xsl:text>menu-button</xsl:text>
</xsl:attribute>
<menupopup>
<xsl:apply-templates select="link|separator"/>
</menupopup>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</toolbarbutton>
</vbox>
</xsl:template>
<xsl:template match="separator">
<menuseparator/>
</xsl:template>
<xsl:template match="link">
<menuitem label="{text()}">
<xsl:attribute name="oncommand">
<xsl:value-of select="concat('Ya.loadURI("', @url, '", event')"/>
<xsl:if test="@action">
<xsl:value-of select="concat(',', $cbl, 'action:', @action, $cbr)"/>
</xsl:if>
<xsl:text>);</xsl:text>
</xsl:attribute>
</menuitem>
</xsl:template>
</xsl:stylesheet>