CWS gnumake3: resync to m99
[LibreOffice.git] / postprocess / packconfig / macosx / macosx_menubar_modification.xsl
blob91c1d6fc25224c4634d37380329b3d2ce8875f19
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' >
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>
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']"/>
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']"/>
23 <!-- suppression of the OptionsTreeDialog item -->
24 <xsl:template match="menu:menuitem[@menu:id='.uno:OptionsTreeDialog']"/>
26 </xsl:stylesheet>