1<?xml version="1.0" encoding="utf-8"?>
2<xsl:stylesheet version='1.0'
3  xmlns:menu="http://openoffice.org/2001/menu"
4  xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
5
6  <!-- identity template, does reproduce every IN node on the output -->
7  <xsl:template match="node()|@*">
8    <xsl:copy>
9      <xsl:apply-templates select="node()|@*"/>
10    </xsl:copy>
11  </xsl:template>
12
13  <!-- filtering template : removes the concerned nodes -->
14  <!-- removes the separator just before the expected item -->
15  <xsl:template match="menu:menuseparator[following-sibling::menu:menuitem[1]/@menu:id='.uno:Quit']"/>
16  <!-- suppression of the Quit item -->
17  <xsl:template match="menu:menuitem[@menu:id='.uno:Quit']"/>
18
19  <xsl:template match="menu:menuseparator[following-sibling::menu:menuitem[1]/@menu:id='.uno:About']"/>
20  <!-- suppression of the About item -->
21  <xsl:template match="menu:menuitem[@menu:id='.uno:About']"/>
22
23  <!-- suppression of the OptionsTreeDialog item -->
24  <xsl:template match="menu:menuitem[@menu:id='.uno:OptionsTreeDialog']"/>
25
26</xsl:stylesheet>
27