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