<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE stylesheet SYSTEM "/native/fx/bookmarks.dialog.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:template match="ok[@yaru_link]">
        <xsl:variable name="domain"
                    select="substring-before(@yaru_link, substring-after(substring-after(@yaru_link,'//'), '/'))"/>

        <html:ul id="livewindow-post-props">
            <html:li class="on-journal-create">
                <label tooltiptext="http://wow.ya.ru/faq.xml" yahref="http://wow.ya.ru/faq.xml"
                    yaLinkAction="1945">&livewindow.actions.yarufaq.label;</label>
            </html:li>
            <html:li class="on-journal-create">
                <label tooltiptext="{$domain}options_profile.xml" yahref="{$domain}options_profile.xml"
                    yaLinkAction="1950">&livewindow.actions.profile.label;</label>
            </html:li>
            <html:li class="on-journal-create">
                <label tooltiptext="{$domain}posts_add_friend.xml" yahref="{$domain}posts_add_friend.xml"
                    yaLinkAction="1955">&livewindow.actions.findfriends.label;</label>
                </html:li>
            <html:li>
            <label tooltiptext="{@yaru_link}" yahref="{@yaru_link}"
                  yaLinkAction="1925">&livewindow.actions.viewpost.label;</label>
            </html:li>
            <xsl:if test="@yaru_edit_link">
                <html:li>
                    <label tooltiptext="{@yaru_edit_link}" yahref="{@yaru_edit_link}"
                        yaLinkAction="1930">&livewindow.actions.editpost.label;</label>
                </html:li>
            </xsl:if>
        </html:ul>
    </xsl:template>

</xsl:stylesheet>
