1cdf0e10cSrcweir<?xml version="1.0" encoding="utf-8"?>
2*8eb6fccdSAndrew Rist<!--***********************************************************
3*8eb6fccdSAndrew Rist *
4*8eb6fccdSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
5*8eb6fccdSAndrew Rist * or more contributor license agreements.  See the NOTICE file
6*8eb6fccdSAndrew Rist * distributed with this work for additional information
7*8eb6fccdSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
8*8eb6fccdSAndrew Rist * to you under the Apache License, Version 2.0 (the
9*8eb6fccdSAndrew Rist * "License"); you may not use this file except in compliance
10*8eb6fccdSAndrew Rist * with the License.  You may obtain a copy of the License at
11*8eb6fccdSAndrew Rist *
12*8eb6fccdSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
13*8eb6fccdSAndrew Rist *
14*8eb6fccdSAndrew Rist * Unless required by applicable law or agreed to in writing,
15*8eb6fccdSAndrew Rist * software distributed under the License is distributed on an
16*8eb6fccdSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*8eb6fccdSAndrew Rist * KIND, either express or implied.  See the License for the
18*8eb6fccdSAndrew Rist * specific language governing permissions and limitations
19*8eb6fccdSAndrew Rist * under the License.
20*8eb6fccdSAndrew Rist *
21*8eb6fccdSAndrew Rist ***********************************************************-->
22cdf0e10cSrcweir<xsl:stylesheet version='1.0'
23cdf0e10cSrcweir  xmlns:menu="http://openoffice.org/2001/menu"
24cdf0e10cSrcweir  xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
25cdf0e10cSrcweir
26cdf0e10cSrcweir  <!-- identity template, does reproduce every IN node on the output -->
27cdf0e10cSrcweir  <xsl:template match="node()|@*">
28cdf0e10cSrcweir    <xsl:copy>
29cdf0e10cSrcweir      <xsl:apply-templates select="node()|@*"/>
30cdf0e10cSrcweir    </xsl:copy>
31cdf0e10cSrcweir  </xsl:template>
32cdf0e10cSrcweir
33cdf0e10cSrcweir  <!-- filtering template : removes the concerned nodes -->
34cdf0e10cSrcweir  <!-- removes the separator just before the expected item -->
35cdf0e10cSrcweir  <xsl:template match="menu:menuseparator[following-sibling::menu:menuitem[1]/@menu:id='.uno:Quit']"/>
36cdf0e10cSrcweir  <!-- suppression of the Quit item -->
37cdf0e10cSrcweir  <xsl:template match="menu:menuitem[@menu:id='.uno:Quit']"/>
38cdf0e10cSrcweir
39cdf0e10cSrcweir  <xsl:template match="menu:menuseparator[following-sibling::menu:menuitem[1]/@menu:id='.uno:About']"/>
40cdf0e10cSrcweir  <!-- suppression of the About item -->
41cdf0e10cSrcweir  <xsl:template match="menu:menuitem[@menu:id='.uno:About']"/>
42cdf0e10cSrcweir
43cdf0e10cSrcweir  <!-- suppression of the OptionsTreeDialog item -->
44cdf0e10cSrcweir  <xsl:template match="menu:menuitem[@menu:id='.uno:OptionsTreeDialog']"/>
45cdf0e10cSrcweir
46cdf0e10cSrcweir</xsl:stylesheet>
47